open-telemetry / semantic-conventions-java

Java generated classes for semantic conventions
Apache License 2.0
15 stars 19 forks source link

SemanticAttributes is marked as deprecated, but no instructions on what to use instead #47

Closed alexec closed 8 months ago

alexec commented 8 months ago

Please provide instructions.

jkwatson commented 8 months ago

It doesn't look deprecated to me... https://github.com/open-telemetry/semantic-conventions-java/blob/main/semconv/src/main/java/io/opentelemetry/semconv/SemanticAttributes.java#L18

alexec commented 8 months ago

There seem to be two version of this library in Maven central with different coordinates. I had the wrong one.

jkwatson commented 8 months ago

There seem to be two version of this library in Maven central with different coordinates. I had the wrong one.

Yes, the old one that was published from the core repository (opentelemetry-java) has indeed been deprecated, and I believe we put the new maven coordinates into the javadoc for that class.