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

ddtrace/tracer: add support for various environment variables #696

Merged
merged 5 commits into from
Jul 22, 2020

Conversation

knusbaum
Copy link
Contributor

@knusbaum knusbaum commented Jul 17, 2020

This PR adds support for the following environment varables

  • DD_<INTEGRATION>_ANALYTICS_ENABLED
  • DD_RUNTIME_METRICS_ENABLED
  • DD_TRACE_DEBUG

Copy link
Contributor

@gbbr gbbr left a comment

Choose a reason for hiding this comment

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

Looks good, just some nits. Please request a review via Github UI when ready.

internal/globalconfig/globalconfig.go Outdated Show resolved Hide resolved
ddtrace/tracer/option.go Outdated Show resolved Hide resolved
ddtrace/tracer/tracer.go Outdated Show resolved Hide resolved
contrib/Shopify/sarama/option.go Outdated Show resolved Hide resolved
ddtrace/tracer: add support for DD_RUNTIME_METRICS_ENABLED
ddtrace/tracer: add support for DD_TRACE_DEBUG
@knusbaum knusbaum modified the milestones: 1.26.0, 1.27.0 Jul 21, 2020
@knusbaum knusbaum marked this pull request as ready for review July 21, 2020 18:46
gbbr
gbbr previously approved these changes Jul 22, 2020
Copy link
Contributor

@gbbr gbbr left a comment

Choose a reason for hiding this comment

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

Wonderful. Thanks Kyle!

internal/env.go Outdated Show resolved Hide resolved
Co-authored-by: Gabriel Aszalos <gabriel.aszalos@gmail.com>
@gbbr
Copy link
Contributor

gbbr commented Jul 22, 2020

@brettlangdon need your approval

@knusbaum knusbaum modified the milestones: 1.27.0, 1.26.0 Jul 22, 2020
@knusbaum knusbaum merged commit 6d7c52c into v1 Jul 22, 2020
@knusbaum knusbaum deleted the knusbaum/env-sync branch July 22, 2020 13:44
mingrammer pushed a commit to mingrammer/dd-trace-go that referenced this pull request Dec 22, 2020
…g#696)

This PR adds support for the following environment variables:

DD_<INTEGRATION>_ANALYTICS_ENABLED which enables analytics for the named integration,
DD_RUNTIME_METRICS_ENABLED which enables runtime metrics for the tracer
DD_TRACE_DEBUG which enables debug mode for the tracer.
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.

3 participants