jaeger-client-java | 🛑 This library is DEPRECATED
kandi X-RAY | jaeger-client-java Summary
kandi X-RAY | jaeger-client-java Summary
🛑 This library is DEPRECATED!
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Appends a span
- Build tag
- Build log
- Flushes the span buffer
- Extract span id from carrier map
- Parse a 16 - bit integer into an unsigned long
- Parse a 32 - bit hex string into an unsigned long
- Parse an unsigned hex string into an unsigned long
- Updates the sampler
- Extract span information from a carrier
- Entry point for testing
- Flush data to the socket
- Samples a single operation
- Convert an IP address to an int
- Inject span context
- Start a trace
- Close the remote reporter
- Send a batch of spans
- Read bytes from the underlying socket
- Inject span information
- Add a span to the span buffer
- Create metrics
- Injects a span context
- Extracts a span context from the carrier
- Extracts the context from the carrier
- Get the sender
jaeger-client-java Key Features
jaeger-client-java Examples and Code Snippets
Community Discussions
Trending Discussions on jaeger-client-java
QUESTION
At present, Open Telemetry (OTEL) spans have no mechanism to add logs as found in implementations such as Jaegar.
So is there a workaround to add application logs to a span?
...ANSWER
Answered 2022-Feb-02 at 17:35As we saw here, jaegar backend interprets OTEL exceptions in way where the contents of the exception are put in as Logs in the associated span.
Now, exceptions are a form of events, and it seems jaegar backend interprets OTEL events as Logs. So we can replicate this behavior by:
- Creating a custom log appender
- Inside, create an OTEL event and populate logging details in it.
- Add the event to the current span.
This span will be interpreted by jaegar backend in a way where all the events are put in as individual log items in that span.
Custom Log AppenderBelow is a basic LogAppender i wrote based on SpanLogsAppender.java from the spring-cloud project.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install jaeger-client-java
You can use jaeger-client-java like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the jaeger-client-java component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
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