-
Notifications
You must be signed in to change notification settings - Fork 13
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
[opentelemetry] Add OTLP intake E2E system tests #976
Conversation
3896647
to
b944af9
Compare
b944af9
to
f66b76a
Compare
/cc @lambrospetrou |
# OpenTelemetry tracing end-to-end scenarios | ||
otel_tracing_e2e_w3c = EndToEndScenario( | ||
"OTEL_TRACING_E2E_W3C", | ||
weblog_env={"DD_API_KEY": os.environ.get("DD_API_KEY"), "DD_SITE": os.environ.get("DD_SITE"),}, |
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.
You don't need these, since they are already set.
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's actually needed - we set dd api key and dd site for Agent containers but not Weblog containers.
- Associate OTel trace id with request id - Remove client side instrumentation - Remove trace context propagation - Support OTLP intake in proxy
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.
Holding off this PR to wait for #958.
# OpenTelemetry tracing end-to-end scenarios | ||
otel_tracing_e2e_w3c = EndToEndScenario( | ||
"OTEL_TRACING_E2E_W3C", | ||
weblog_env={"DD_API_KEY": os.environ.get("DD_API_KEY"), "DD_SITE": os.environ.get("DD_SITE"),}, |
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's actually needed - we set dd api key and dd site for Agent containers but not Weblog containers.
Chatted with @cbeauchesne and we agreed to submit this PR first, so posted for review again and removed |
...java_otel/spring-boot-native/src/main/java/com/datadoghq/springbootnative/WebController.java
Outdated
Show resolved
Hide resolved
...java_otel/spring-boot-native/src/main/java/com/datadoghq/springbootnative/WebController.java
Outdated
Show resolved
Hide resolved
...java_otel/spring-boot-native/src/main/java/com/datadoghq/springbootnative/WebController.java
Outdated
Show resolved
Hide resolved
...java_otel/spring-boot-native/src/main/java/com/datadoghq/springbootnative/WebController.java
Outdated
Show resolved
Hide resolved
...java_otel/spring-boot-native/src/main/java/com/datadoghq/springbootnative/WebController.java
Outdated
Show resolved
Hide resolved
...ld/docker/java_otel/spring-boot-native/src/main/java/com/datadoghq/springbootnative/App.java
Outdated
Show resolved
Hide resolved
0a8da8f
to
230216c
Compare
1cafa88
to
80d089f
Compare
@songy23 the adjustments needed on interfaces/scenarios are done. It does not work because the weblog crashes with this issue :
|
I got a different error with the latest changes:
Looking |
@cbeauchesne I was able to run the otel test with my latest changes:
Could you give it another try when you get a chance? (Note you need to set DD_API_KEY and DD_APPLICATION_KEY because this is an E2E test) |
strange, I have the issue again. I've added the job in the CI, we'll see if it's only my local setup or not. |
NVM this should be fixed in c143cd4
|
Interestingly sometimes in CI |
e2a9635
to
d42fdbd
Compare
@cbeauchesne |
Thanks for the review! |
Description
Add basic E2E integration tests on OpenTelemetry Protocol (OTLP) intake endpoint.
./build.sh java_otel && ./run.sh OTEL_TRACING_E2E
What's covered
java_otel
application container: a Spring boot native HTTP server that implementsweblog
interfaces and instrumented with OTel-Java SDK + Docker file. For basic tests (GET /
) it generates 1 fake publisher span and 1 server span that has a link to the publisher span.java_otel
.What's next
Workflow
Once your PR is reviewed, you can merge it ! ❤️