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

Allow to configure service name via an env variable #81

Merged
merged 5 commits into from
Feb 7, 2020

Conversation

andrewslotin
Copy link
Contributor

@andrewslotin andrewslotin commented Feb 5, 2020

Current implementation of instana.InitSensor() immediately falls back to the name of the binary if there was service name provided explicitly via instana.Options. These changes allow to configure the service name via the INSTANA_SERVICE_NAME env variable, so the name lookup works as follows:

  1. INSTANA_SERVICE_NAME env var
  2. (instana.Options).Service value
  3. Name of the binary

Closes #71

sensor.go Outdated Show resolved Hide resolved
@andrewslotin andrewslotin merged commit fdb2ce0 into master Feb 7, 2020
@andrewslotin andrewslotin deleted the pass_service_name_via_env_var branch February 7, 2020 10:51
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.

Support INSTANA_SERVICE_NAME environment variable
2 participants