You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Keep the PR sample-focused, demonstrate all manual scope types, and remove sample tests and changelog changes.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Export the logger API consumed by the standalone sample and use its validated routing configuration.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 3f6edb2d-96f7-4c61-a5f2-ba0ed8da48a2
Honor scope overrides when acquiring observability tokens
samples/agent365-s2s/src/index.ts:34
authScopes can be replaced by the ambient A365_OBSERVABILITY_SCOPES_OVERRIDE (A365Configuration.ts:149-173), but this sample's resolver ignores the scopes argument and always acquires OBSERVABILITY_SCOPES. When that override is present, the exporter requests one audience while receiving a token for another. Use the higher-precedence single-scope option here, or make the exchange client honor/validate the supplied scopes.
Prevent ambient scope overrides from making the exporter request a different audience than the sample token exchange.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 3f6edb2d-96f7-4c61-a5f2-ba0ed8da48a2
Addressed the previously missed scope-override finding in b16a6e3. The sample now uses observabilityScopeOverride for its fixed Agent365 observability audience, so an ambient A365_OBSERVABILITY_SCOPES_OVERRIDE cannot make the exporter request a different audience than the S2S token exchange.
Disable durable delivery for deterministic self-contained demo
samples/agent365-s2s/src/index.ts:39
Durable delivery defaults to enabled, so a failed run is spooled and replayed by later runs. That can publish retained spans in addition to the documented deterministic six-span trace and leaves state across executions. Disable durable delivery explicitly for this self-contained demo.
Resolve and cache the observability token before initializing telemetry so invalid sample credentials reach the existing error handler.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 3f6edb2d-96f7-4c61-a5f2-ba0ed8da48a2
Disable durable delivery to preserve deterministic sample behavior
samples/agent365-s2s/src/index.ts:38
The Agent365 exporter enables durable spool-and-replay by default. A failed run can therefore persist this sample's payload and a later run will replay it (and may perform additional token exchanges), so the documented single deterministic trace and “exactly two” confidential-client requests are not guaranteed. Disable durable delivery for this deterministic sample.
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
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.
Summary
Validation
Tests are intentionally omitted because this PR adds only a sample app.
Parity with microsoft/opentelemetry-distro-dotnet#155. ETW logger changes are out of scope.