OpenTelemetry auto-instrumentation and instrumentation libraries for Java
APACHE-2.0 License
Bot releases are visible (Hide)
Published by iNikem almost 4 years ago
This update is compatible with the OpenTelemetry Java SDK 0.10.0.
NB! That release contains A LOT OF breaking changes, please read its change log carefully!
LoggingExporter
now uses the agent's logging framework instead of standard out (#1447)db.name
span attribute for MongoDB (#1419 )HttpURLConnection
instrumentation on WebLogic (#1439)net.peer.*
semantic attributes for Cassandra 4.+ (#1482)Published by anuraaga almost 4 years ago
NB! This release contains several critical bugs and SHOULD NOT be used. Please use version 0.10.1
Published by anuraaga about 4 years ago
This update is compatible with the OpenTelemetry Java SDK 0.9.1
AUTH
command #1190otel.exporter
can be set to otlp_span
or otlp_metric
to only enable the span or metric exporter #1253Tracer
abstraction instead of Decorator
#1275io.opentelemetry.instrumentation.opentelemetry-javaagent-spi
artifact, io.opentelemetry.javaagent.spi
package #1187trace.classes.exclude
to otel.trace.classes.exclude
Config
revamped to allow binary repackaging to set default values for config #1243 and the API has been cleaned up #1286, #1254, #1286, #1310auto
to javaagent
in module names #1370AgentSpecification
#1291This release was possible thanks to the following contributors who shared their brilliant ideas and awesome pull requests:
Published by anuraaga about 4 years ago
This update is compatible with the OpenTelemetry Java SDK 0.8.0
HttpClient
#1121While not new instrumentation, we've also added documentation for our Spring instrumentation - give it a try and let us know how we can improve it! #1035 #1110
Tracer
abstraction instead of Decorator
#893 #918 #922 #1148net.peer
mapped correctly #1158UrlConnection
#1059Resource
#1112WithSpan
works again after fixing compatibility with the SDK #929ClassCastException
not thrown when accessing TracerSDK
directly #931ClassCastException
not thrown on recent Jetty versions #1156null
can be set by instrumentations using InstrumentationContext
even when the context is backed by a map #1177io.opentelemetry:opentelemetry-sdk-extension-auto-config
used by exporter modules has been replaced by io.opentelemetry.instrumentation.auto:opentelemetry-javaagent-tooling
. If you maintain a custom exporter, please migrate to this new module to continue to be recognized by the agent.
io.opentelemetry.instrumentation.auto:opentelemetry-javaagent/opentelemetry-javaagent-bootstrap/opentelemetry-javaagent-tooling
io.opentelemetry.auto
package moved to io.opentelemetry.javaagent
. This affects any command line parameters tooThis release was possible thanks to the following contributors who shared their brilliant ideas and awesome pull requests:
Published by iNikem about 4 years ago
Supports OpenTelemetry Java version 0.7.0.
BREAKING CHANGE #760 Rename trace.methods.exclude
to trace.annotated.methods.exclude
BREAKING CHANGE #841 Changed prefixes of all configuration options from ota
to otel
#506 @WithSpan
annotation now supports kind
attribute
#735 MDC support for log4j 2.13.2+
#726 New semantic attribute http.response_content_length
Performance optimisations for instrumenting Clojure applications
#575 Several instrumentations used to update name of the parent span. It is now fixed to correctly do that for SERVER
span
#756 Add support for Armeria server
Support for new exception
span event
#785, #823 Update database semantic convention
#827 More attributes on http server spans
#838 Add support for OtTracerPropagator
and AwsXRayPropagator
#849 Add support for TraceMultiPropagator
README.md updated to reflect current configuration.
Extensive support for manual instrumentation of Spring Boot applications
Published by iNikem over 4 years ago
See Getting Started for setup instructions.
Supports OpenTelemetry Java version 0.6.0.
Multiple modules have been renamed. Please consult new coordinates for published artefacts at Bintray
Published by trask over 4 years ago
See Getting Started for new setup instructions.
Published by trask over 4 years ago
Download opentelemetry-auto-0.3.0.jar
and one of the exporters:
opentelemetry-auto-exporters-jaeger-0.3.0.jar
opentelemetry-auto-exporters-logging-0.3.0.jar
opentelemetry-auto-exporters-otlp-0.3.0.jar
To run with the otlp exporter:
export OTEL_RESOURCE_ATTRIBUTES=service.name=shopping
java -javaagent:path/to/opentelemetry-auto-0.3.0.jar \
-Dota.exporter.jar=path/to/opentelemetry-auto-exporters-otlp-0.3.0.jar \
-Dota.exporter.otlp.endpoint=localhost:55678 \
-jar myapp.jar
To run with the jaeger exporter:
java -javaagent:path/to/opentelemetry-auto-0.3.0.jar \
-Dota.exporter.jar=path/to/opentelemetry-auto-exporters-jaeger-0.3.0.jar \
-Dota.exporter.jaeger.endpoint=localhost:14250 \
-Dota.exporter.jaeger.service.name=shopping \
-jar myapp.jar
To run with the logging exporter:
java -javaagent:path/to/opentelemetry-auto-0.3.0.jar \
-Dota.exporter.jar=path/to/opentelemetry-auto-exporters-logging-0.3.0.jar \
-jar myapp.jar
Published by trask over 4 years ago
Download opentelemetry-auto-0.2.2.jar
and one of the exporters:
opentelemetry-auto-exporters-jaeger-0.2.2.jar
opentelemetry-auto-exporters-logging-0.2.2.jar
opentelemetry-auto-exporters-otlp-0.2.2.jar
To run with the jaeger exporter:
java -javaagent:path/to/opentelemetry-auto-0.2.2.jar \
-Dota.exporter.jar=path/to/opentelemetry-auto-exporters-jaeger-0.2.2.jar \
-Dota.exporter.jaeger.endpoint=localhost:14250 \
-Dota.exporter.jaeger.service.name=shopping \
-jar myapp.jar
To run with the logging exporter:
java -javaagent:path/to/opentelemetry-auto-0.2.2.jar \
-Dota.exporter.jar=path/to/opentelemetry-auto-exporters-logging-0.2.2.jar \
-jar myapp.jar
To run with the otlp exporter:
java -javaagent:path/to/opentelemetry-auto-0.2.2.jar \
-Dota.exporter.jar=path/to/opentelemetry-auto-exporters-otlp-0.2.2.jar \
-Dota.exporter.otlp.endpoint=localhost:55678 \
-jar myapp.jar
Published by trask over 4 years ago
Download opentelemetry-auto-0.2.1.jar
and one of the exporters:
opentelemetry-auto-exporters-jaeger-0.2.1.jar
opentelemetry-auto-exporters-logging-0.2.1.jar
opentelemetry-auto-exporters-otlp-0.2.1.jar
To run with the jaeger exporter:
java -javaagent:path/to/opentelemetry-auto-0.2.1.jar \
-Dota.exporter.jar=path/to/opentelemetry-auto-exporters-jaeger-0.2.1.jar \
-Dota.exporter.jaeger.endpoint=localhost:14250 \
-Dota.exporter.jaeger.service.name=shopping \
-jar myapp.jar
To run with the logging exporter:
java -javaagent:path/to/opentelemetry-auto-0.2.1.jar \
-Dota.exporter.jar=path/to/opentelemetry-auto-exporters-logging-0.2.1.jar \
-jar myapp.jar
To run with the otlp exporter:
java -javaagent:path/to/opentelemetry-auto-0.2.1.jar \
-Dota.exporter.jar=path/to/opentelemetry-auto-exporters-otlp-0.2.1.jar \
-Dota.exporter.otlp.endpoint=localhost:55678 \
-jar myapp.jar
Published by trask over 4 years ago
Download opentelemetry-auto-0.2.0.jar
and one of the exporters:
opentelemetry-auto-exporters-jaeger-0.2.0.jar
opentelemetry-auto-exporters-logging-0.2.0.jar
opentelemetry-auto-exporters-otlp-0.2.0.jar
To run with the jaeger exporter:
java -javaagent:path/to/opentelemetry-auto-0.2.0.jar \
-Dota.exporter.jar=path/to/opentelemetry-auto-exporters-jaeger-0.2.0.jar \
-Dota.exporter.jaeger.endpoint=localhost:14250 \
-Dota.exporter.jaeger.service.name=shopping \
-jar myapp.jar
To run with the logging exporter:
java -javaagent:path/to/opentelemetry-auto-0.2.0.jar \
-Dota.exporter.jar=path/to/opentelemetry-auto-exporters-logging-0.2.0.jar \
-jar myapp.jar
To run with the otlp exporter:
java -javaagent:path/to/opentelemetry-auto-0.2.0.jar \
-Dota.exporter.jar=path/to/opentelemetry-auto-exporters-otlp-0.2.0.jar \
-Dota.exporter.otlp.endpoint=localhost:55678 \
-jar myapp.jar
Published by trask over 4 years ago
This first release takes the easy route and directly bundles the Jaeger exporter and only the Jaeger exporter (in the next release, you will be able to plug in the exporter of your choice).
Download and try it out on your (non-production) app today, and let us know what works and what doesn't!
To add it to your app, e.g.:
java -javaagent:/path/to/opentelemetry-auto-0.1.1.jar \
-Dota.exporter=jaeger \
-Dota.jaeger.host=localhost \
-Dota.jaeger.port=14250 \
-Dota.service=shopping \
-jar myapp.jar