pg instrumentation: enhancedDatabaseReporting value is not parsable #1235
Labels
bug
Something isn't working
priority:p2
Bugs and spec inconsistencies which cause telemetry to be incomplete or incorrect
stale
up-for-grabs
Good for taking. Extra help will be provided by maintainers
What version of OpenTelemetry are you using?
"@opentelemetry/instrumentation-pg": "0.31.1"
What version of Node are you using?
16
What did you do?
Executed the following pg query with instrumentation config
enhancedDatabaseReporting: true
What did you expect to see?
I expected to be able to tell what the query values are for this operation.
What did you see instead?
I got this value in the
db.postgresql.values
attribute:"[Hello,World,foo,bar]"
This text is not reversible. all of these arrays will yield the same attribute value and there is no way to differentiate them in a deterministic way:
Additional context
The reason is that this data is serialized in a non-standard, non-reversible way:
I suggest using
JSON.stringify
The text was updated successfully, but these errors were encountered: