-
Notifications
You must be signed in to change notification settings - Fork 439
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
contrib/kafka: take env variable into account to enable DSM #2353
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! just a comment about the deprecated options
contrib/Shopify/sarama/option.go
Outdated
// | ||
// Deprecated: Use the environment variable DD_DATA_STREAMS_ENABLED instead |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why can't we keep both? I think its a common pattern in the Go tracer to provide both in-code and env variable choices for configurations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, yes that's an argument that can be heard. Though it lets go users do stuff that won't work in other tracers, which is not the best, but being consistent within the go tracer itself is probably more important.
/merge |
❌ MergeQueue You are not allowed to use the merge queue towards If you need support, contact us on slack #ci-interfaces with those details! |
/merge |
❌ MergeQueue You are not allowed to use the merge queue towards If you need support, contact us on slack #ci-interfaces with those details! |
In most tracers, setting the
DD_DATA_STREAMS_ENABLED
env variable is enough to enable DSM, but in go this has to be done at wrapping time, which is inconsistent with other languages.In this change, I deprecated the option to enable DSM, in favor of the env variable.
For Datadog employees:
@DataDog/security-design-and-guidance
.