Using OTLPSpanExporter when configured through environment#188
Merged
nikhilNava merged 13 commits intomainfrom Mar 2, 2026
Merged
Using OTLPSpanExporter when configured through environment#188nikhilNava merged 13 commits intomainfrom
nikhilNava merged 13 commits intomainfrom
Conversation
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the observability core telemetry configuration to optionally add an OpenTelemetry OTLP HTTP trace exporter when OTLP environment configuration is detected, enabling export to a user-specified OTLP-compatible backend.
Changes:
- Added
OTLPSpanExporterintegration to configure an additional span processor whenOTEL_EXPORTER_OTLP_ENDPOINTis set. - Added
osimport to read OTLP environment configuration. - Minor warning-message formatting fix for the console-exporter fallback log.
.../microsoft-agents-a365-observability-core/microsoft_agents_a365/observability/core/config.py
Outdated
Show resolved
Hide resolved
.../microsoft-agents-a365-observability-core/microsoft_agents_a365/observability/core/config.py
Outdated
Show resolved
Hide resolved
.../microsoft-agents-a365-observability-core/microsoft_agents_a365/observability/core/config.py
Outdated
Show resolved
Hide resolved
.../microsoft-agents-a365-observability-core/microsoft_agents_a365/observability/core/config.py
Show resolved
Hide resolved
…gents_a365/observability/core/config.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…github.com/microsoft/Agent365-python into users/robrandao/otlp-span-exporter-default
.../microsoft-agents-a365-observability-core/microsoft_agents_a365/observability/core/config.py
Show resolved
Hide resolved
.../microsoft-agents-a365-observability-core/microsoft_agents_a365/observability/core/config.py
Outdated
Show resolved
Hide resolved
.../microsoft-agents-a365-observability-core/microsoft_agents_a365/observability/core/config.py
Outdated
Show resolved
Hide resolved
…gents_a365/observability/core/config.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…github.com/microsoft/Agent365-python into users/robrandao/otlp-span-exporter-default
MattB-msft
approved these changes
Feb 28, 2026
nikhilNava
approved these changes
Mar 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request updates the observability core configuration to support exporting telemetry data to an OTLP endpoint using environment variables. The main changes add support for the OTLP exporter, allowing the system to send traces to any OpenTelemetry-compatible backend if the relevant environment variable is set.
OTLP Exporter Integration:
OTLPSpanExporterfromopentelemetry.exporter.otlp.proto.http.trace_exporterto enable OTLP trace exporting._configure_internalmethod to check for theOTEL_EXPORTER_OTLP_ENDPOINTenvironment variable and, if present, configure and add an OTLP exporter as a span processor. This allows exporting traces to an OTLP-compatible endpoint based on environment configuration.