-
Notifications
You must be signed in to change notification settings - Fork 583
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
23458 tel shim #25409
23458 tel shim #25409
Conversation
io.opentelemetry.instrumentation:opentelemetry-instrumentation-annotations;version=1.19.0.alpha,\ | ||
io.opentracing:opentracing-api;version=0.33.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not think you need these two because the relevant classes should also be in io.openliberty.mpTelemetry.1.0.thirdparty
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed opentelemetry-instrumentation-annotations, but removing opentracing-api gave local compile errors.
|
||
dependencies { | ||
requiredLibs project(':io.openliberty.mpTelemetry.1.0.thirdparty') | ||
} | ||
shimLibs 'io.opentelemetry:opentelemetry-api:1.19.0', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think you want the opentelemetry-api in shimLibs
Although the shim does depend on the otel API, as far as I can see you're using shimLibs
to add the libraries to the test application. The test application shouldn't need the otel API since that's provided for it by liberty.
...ternal_fat/fat/src/io/openliberty/microprofile/telemetry/internal_fat/TelemetryShimTest.java
Outdated
Show resolved
Hide resolved
@WithSpan | ||
public void annotatedClassMethodImplicitlyTraced(Tracer tracer) { | ||
System.out.println("Called annotatedClassMethodImplicitlyTraced"); | ||
Span span = tracer.activeSpan(); | ||
Assert.assertNotNull(span); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be better if we could test a little more here.
In this test can we check that the spanId returned by the opentracing shim is the same as the one returned by OpenTelemetry?
It would be better if we had a test which called the opentracing API a bit more, perhaps creating a span and seeing that it is exported correctly using InMemorySpanExporter
.
....internal_fat/fat/src/io/openliberty/microprofile/telemetry/internal_fat/apps/shim/POJO.java
Outdated
Show resolved
Hide resolved
...src/io/openliberty/microprofile/telemetry/internal_fat/apps/shim/OpenTracingShimServlet.java
Outdated
Show resolved
Hide resolved
#build |
951f5e3
to
4a94596
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like the testing here to be a little more thorough, but we can do that in a follow up PR. The work that is here is good 👍
Your personal build request is at https://wasrtc.hursley.ibm.com:9443/jazz/resource/itemOid/com.ibm.team.build.BuildResult/_ybmjQAO-Ee6Gnsx4pF5sWA Target locations of links might be accessible only to IBM employees. |
#build |
Your personal build request is at https://wasrtc.hursley.ibm.com:9443/jazz/resource/itemOid/com.ibm.team.build.BuildResult/_HOgq0AUaEe6Gnsx4pF5sWA Target locations of links might be accessible only to IBM employees. |
4a94596
to
f1ce33e
Compare
#build |
Your personal build request is at https://wasrtc.hursley.ibm.com:9443/jazz/resource/itemOid/com.ibm.team.build.BuildResult/_TjHZkAUmEe6Gnsx4pF5sWA Target locations of links might be accessible only to IBM employees. |
#build |
Your personal build request is at https://wasrtc.hursley.ibm.com:9443/jazz/resource/itemOid/com.ibm.team.build.BuildResult/_kjKuQAX3Ee6Gnsx4pF5sWA Target locations of links might be accessible only to IBM employees. |
The build benjamin-confino-25409-20230608-0917 For help analyzing your personal build, go to https://libh-proxy1.fyre.ibm.com/cognitive/buildAnalysis.html?uuid=_kjKuQAX3Ee6Gnsx4pF5sWA |
b75320f
to
1034d19
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copyright date 2022, 2023
* Copyright (c) 2022 IBM Corporation and others. | ||
* Copyright (c) 2023 IBM Corporation and others. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be 2022, 2023
de460d5
to
bcd24fd
Compare
bcd24fd
to
24e05f9
Compare
24e05f9
to
caaa556
Compare
#build |
Your personal build request is at https://wasrtc.hursley.ibm.com:9443/jazz/resource/itemOid/com.ibm.team.build.BuildResult/_8LiGYAnLEe6txPsqA1YBCw Target locations of links might be accessible only to IBM employees. |
The build benjamin-confino-25409-20230613-0330 For help analyzing your personal build, go to https://libh-proxy1.fyre.ibm.com/cognitive/buildAnalysis.html?uuid=_8LiGYAnLEe6txPsqA1YBCw |
#libby |
#run-libby-bot |
Code analysis and actionsDO NOT DELETE THIS COMMENT.
|
The build benjamin-confino-25409-20230615-0829 For help analyzing your personal build, go to https://libh-proxy1.fyre.ibm.com/cognitive/buildAnalysis.html?uuid=_L8OPoguHEe6txPsqA1YBCw |
The build benjamin-confino-25409-20230615-1638 |
Fixes #23458
Fixes #25368 which was discovered when writing this test.