Skip to content

[release/11.0] Update Blazor WASM service defaults to OpenTelemetry 1.19 - #69401

Merged
wtgodbe merged 3 commits into
release/11.0from
fix-blazor-wasm-otel-69400
Sep 21, 2026
Merged

wtgodbe merged 3 commits into
release/11.0from
fix-blazor-wasm-otel-69400

Conversation

@danroth27

@danroth27 danroth27 commented Sep 18, 2026 •

Copy link
Copy Markdown
Member

Fixes #68801

Summary

  • Update OpenTelemetry.Exporter.OpenTelemetryProtocol to 1.19.0.
  • Remove the Blazor WebAssembly BackgroundExportHandler workaround and its custom Polly retry pipeline.
  • Remove the now-unused Microsoft.Extensions.Http.Resilience dependency.
  • Update the linked standalone test app, telemetry test comments, and template baseline.

OpenTelemetry 1.19.0 includes open-telemetry/opentelemetry-dotnet#7709, which avoids IHttpClientFactory integration by default on browser platforms and addresses the single-threaded WebAssembly deadlock tracked by open-telemetry/opentelemetry-dotnet#7708.

Testing

  • restore.cmd
  • Focused build and pack of Microsoft.DotNet.Web.ProjectTemplates.csproj
  • Installed the freshly packed template into an isolated hive and verified that the generated project references exporter 1.19.0, omits Microsoft.Extensions.Http.Resilience, and does not generate BackgroundExportHandler.cs
  • Built Microsoft.AspNetCore.Components.E2ETests.csproj
  • dotnet test ... --filter "FullyQualifiedName~StandaloneAppTelemetryTest" — 3 passed

The broader ProjectTemplates area build was blocked locally before template validation because the Visual Studio v145 C++ toolset is not installed. The focused web-template build, package generation check, and browser telemetry E2E tests all succeeded.

Copilot AI lite review requested due to automatic review settings September 18, 2026 22:40
@danroth27
danroth27 requested review from a team and wtgodbe as code owners September 18, 2026 22:40
@github-actions github-actions Bot added area-blazor Includes: Blazor, Razor Components area-commandlinetools Includes: Command line tools, dotnet-dev-certs, dotnet-user-jwts, and OpenAPI area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework labels Sep 18, 2026
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Hey @dotnet/aspnet-build, looks like this PR is something you want to take a look at.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🔵 Needs a closer look

Metrics verification and remaining template metadata cleanup are unresolved.

Review effort: Lite
Findings: None

What changed in this PR

Updates Blazor WebAssembly service defaults to OpenTelemetry 1.19.0 and removes the obsolete export workaround and resilience dependency.

Changes:

  • Removes BackgroundExportHandler and custom retry configuration.
  • Updates template baselines and standalone telemetry assets.
  • Bumps the OTLP exporter version to 1.19.0.
File Summary
src/​ProjectTemplates/​Web.ProjectTemplates/​content/​BlazorWasmServiceDefaults-CSharp/​Extensions.cs Removes custom OTLP retry configuration.
src/​ProjectTemplates/​Web.ProjectTemplates/​content/​BlazorWasmServiceDefaults-CSharp/​BackgroundExportHandler.cs Removes the obsolete workaround.
src/​ProjectTemplates/​Web.ProjectTemplates/​BlazorWasmServiceDefaults-CSharp.csproj.in Removes the resilience package reference; stale pack metadata still requires cleanup.
src/​ProjectTemplates/​test/​Templates.Tests/​template-baselines.json Updates expected template output.
src/​Components/​WebAssembly/​testassets/​StandaloneApp/​StandaloneApp.csproj Removes workaround-related references.
src/​Components/​test/​E2ETest/​Tests/​StandaloneAppTelemetryTest.cs Updates telemetry export timing documentation; metric verification remains unresolved.
eng/​Versions.props Updates the OTLP exporter to 1.19.0.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Copilot AI commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

One or more custom setup steps configured for this repository failed during this Copilot code review run:

Build solution

Setup steps run before each review. If the review above is missing context, or no review was posted at all, the failing step above may be the cause. See the workflow run for failure details, fix your setup steps configuration, and re-request a review.

