Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tracing: redact query params in urls #39925

Merged
merged 8 commits into from Apr 30, 2024

Conversation

lmolkova
Copy link
Member

@lmolkova lmolkova commented Apr 25, 2024

We didn't sanitize URLs for tracing purposes. Fixing it:

  • this change implements the same redaction as on logs
  • adds allowed query params to tracing options.
  • Unfortunately it's not possible to reuse existing logging options for it (HttpLogOptions are not available in the pipeline 馃槩 )

It also includes a small refactoring in HttpLoggingPolicy and removes double-logging of content-length if headers are enabled.

@azure-sdk
Copy link
Collaborator

azure-sdk commented Apr 26, 2024

API change check

API changes are not detected in this pull request.

@lmolkova lmolkova enabled auto-merge (squash) April 30, 2024 00:53
@lmolkova lmolkova merged commit af6d7e7 into Azure:main Apr 30, 2024
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Azure.Core azure-core OpenTelemetry OpenTelemetry instrumentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants