Skip to content

Add the span and log record processors for multi-agent GENAI systems#46703

Draft
rads-1996 wants to merge 2 commits intoAzure:mainfrom
rads-1996:implement-genai-spec-distro
Draft

Add the span and log record processors for multi-agent GENAI systems#46703
rads-1996 wants to merge 2 commits intoAzure:mainfrom
rads-1996:implement-genai-spec-distro

Conversation

@rads-1996
Copy link
Copy Markdown
Member

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 AI review requested due to automatic review settings May 4, 2026 20:01
@rads-1996 rads-1996 marked this pull request as draft May 4, 2026 20:02
@github-actions github-actions Bot added the Monitor - Distro Monitor OpenTelemetry Distro label May 4, 2026
Copy link
Copy Markdown
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 aims to enable automatic GenAI main-agent attribution in the azure-monitor-opentelemetry distro by registering new span and log record processors during Azure Monitor configuration.

Changes:

  • Add a changelog entry describing GenAI main-agent attribution support for multi-agent systems.
  • Import new GenAI main-agent processors from the exporter package.
  • Register the new processors first in both tracing and logging pipeline setup.

Reviewed changes

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

File Description
sdk/monitor/azure-monitor-opentelemetry/CHANGELOG.md Documents the new GenAI main-agent attribution feature.
sdk/monitor/azure-monitor-opentelemetry/azure/monitor/opentelemetry/_configure.py Wires GenAI span/log processors into tracing and logging setup.

Comment on lines +62 to +65
from azure.monitor.opentelemetry.exporter._gen_ai._processor import ( # pylint: disable=import-error,no-name-in-module
_GenAIMainAgentLogRecordProcessor,
_GenAIMainAgentSpanProcessor,
)
Comment on lines +189 to +190
# GenAI main-agent attribution processor must be registered first
tracer_provider.add_span_processor(_GenAIMainAgentSpanProcessor())
Comment on lines +244 to +245
# GenAI main-agent attribution processor must be registered first
logger_provider.add_log_record_processor(_GenAIMainAgentLogRecordProcessor())
@rads-1996 rads-1996 force-pushed the implement-genai-spec-distro branch from 929a37f to fc98fa9 Compare May 4, 2026 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Monitor - Distro Monitor OpenTelemetry Distro

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants