[bug] AspNetCore instrumentation Query redaction does not respect the environment variable set in runtime #6060
Labels
pkg:OpenTelemetry
Issues related to OpenTelemetry NuGet package
question
Further information is requested
Package
OpenTelemetry
Package Version
Runtime Version
net8.0
Description
The query attributes redaction does not respect the environment variable set in runtime.
Steps to Reproduce
Expected Result
When the environment variable is successfully set during runtime before OpenTelemetry is registered, the Query redaction should be disabled
Actual Result
The query redaction is still being enabled
Additional Context
Please refer this repo https://github.com/jundayin/OpenTelemetryEnvRepro
The text was updated successfully, but these errors were encountered: