Repository navigation
[release/11.0] Update Blazor WASM service defaults to OpenTelemetry 1.19 - #69401
Conversation
|
Hey @dotnet/aspnet-build, looks like this PR is something you want to take a look at. |
There was a problem hiding this comment.
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
BackgroundExportHandlerand 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.
|
One or more custom setup steps configured for this repository failed during this Copilot code review run: 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 |
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
ea6a3f7 to
3870288
Compare
|
One or more custom setup steps configured for this repository failed during this Copilot code review run: 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 |
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
Co-authored-by: Martin Costello <[email protected]>
|
/azp run |
|
Azure Pipelines: Successfully started running 4 pipeline(s). 1 pipeline(s) were filtered out due to trigger conditions. |
* [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
Fixes #68801
Summary
OpenTelemetry.Exporter.OpenTelemetryProtocolto 1.19.0.BackgroundExportHandlerworkaround and its custom Polly retry pipeline.Microsoft.Extensions.Http.Resiliencedependency.OpenTelemetry 1.19.0 includes open-telemetry/opentelemetry-dotnet#7709, which avoids
IHttpClientFactoryintegration by default on browser platforms and addresses the single-threaded WebAssembly deadlock tracked by open-telemetry/opentelemetry-dotnet#7708.Testing
restore.cmdMicrosoft.DotNet.Web.ProjectTemplates.csprojMicrosoft.Extensions.Http.Resilience, and does not generateBackgroundExportHandler.csMicrosoft.AspNetCore.Components.E2ETests.csprojdotnet test ... --filter "FullyQualifiedName~StandaloneAppTelemetryTest"— 3 passedThe 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.