-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Support for jaeger remote sampler #36476
Support for jaeger remote sampler #36476
Conversation
/cc @brunobat (opentelemetry), @radcortez (opentelemetry) |
60b1340
to
7d0ad03
Compare
This is part of the ongoing hacktoberfest. Please add the label |
@brunobat @radcortez please review |
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.
@hiteshkhatri97 The opentelemetry-sdk-extension-jaeger-remote-sampler
must not be part of the main extension.
It's fine to change the config values to string but you need to handle the consequences o the current default sampler.
On the OpenTelemetry Integration test, you can include opentelemetry-sdk-extension-jaeger-remote-sampler
and create a test in there to see if it works.
@brunobat are you saying |
If I understand correctly, if someone wants to configure the jaeger_remote sampler, they must include its dependency in their project, right? |
This comment has been minimized.
This comment has been minimized.
Also, just wondering if integration tests are required then they should be part of this PR or separate PR? |
Tests must be part of the PR. |
4d0f0c5
to
4aa02df
Compare
@brunobat This is ready for early review. |
...pentelemetry-jaeger-remote/src/test/java/io/quarkus/it/opentracing/OTelJaegerRemoteTest.java
Outdated
Show resolved
Hide resolved
...pentelemetry-jaeger-remote/src/test/java/io/quarkus/it/opentracing/OTelJaegerRemoteTest.java
Outdated
Show resolved
Hide resolved
hiteshkhatri97 will checkout the project and see what happens with the test. |
f5e5ae3
to
1fcae10
Compare
Thanks @brunobat. Now the tests look fine to me. I had kept |
Excelent, will approve the CI run and see how it goes. BTW, we require all commits to be squashed into a single commit per PR. |
1fcae10
to
ad8c33e
Compare
Oh, I thought commits could be squashed while merging the PR. Nvm I will do it |
e2f8e1a
to
37feac1
Compare
@brunobat commits are squashed. Let me know what you think |
@brunobat can we possibly try to close this today if everything looks good? |
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.
Sorry @hiteshkhatri97, took a deep look at the test and I think it needs to be improved.
...pentelemetry-jaeger-remote/src/test/java/io/quarkus/it/opentracing/OTelJaegerRemoteTest.java
Outdated
Show resolved
Hide resolved
...pentelemetry-jaeger-remote/src/test/java/io/quarkus/it/opentracing/OTelJaegerRemoteTest.java
Outdated
Show resolved
Hide resolved
...pentelemetry-jaeger-remote/src/test/java/io/quarkus/it/opentracing/OTelJaegerRemoteTest.java
Outdated
Show resolved
Hide resolved
...pentelemetry-jaeger-remote/src/test/java/io/quarkus/it/opentracing/OTelJaegerRemoteTest.java
Outdated
Show resolved
Hide resolved
This comment has been minimized.
This comment has been minimized.
743c50d
to
9dd95fe
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.
Getting closer.
...try-jaeger-remote/src/test/java/io/quarkus/it/opentelemetry/jaeger/OTelJaegerRemoteTest.java
Outdated
Show resolved
Hide resolved
...try-jaeger-remote/src/test/java/io/quarkus/it/opentelemetry/jaeger/OTelJaegerRemoteTest.java
Outdated
Show resolved
Hide resolved
4f3bed3
to
bd3ffb4
Compare
This comment has been minimized.
This comment has been minimized.
@brunobat Sorry I'm bugging you again but if you can take a look. Thanks |
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.
The test looks good.
...ntime/src/main/java/io/quarkus/opentelemetry/runtime/config/runtime/TracesRuntimeConfig.java
Show resolved
Hide resolved
27ffa7a
to
72b9d56
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.
Thanks @hiteshkhatri97 for your effort!
8dfdd71
to
9c5d556
Compare
9c5d556
to
c57586f
Compare
Thanks a lot, @brunobat for your review, help, and support. Will merge it once CI run completes if I have access to merge |
✔️ The latest workflow run for the pull request has completed successfully. It should be safe to merge provided you have a look at the other checks in the summary. |
@brunobat can you please merge it? Looks like I don't have access |
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 added a comment
|
||
import io.quarkus.test.junit.QuarkusIntegrationTest; | ||
|
||
@QuarkusIntegrationTest |
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 assume this is meant to test things in native mode?
If so, then we'll need to configure the proper native JSON config file in the .github directory
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.
This is quite specific. Probably no need. There are other IT related projects for OTel that are not running on Native.
There are quite a few OTel IT projects now.
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.
👌
@brunobat will take care of that |
Fixes #36335