Skip to content

Conversation

@cberg-zalando
Copy link
Member

Description

Latest Obversaviblity SDK 3.1.13 contains a bump of opentelemetry-semconvfrom 1.28.0-alpha to 1.30.0-rc.1 introducing a breaking change as the io.opentelemetry.semconv.SemanticAttributes class was removed and replaced with more specific sub class in the sub package incubating.

Nevertheless, looking at the class it had the deprecation marker since version 1.24.0 (Riptide uses 1.25-alpha currently), so I guess, it is the usual issue that these deprecation warnings are overlooked until it is too late.

Motivation and Context

It allows projects using Obversaviblity SDK to use the latest version.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

@fatroom fatroom added the minor Minor changes, e.g. low risk config updates, changes that do not introduce a new API call. label Feb 19, 2025
@fatroom
Copy link
Member

fatroom commented Feb 19, 2025

The non existing classes are still used (i.e. HttpStatusCodeSpanDecorator)

@cberg-zalando cberg-zalando force-pushed the fix-deprecated-usage-of-SemanticAttributes-class branch from a13a5c0 to ebbc18f Compare February 20, 2025 06:06
@cberg-zalando
Copy link
Member Author

The non existing classes are still used (i.e. HttpStatusCodeSpanDecorator)

Yeah, somehow I overlooked this one class.

Christoph Berg added 2 commits February 21, 2025 12:12
 - Added opentelemetry-semconv-incubating to have access to constants
   for used attributes
 - Switched used attributes to be imported from classes replacing
   SemanticAttributes
@cberg-zalando cberg-zalando force-pushed the fix-deprecated-usage-of-SemanticAttributes-class branch from ddc2be3 to eed91ac Compare February 21, 2025 11:13
@fatroom
Copy link
Member

fatroom commented Feb 21, 2025

👍

1 similar comment
@zDimi
Copy link

zDimi commented Feb 21, 2025

👍

@fatroom fatroom merged commit a4d674b into zalando:main Feb 21, 2025
4 checks passed
@fatroom
Copy link
Member

fatroom commented Feb 21, 2025

Thank you for the contribution!

@cberg-zalando cberg-zalando deleted the fix-deprecated-usage-of-SemanticAttributes-class branch February 21, 2025 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

minor Minor changes, e.g. low risk config updates, changes that do not introduce a new API call.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants