Repository navigation
Add Agent365 span exporter (Phase 6, Task 2) - #9
Merged
Hector Hernandez (hectorhdzg) merged 2 commits intoApr 9, 2026
Merged
Conversation
Migrate the Agent365 exporter from microsoft/Agent365-nodejs into the distro under src/_a365/exporter/. Implements SpanExporter from @opentelemetry/sdk-trace-base. Key behaviors preserved from source: - Span partitioning by (tenantId, agentId) identity tuples - OTLP-like JSON payload construction (resourceSpans/scopeSpans/spans) - Dual endpoint styles: /observability/ and /observabilityService/ (S2S) - Token resolution via tokenResolver callback - Retry with exponential backoff on 408/429/5xx - HTTP request timeout via AbortSignal.timeout - Span truncation (250KB limit) with 2-phase shrinking: Phase 1: blobs, tool JSON, text/reasoning by size priority Phase 2: overlimit sentinel fallback for remaining strings Adaptations: - Replaced agents-a365-runtime config with distro A365Configuration - Replaced internal logger with distro Logger singleton - Uses native fetch (Node 18+) - Per-request token context deferred to Task 5 25 new tests, 55 total A365 tests passing. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Jackson Weber (JacksonWeber)
requested review from
Nev (MSNev),
Hector Hernandez (hectorhdzg),
Leighton Chen (lzchen) and
Radhika Gupta (rads-1996)
as code owners
April 8, 2026 23:43
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Hector Hernandez (hectorhdzg)
approved these changes
Apr 9, 2026
Hector Hernandez (hectorhdzg)
left a comment
Member
There was a problem hiding this comment.
lets merge and we can update if needed
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.
Migrate the Agent365 exporter from microsoft/Agent365-nodejs into the distro under src/_a365/exporter/. Implements SpanExporter from @opentelemetry/sdk-trace-base.
Key behaviors preserved from source:
Adaptations:
25 new tests, 55 total A365 tests passing.