open-telemetry / semantic-conventions-java

Java generated classes for semantic conventions
Apache License 2.0
14 stars 17 forks source link

Decorate deprecations with suggested replacements #69

Open gabrieljones opened 3 months ago

gabrieljones commented 3 months ago

Please decorate the deprecations with suggested replacements. https://github.com/open-telemetry/semantic-conventions-java/pull/62

peterdk commented 2 months ago

So yeah, I just started implementing OpenTelemetry, but was getting stuck, cause all the SemanticAttributes.* state that they are deprecated, but nowhere indicated what I should use. After some time I figured out that I need HttpAttributes.* for my usecase, but nowhere is this indicated, and also not that these classes exist.

Docs here use SemanticAttributes.*: https://opentelemetry.io/docs/languages/java/instrumentation/#traces