Note

You can configure setup steps for Copilot code review separately from Copilot cloud agent with a copilot-code-review.yml file. Read the docs for details.

@danroth27
danroth27 requested review from javiercn and maraf and a balanced review from Copilot September 18, 2026 23:23
Remove the browser OTLP export workaround and its resilience dependency now that the exporter avoids IHttpClientFactory integration on browser platforms.

Fixes #69400

Co-authored-by: Copilot <[email protected]>

Copilot-Session: 1fb0cde9-afea-4acd-924d-2d5ebcb29be4
@danroth27
danroth27 force-pushed the fix-blazor-wasm-otel-69400 branch from ea6a3f7 to 3870288 Compare September 18, 2026 23:29
@danroth27 danroth27 changed the title Update Blazor WASM service defaults to OpenTelemetry 1.19 [release/11.0] Update Blazor WASM service defaults to OpenTelemetry 1.19 Sep 18, 2026
@danroth27
danroth27 changed the base branch from main to release/11.0 September 18, 2026 23:29

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🔵 Needs a closer look

The prescribed full ProjectTemplates validation was blocked by a missing build prerequisite.

Review effort: Balanced
Findings: None

Copilot AI commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

One or more custom setup steps configured for this repository failed during this Copilot code review run:

Build solution

Setup steps run before each review. If the review above is missing context, or no review was posted at all, the failing step above may be the cause. See the workflow run for failure details, fix your setup steps configuration, and re-request a review.

Note

You can configure setup steps for Copilot code review separately from Copilot cloud agent with a copilot-code-review.yml file. Read the docs for details.

Comment thread eng/Versions.props Resolved
Remove the stale HTTP resilience template substitution now that the Blazor WebAssembly workaround no longer consumes it.

Co-authored-by: Copilot <[email protected]>

Copilot-Session: 1fb0cde9-afea-4acd-924d-2d5ebcb29be4
Comment thread eng/Versions.props Resolved
Co-authored-by: Martin Costello <[email protected]>
@danroth27

Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 4 pipeline(s).
1 pipeline(s) were filtered out due to trigger conditions.

@wtgodbe
wtgodbe merged commit e600b12 into release/11.0 Sep 21, 2026
22 of 28 checks passed
@wtgodbe
wtgodbe deleted the fix-blazor-wasm-otel-69400 branch September 21, 2026 22:35
wtgodbe added a commit that referenced this pull request Sep 22, 2026
* [release/11.0] Update Blazor WASM service defaults to OpenTelemetry 1.19 (#69401)

* Update Blazor WASM service defaults to OpenTelemetry 1.19

Remove the browser OTLP export workaround and its resilience dependency now that the exporter avoids IHttpClientFactory integration on browser platforms.

Fixes #69400

Co-authored-by: Copilot <[email protected]>

Copilot-Session: 1fb0cde9-afea-4acd-924d-2d5ebcb29be4

* Update remaining OpenTelemetry packages to 1.19

Remove the stale HTTP resilience template substitution now that the Blazor WebAssembly workaround no longer consumes it.

Co-authored-by: Copilot <[email protected]>

Copilot-Session: 1fb0cde9-afea-4acd-924d-2d5ebcb29be4

* Update eng/Versions.props

Co-authored-by: Martin Costello <[email protected]>

---------

Co-authored-by: Martin Costello <[email protected]>
Copilot-Session: 1fb0cde9-afea-4acd-924d-2d5ebcb29be4

* Use a controlled external origin in redirection tests (#68782) (#69417)

Co-authored-by: Ilona Tomkowicz <[email protected]>

---------

Co-authored-by: Daniel Roth <[email protected]>
Co-authored-by: Martin Costello <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Ilona Tomkowicz <[email protected]>
Copilot-Session: 1fb0cde9-afea-4acd-924d-2d5ebcb29be4
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-rc2 milestone Sep 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-blazor Includes: Blazor, Razor Components area-commandlinetools Includes: Command line tools, dotnet-dev-certs, dotnet-user-jwts, and OpenAPI area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Blazor] Update WebAssembly service defaults template to OpenTelemetry 1.19 and remove OTLP workaround

7 participants