refactor(fastapi): replace uses of SpanAttributes with opentelemetry.semconv.attributes#3491
Merged
xrmx merged 6 commits intoopen-telemetry:mainfrom May 19, 2025
Merged
refactor(fastapi): replace uses of SpanAttributes with opentelemetry.semconv.attributes#3491xrmx merged 6 commits intoopen-telemetry:mainfrom
SpanAttributes with opentelemetry.semconv.attributes#3491xrmx merged 6 commits intoopen-telemetry:mainfrom
Conversation
…ntic conventions Replaced usage of `SpanAttributes.HTTP_ROUTE` with `opentelemetry.semconv.attributes.http_attributes.HTTP_ROUTE` as part of the migration away from `SpanAttributes`. Refs: open-telemetry#3475
xrmx
approved these changes
May 15, 2025
emdneto
approved these changes
May 15, 2025
sightseeker
added a commit
to sightseeker/opentelemetry-python-contrib
that referenced
this pull request
Mar 11, 2026
…ry.semconv.attributes` (open-telemetry#3491) * refactor(fastapi): migrate HTTP_ROUTE from SpanAttributes to new semantic conventions Replaced usage of `SpanAttributes.HTTP_ROUTE` with `opentelemetry.semconv.attributes.http_attributes.HTTP_ROUTE` as part of the migration away from `SpanAttributes`. Refs: open-telemetry#3475 * refactor(fastapi): refactor tests * refactor(fastapi): remove duplicated import * sort imports --------- Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
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.
Description
Replaces usage of
SpanAttributes.HTTP_ROUTEwithopentelemetry.semconv.attributes.http_attributes.HTTP_ROUTEas part of the migration away fromSpanAttributes.Refs #3475
Type of change
How Has This Been Tested?
Does This PR Require a Core Repo Change?
Checklist:
See contributing.md for styleguide, changelog guidelines, and more.