Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deprecate environment in favor of api_url #206

Merged
merged 12 commits into from
Feb 12, 2024
Merged

deprecate environment in favor of api_url #206

merged 12 commits into from
Feb 12, 2024

Conversation

matthagenbuch
Copy link
Contributor

@matthagenbuch matthagenbuch commented Feb 6, 2024

This is meant to add support for provisioning resources in the new EU instances. Currently, the provider accepts an environment parameter which must be public|meta|staging , and we construct the API URL based on this.

To make this change, I deprecated the environment parameter and added an api_url parameter which always takes precedence. If neither is provided, it defaults to the US public instance (as it does today). Terraform will display a deprecation warning for those using the provider with the environment parameter, and we would eventually remove it.

client/client.go Outdated Show resolved Hide resolved
exporter/exporter.go Show resolved Hide resolved
lightstep/provider.go Outdated Show resolved Hide resolved
lightstep/provider.go Show resolved Hide resolved
@matthagenbuch
Copy link
Contributor Author

@brettbuddin stil very much a work in progress but thanks for the review! i'm currently struggling with the acceptance tests / doc generation 😕

@matthagenbuch matthagenbuch marked this pull request as ready for review February 12, 2024 14:29
exporter/exporter.go Outdated Show resolved Hide resolved
client/client_test.go Outdated Show resolved Hide resolved
exporter/exporter.go Show resolved Hide resolved
exporter/exporter_test.go Outdated Show resolved Hide resolved
@matthagenbuch matthagenbuch merged commit bb16ff0 into main Feb 12, 2024
5 checks passed
@matthagenbuch matthagenbuch deleted the matth.api_url branch February 12, 2024 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants