Skip to content

Conversation

@trask
Copy link
Member

@trask trask commented Oct 21, 2025

See open-telemetry/semantic-conventions#2955

TODO test this PR using Java agent

@Copilot Copilot AI review requested due to automatic review settings October 21, 2025 22:42
Copy link
Contributor

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 adds support for stable code.* attributes from the OpenTelemetry semantic conventions, while maintaining backward compatibility with the incubating attributes. The changes map the new stable code attributes (code.file.path, code.function, code.lineno) to Azure Monitor properties alongside the existing incubating attributes.

  • Adds support for stable code.* semantic convention attributes
  • Implements mapping logic to extract class name and method name from code.function
  • Adds comprehensive test coverage for the new stable attributes and edge cases

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
LogDataMapper.java Adds mapping for stable code attributes and implements function name parsing logic
LogDataMapperTest.java Adds test coverage for stable attributes, incubating attributes compatibility, and edge cases

@github-actions github-actions bot added the Monitor - Autoconfigure Monitor OpenTelemetry Autoconfigure label Oct 21, 2025
@trask trask force-pushed the stable-code-attrs branch from 9c59040 to 9aecef0 Compare October 22, 2025 00:50
@trask trask marked this pull request as draft October 22, 2025 02:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Monitor - Autoconfigure Monitor OpenTelemetry Autoconfigure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant