Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

SIGNALFX_ENVIRONMENT env variable tag #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hackerrdave
Copy link

v2.0 of the APM requires a span tag of environment to be set in order to logically categorize service maps. This PR allows optional setting of the environment tag by setting an environment variable of SIGNALFX_ENVIRONMENT and using its value as the tag value.

4. (Optional) Set environment variable to set `environment` root span tag

.. code:: bash
SIGNALFX_ENVIRONMENT=production
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do other signalfx libraries also have a SIGNALFX_ENVIRONMENT env var option? I've generally seen other libraries take a comma separated list of arbitary tags and expect users to supply environment as part of that.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants