Skip to content

Conversation

@rads-1996
Copy link
Member

Description

Addresses - #34655

All SDK Contribution checklist:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

@Copilot Copilot AI review requested due to automatic review settings October 22, 2025 23:43
@github-actions github-actions bot added the Monitor - Exporter Monitor OpenTelemetry Exporter label Oct 22, 2025
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 operation name propagation for dependency and log telemetry in the Azure Monitor OpenTelemetry exporter. The operation name is now included in the AI_OPERATION_NAME tag for non-server spans (dependencies) and log records, improving telemetry correlation and observability.

Key Changes:

  • Operation names are now propagated to dependency telemetry (RemoteDependencyData) and log telemetry (MessageData)
  • HTTP dependencies use a specific format combining HTTP method and route/path
  • Non-HTTP dependencies use the span name as the operation name
  • Log records extract operation name from their attributes

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
sdk/monitor/azure-monitor-opentelemetry-exporter/azure/monitor/opentelemetry/exporter/export/trace/_exporter.py Implements operation name propagation for dependency telemetry using span attributes
sdk/monitor/azure-monitor-opentelemetry-exporter/azure/monitor/opentelemetry/exporter/export/logs/_exporter.py Adds operation name extraction from log record attributes
sdk/monitor/azure-monitor-opentelemetry-exporter/tests/trace/test_trace.py Adds test assertions to verify operation name is set correctly for various dependency types
sdk/monitor/azure-monitor-opentelemetry-exporter/tests/logs/test_logs.py Updates test fixtures and adds assertions to verify operation name propagation in logs
sdk/monitor/azure-monitor-opentelemetry-exporter/CHANGELOG.md Documents the new feature

rads-1996 and others added 2 commits October 22, 2025 16:44
Co-authored-by: Copilot <[email protected]>
@rads-1996 rads-1996 marked this pull request as draft October 22, 2025 23:54
@rads-1996 rads-1996 marked this pull request as ready for review October 23, 2025 00:03
Copy link
Member

@JacksonWeber JacksonWeber left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Monitor - Exporter Monitor OpenTelemetry Exporter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants