Hypertrace distribution of OpenTelemetry Java agent.
This agent supports these frameworks and adds following capabilities:
- capture request and response headers
- capture request and response bodies
- execution blocking based on Open Policy Agent
List of supported frameworks with additional capabilities:
| Library/Framework | Versions |
|---|---|
| Servlet | 2.3+ |
| Spark Web Framework | 2.3+ |
make buildThe final artifact is in javaagent/build/libs/hypertrace-agent-<version>-all.jar
OTEL_EXPORTER=zipkin java -javaagent:javaagent/build/libs/hypertrace-agent-0.0.1-all.jar -jar app.jarThe configuration precedence order
- OpenTelemetry Agent's trace config file
OTEL_TRACE_CONFIG/otel.trace.config - OpenTelemetry system properties and env variables
Hypertrace body/headers capture can be disabled by:
HYPERTRACE_INTEGRATION_ALL_ENABLED- disables capture for all instrumentationsHYPERTRACE_INTEGRATION_<integration>_ENABLED- disables capture for a specified instrumentation e.g.servlet,servlet-1
Request and response body capture can be disabled by -Dotel.integration.body.enabled=false or
-Dotel.integration.<instrumentation>-body.enabled=false.
Tests use docker via Testcontainers.org.
When running tests from IDE set SMOKETEST_JAVAAGENT_PATH env variable.
make test