Skip to content

[blazor] diagnostics - feedback for code.function.name #62836

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

Merged
merged 1 commit into from
Jul 21, 2025

Conversation

pavelsavara
Copy link
Member

Fixes feedback from OTEL semantic
open-telemetry/semantic-conventions#2235 (comment)

@pavelsavara pavelsavara added this to the .NET 10 Planning milestone Jul 21, 2025
@pavelsavara pavelsavara self-assigned this Jul 21, 2025
@Copilot Copilot AI review requested due to automatic review settings July 21, 2025 09:06
@pavelsavara pavelsavara requested a review from a team as a code owner July 21, 2025 09:06
@pavelsavara pavelsavara added the area-blazor Includes: Blazor, Razor Components label Jul 21, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the telemetry tag name for component method names from the ASP.NET Core-specific aspnetcore.components.method to the OpenTelemetry semantic convention code.function.name, addressing feedback from the OTEL semantic conventions review.

  • Updates telemetry tag names to align with OpenTelemetry semantic conventions
  • Maintains the same telemetry data collection but with standardized tag naming
  • Updates both production code and corresponding test assertions

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
src/Components/Components/src/ComponentsMetrics.cs Updates tag name in metrics collection for event duration and error tracking
src/Components/Components/src/ComponentsActivitySource.cs Updates tag name in activity source for event handling
src/Components/Components/test/ComponentsMetricsTest.cs Updates test assertions to expect the new tag name
src/Components/Components/test/ComponentsActivitySourceTest.cs Updates test assertion to expect the new tag name

Copy link
Member

@ilonatommy ilonatommy left a comment

Choose a reason for hiding this comment

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

Failures are infra issues, we can escape.

@pavelsavara
Copy link
Member Author

/ba-g CI infra failures

@pavelsavara pavelsavara merged commit 09c0404 into dotnet:main Jul 21, 2025
30 of 31 checks passed
@wtgodbe wtgodbe modified the milestones: 10.0-preview7, 10.0-rc1 Jul 23, 2025
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants