javaagent
javaagent copied to clipboard
Hypertrace OpenTelemetry Java agent with payload/body and headers data capture.
If we run `GrpcSmokeTest` with latest app docker image in OTEL repo `"ghcr.io/open-telemetry/java-test-containers:smoke-grpc-jdk$jdk-20210225.598590600"` test fail. They fail since expected spans are 2 but we are able to capture only 1...
While integrating GlassFishSmokeTest.groovy smoke test with HT java agent it is observed that the test containers with payara / glassfish fails to come up. On enabling debug logs multiple exceptions...
Spark test fails on building the javaagent. io.opentelemetry.javaagent.instrumentation.hypertrace.sparkjava.SparkJavaInstrumentationTest exceptionInHandler() ```org.opentest4j.AssertionFailedError: expected: but was: at org.junit.jupiter.api.AssertionUtils.fail(AssertionUtils.java:55) at org.junit.jupiter.api.AssertionUtils.failNotEqual(AssertionUtils.java:62) at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182) at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177) at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1124) at io.opentelemetry.javaagent.instrumentation.hypertrace.sparkjava.SparkJavaInstrumentationTest.exceptionInHandler(SparkJavaInstrumentationTest.java:127)```
Add smoke tests for gRPC and different servlet containers (similar to https://github.com/open-telemetry/opentelemetry-java-instrumentation/tree/master/smoke-tests/matrix). The images for these should be in control of this project, build as part of the smoke-test job....
Tried instrumenting one of the hypertrace java service (https://github.com/hypertrace/hypertrace-service/tree/main/hypertrace-data-config-service) with java agent. The service was deployed in k8s cluster locally using helm. Dockerfile used for building the image (locally built...
Define abstract HTTP client test class that will be used to test HTTP client instrumentations. As a starting point we could use okhttp tests https://github.com/hypertrace/javaagent/blob/6395bc992b7f74ab6e4c07b6af5260f97824d713/instrumentation/okhttp/okhttp-3.0/src/test/java/io/opentelemetry/instrumentation/hypertrace/okhttp/v3_0/OkHttpTracingInterceptorTest.java#L38 - [x] test JSON capture...
``` Future responseFuture = client.execute(request, null); HttpResponse response = responseFuture.get(); if (response.getEntity() == null || response.getEntity().getContentLength()
This separately tracks https://github.com/hypertrace/javaagent/issues/234. Switch to https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/1643 to run unit tests in instrumentation modules as we are still using test running approach from 0.13.x. - [ ] remove testing-bootstrap module
OTEL javaagent size is ~29.5 MB the Hypertrace javaagent size is ~48.6 MB. This is either a packaging problem or our config implementation (uses proto and jackson) adds the additional...