opentelemetry-java-instrumentation | OpenTelemetry auto-instrumentation and instrumentation | Monitoring library
kandi X-RAY | opentelemetry-java-instrumentation Summary
kandi X-RAY | opentelemetry-java-instrumentation Summary
This project provides a Java agent JAR that can be attached to any Java 8+ application and dynamically injects bytecode to capture telemetry from a number of popular libraries and frameworks. You can export the telemetry data in a variety of formats. You can also configure the agent and exporter via command line arguments or environment variables. The net result is the ability to gather telemetry data from a Java application without code changes. This repository also publishes standalone instrumentation for several libraries (and growing) that can be used if you prefer that over using the Java agent. Please see standalone library instrumentation if you are looking for documentation on using those.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Obtains an implementation visitor for the context store .
- Configures ignored types .
- Gets a composite text map .
- Install a bytebuddy agent .
- Installs the agent .
- Check for third party type matches .
- Runs the benchmark .
- Determines if a request should be redirected or not .
- Creates a new JSON writer settings .
- Inject helper classes into the class loader .
opentelemetry-java-instrumentation Key Features
opentelemetry-java-instrumentation Examples and Code Snippets
Community Discussions
Trending Discussions on opentelemetry-java-instrumentation
QUESTION
I am very new to using OpenTelemetry and have just tried configuring it to send traces to my Zipkin server. Unfortunately , after configuring the agent by specifying zipkin exporter details , I could see an exception in the console. I used Petclic as sample spring boot and have followed the documentation here https://github.com/open-telemetry/opentelemetry-java-instrumentation
Here is the command that I used to start spring-boot app(I have my zipkin server running at localhost:9411):
java -javaagent:opentelemetry-javaagent-all.jar -Dotel.exporter=zipkin -Dotel.exporter.zipkin.endpoint=localhost:9411 -jar spring-petclinic-2.4.2.jar
Exception in the console (It is trying to connect to gRpc exporter instead of Zipkins):
...ANSWER
Answered 2021-Mar-16 at 11:40In your command please try the following -Dotel.traces.exporter=zipkin instead of -Dotel.exporter=zipkin
QUESTION
I wrote a javaagent
as below to capture the execution time of the execute
method of the apache org.apache.http.client.HttpClient
. It is capturing the time, but it's running three times.
ANSWER
Answered 2020-Oct-26 at 06:26First of all, where do you get the implementsInterface
element matcher from? It is not part of ByteBuddy, at least not in the current version. I replaced it by isSubTypeOf
in order to make the code compile. Anyway, if you activate logging like this
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install opentelemetry-java-instrumentation
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page