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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify a default non-propagating handler on net6.0+ #125

Merged
merged 1 commit into from
May 7, 2024

Conversation

KodrAus
Copy link
Contributor

@KodrAus KodrAus commented Jan 17, 2024

For #41

This PR is a targeted approach to silencing the sink's own request logging by default through a SocketsHttpHandler that disables ActivityHeadersPropagator. It only applies to .NET 6+ when SocketsHttpHandler was introduced. Unsupported targets will need to work around the diagnostic handler in other ways.

This is a low-commitment approach, so it shouldn't prevent us from considering other options in the future too.

@nblumhardt nblumhardt merged commit 4beee89 into serilog:dev May 7, 2024
1 check passed
@nblumhardt nblumhardt mentioned this pull request May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants