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

[WCF] Fix WCF instrumentation initialization #3650

Merged
merged 9 commits into from
Sep 20, 2024

Conversation

lachmatt
Copy link
Contributor

@lachmatt lachmatt commented Sep 19, 2024

Why

Fixes #3589

What

Linked issue stems from the fact that WCF instrumentation initialization was run when System.ServiceModel assembly was loaded. Initialization included setting up WCF instrumentation options, and initializing parent span correction feature. This feature hooks into ASP.NET instrumentation, modifies the request headers and assumes request headers are read-only.
This was causing issues for OWIN app hosed in IIS that attempted to modify request headers with a OWIN middleware.

This PR moves initialization to bytecode instrumentation.

Tests

Included in PR.

Checklist

  • CHANGELOG.md is updated.
    - [ ] Documentation is updated.
  • New features are covered by tests.

@lachmatt lachmatt marked this pull request as ready for review September 19, 2024 14:04
@lachmatt lachmatt requested a review from a team as a code owner September 19, 2024 14:04
@Kielek Kielek enabled auto-merge (squash) September 20, 2024 06:23
@Kielek Kielek merged commit 52d169a into open-telemetry:main Sep 20, 2024
41 of 42 checks passed
@lachmatt lachmatt deleted the wcf-init-fix branch September 20, 2024 07:01
@Kielek Kielek mentioned this pull request Sep 26, 2024
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants