-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
CXF-9055 Follow OpenTelemetry semconv for trace span and its attributes #2062
CXF-9055 Follow OpenTelemetry semconv for trace span and its attributes #2062
Conversation
.../src/main/java/org/apache/cxf/tracing/opentelemetry/AbstractOpenTelemetryClientProvider.java
Outdated
Show resolved
Hide resolved
Thanks for the pull request, @csemaan1A ! I would suggest to preserve the span name (as you highlighted, it is breaking) to have consistent behavior across CXF tracing integrations, thank you. |
I renamed it to have only the path to be aligned with the semantic convention of OpenTelemetry. Keep in mind, that the server span name is set to path, not the full URL. |
0536ce2
to
31a3bb2
Compare
Thanks, I read the recommendations and I don't see much of controversy here. Yes, the span name has more than path (too specific?) but what is more important - we are not adding blank implementation. I would prefer to not break things. |
31a3bb2
to
21a1fcc
Compare
.../src/main/java/org/apache/cxf/tracing/opentelemetry/OpenTelemetryClientStartInterceptor.java
Outdated
Show resolved
Hide resolved
23da77b
to
1430234
Compare
...emetry/src/main/java/org/apache/cxf/tracing/opentelemetry/OpenTelemetryStartInterceptor.java
Outdated
Show resolved
Hide resolved
...emetry/src/main/java/org/apache/cxf/tracing/opentelemetry/OpenTelemetryStartInterceptor.java
Outdated
Show resolved
Hide resolved
...emetry/src/main/java/org/apache/cxf/tracing/opentelemetry/OpenTelemetryStartInterceptor.java
Outdated
Show resolved
Hide resolved
...elemetry/src/main/java/org/apache/cxf/tracing/opentelemetry/jaxrs/OpenTelemetryProvider.java
Outdated
Show resolved
Hide resolved
...elemetry/src/main/java/org/apache/cxf/tracing/opentelemetry/jaxrs/OpenTelemetryProvider.java
Outdated
Show resolved
Hide resolved
...elemetry/src/main/java/org/apache/cxf/tracing/opentelemetry/jaxrs/OpenTelemetryProvider.java
Outdated
Show resolved
Hide resolved
* Add missing span attributes to comply with [OpenTelemetry semantic conventions](https://opentelemetry.io/docs/specs/semconv/http/http-spans/) * Test the span attribute names and values * Couldn't add the attributes "network.protocol.version" for the client http span, because we didn't find a way to find its value. Link to the Jira ticket: [CXF-9055 Follow OpenTelemetry semantic conventions for trace span and its attributes ](https://issues.apache.org/jira/browse/CXF-9055)
1430234
to
248e120
Compare
Thanks a lot @csemaan1A ! |
…es (#2062) * Add missing span attributes to comply with [OpenTelemetry semantic conventions](https://opentelemetry.io/docs/specs/semconv/http/http-spans/) * Test the span attribute names and values * Couldn't add the attributes "network.protocol.version" for the client http span, because we didn't find a way to find its value. Link to the Jira ticket: [CXF-9055 Follow OpenTelemetry semantic conventions for trace span and its attributes ](https://issues.apache.org/jira/browse/CXF-9055) (cherry picked from commit 1f0355e)
…es (#2062) * Add missing span attributes to comply with [OpenTelemetry semantic conventions](https://opentelemetry.io/docs/specs/semconv/http/http-spans/) * Test the span attribute names and values * Couldn't add the attributes "network.protocol.version" for the client http span, because we didn't find a way to find its value. Link to the Jira ticket: [CXF-9055 Follow OpenTelemetry semantic conventions for trace span and its attributes ](https://issues.apache.org/jira/browse/CXF-9055) (cherry picked from commit 1f0355e) (cherry picked from commit 9be1640) # Conflicts: # integration/tracing/tracing-opentelemetry/src/main/java/org/apache/cxf/tracing/opentelemetry/jaxrs/OpenTelemetryProvider.java
…es (#2062) * Add missing span attributes to comply with [OpenTelemetry semantic conventions](https://opentelemetry.io/docs/specs/semconv/http/http-spans/) * Test the span attribute names and values * Couldn't add the attributes "network.protocol.version" for the client http span, because we didn't find a way to find its value. Link to the Jira ticket: [CXF-9055 Follow OpenTelemetry semantic conventions for trace span and its attributes ](https://issues.apache.org/jira/browse/CXF-9055) (cherry picked from commit 1f0355e) (cherry picked from commit 9be1640) # Conflicts: # integration/tracing/tracing-opentelemetry/src/main/java/org/apache/cxf/tracing/opentelemetry/jaxrs/OpenTelemetryProvider.java (cherry picked from commit 7a15456)
Link to the Jira ticket: CXF-9055 Follow OpenTelemetry semantic conventions for trace span and its attributes