Skip to content

Redis queries are not registered in spans (db.statement) #11573

Closed Answered by laurit
dasivon021 asked this question in Q&A
Discussion options

You must be logged in to vote

The problem occurs when I want to see spans and want to isolate exact Redis query (db statement) that is issued. All I can see in Tempo is db.statement "SEARCH ? ? ? ? ? ? ? ?". Actual Redis query looks something like this: "FT.SEARCH" "myIdx" "@User\\-Name:{John}" "LIMIT" "0" "10000" "SORTBY" "User-Name" "ASC"

By default redis queries are sanitized, this can be disabled with -Dotel.instrumentation.common.db-statement-sanitizer.enabled=false. This is done so because queries could potentially contains sensitive components like PII, medical info etc. Sending such info to your observability backend could get you in trouble. Have a look at https://github.com/open-telemetry/opentelemetry-jav…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@dasivon021
Comment options

@laurit
Comment options

Answer selected by dasivon021
Comment options

You must be logged in to vote
1 reply
@laurit
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants