-
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/go-redis/redis.v8: add WithSkipRawCommand option and fix resource #1091
Conversation
LGTM |
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.
Not sure my approval matters, but this will be a big help for sure!
…urce This change adds a new option called `WithSkippedRawCommand` which determines the instrumentation code to skip adding the `redis.raw_command` tag to spans. This is useful in cases when the Datadog Agent Redis obfuscation is disabled (which it is, by default) and commands may contain sensitive information. Additionally, duplicate entries and an incosistency was found when setting the resource name for Redis spans, which was fixed as part of this PR. Closes #1022
c4f5fa6
to
364d469
Compare
@shannontan-bolt it does matter. I want to make sure this is what you wanted and what we discussed. |
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
Ah - it is! I just mean that I don't think my approval is one that unblocks merge haha |
This change adds a new option called
WithSkippedRawCommand
whichdetermines the instrumentation code to skip adding the
redis.raw_command
tag to spans. This is useful in cases when theDatadog Agent Redis obfuscation is disabled (which it is, by default)
and commands may contain sensitive information.
Additionally, duplicate entries and an incosistency was found when
setting the resource name for Redis spans, which was fixed as part of
this PR.
Closes #1022