You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m using dd-trace-go with orchestrion (auto-instrumentation) and noticed that there is currently no way to enable skipRawCommand without using the manual Redis instrumentation API.
In contrib/redis/go-redis.v9/option.go, skipRawCommand can only be configured via code-level options (e.g. WithSkipRawCommand(true)), which works for manual instrumentation but is not accessible when using orchestrion, since Redis clients are auto-instrumented at runtime.
This causes an issue where Redis commands like:
GET <sensitive-key>
are captured in APM spans (e.g. redis.raw_command or resource names), potentially leaking sensitive information such as tokens, user identifiers, or secrets.
Why this matters
Orchestrion users cannot control Redis instrumentation options in code
Redis keys often contain PII or secrets
Relying solely on Agent-side obfuscation is possible, but:
Requires newer Agent versions
Is less discoverable for Go users
Removes flexibility at the tracer level
Proposal
Add support for configuring skipRawCommand via an environment variable, for example:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
I’m using dd-trace-go with orchestrion (auto-instrumentation) and noticed that there is currently no way to enable skipRawCommand without using the manual Redis instrumentation API.
In contrib/redis/go-redis.v9/option.go, skipRawCommand can only be configured via code-level options (e.g. WithSkipRawCommand(true)), which works for manual instrumentation but is not accessible when using orchestrion, since Redis clients are auto-instrumented at runtime.
This causes an issue where Redis commands like:
are captured in APM spans (e.g. redis.raw_command or resource names), potentially leaking sensitive information such as tokens, user identifiers, or secrets.
Why this matters
Proposal
Add support for configuring skipRawCommand via an environment variable, for example:
This would:
Happy to help with testing or implementation details if needed.
Thanks for the great work on dd-trace-go!
All reactions