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.
Revert ObservabilityMiddlewareExtensions #209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Uh oh!
There was an error while loading. Please reload this page.
Revert ObservabilityMiddlewareExtensions #209
Changes from all commits
abeca5fb047dc8342c8c268e10ac8eca2d2216bb9bFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reading
A365ParentSpanKeyviaContainsKey(...)followed by the indexer performs two dictionary lookups and can race if the key is removed between calls. Prefer a single read (e.g.,TryGetValue) and thenToString()on the retrieved value.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OutputScope.Start(...)(viaOpenTelemetryScope) already acceptsconversationId,sourceMetadata, andcallerDetailsand will apply the corresponding tags in one place. The current implementation passes those as null and then manually sets the same tags, which duplicates logic and risks drifting if tag behavior changes. Consider passing these values intoOutputScope.Startand only setting tags here for values that aren’t covered by the scope constructor (e.g., execution type).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR metadata says this change only reverts the
UseObservabilityMiddlewareextension and restores docs, but this PR also introduces new middleware (BaggageTurnMiddleware,OutputLoggingMiddleware) plus new tests and a newMoqdependency. Please update the PR title/description to reflect these additional additions, or split them into a separate PR so the revert can be reviewed/merged independently.Uh oh!
There was an error while loading. Please reload this page.