Skip to content

Add OTEL env var to not redact HttpClient query string values#3797

Merged
JamesNK merged 2 commits intomainfrom
jamesnk/httpclient-redaction
Apr 19, 2024
Merged

Add OTEL env var to not redact HttpClient query string values#3797
JamesNK merged 2 commits intomainfrom
jamesnk/httpclient-redaction

Conversation

@JamesNK
Copy link
Copy Markdown
Member

@JamesNK JamesNK commented Apr 18, 2024

React to feedback to OTEL changes after PR was merged: https://github.com/dotnet/aspire/pull/3676/files#r1566223568

Don't redact outgoing HTTP request query string values in local development.

Before:

image

After:

image

This PR:

  • Adds OTEL_DOTNET_EXPERIMENTAL_HTTPCLIENT_DISABLE_URL_QUERY_REDACTION env var
  • Moves .NET specific env vars to project resource so they're not provided to containers
Microsoft Reviewers: Open in CodeFlow

Comment thread src/Aspire.Hosting/ProjectResourceBuilderExtensions.cs Outdated
Comment thread playground/Stress/Stress.ApiService/Program.cs Outdated
@JamesNK JamesNK enabled auto-merge (squash) April 19, 2024 01:13
@JamesNK JamesNK merged commit 798b9df into main Apr 19, 2024
@JamesNK JamesNK deleted the jamesnk/httpclient-redaction branch April 19, 2024 01:52
@github-actions github-actions Bot locked and limited conversation to collaborators May 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants