opentracing

Trace id is not shown on controller level log (Spring boot, Jaeger configuration)

雨燕双飞 提交于 2019-12-11 16:34:46
问题 Language: Java Framework: Spring boot Tools: Jaeger I have done the following configuration for put whole trace on logs. But at controller level log not shown a trace. when hibernate query executed than after trace is put on logs(on service and repository level logs) application.log 2019-11-08 05:14 INFO [iHub-service,] [http-nio-8080-exec-27] INFO c.s.controller.Controller ...............message............. 2019-11-08 05:14 DEBUG [iHub-service,294d434a24290786:294d434a24290786:0:1 - ] [http

Quarkus log tracing and equivalent to Spring Cloud Sleuth

偶尔善良 提交于 2019-12-11 15:51:39
问题 Log tracing is extremely important matter, so I played a little bit with this code, to match/connect request ids with the response ones. This works for tracing request responses from to/from my ws.rs resources: @Provider public class LoggingFilter implements ContainerRequestFilter, ContainerResponseFilter { private static final Logger LOG = Logger.getLogger(LoggingFilter.class); AtomicInteger _id = new AtomicInteger(0); AtomicInteger requestId = new AtomicInteger(0); @Context UriInfo info;

How can I get a trace ID from OpenTracing API?

て烟熏妆下的殇ゞ 提交于 2019-12-07 08:13:37
问题 In #105 davidB asks: I would like to have read access to the Span id (SpanContext id) to be able to use it in log and in error reported (to end user,...). [skip] I need to expose the "trace id" in error message, then dev could use the trace to debug error reported by support, QA, end-user. 回答1: At the moment the OpenTracing API does not expose trace ID. It is being discussed in this issue: https://github.com/opentracing/specification/issues/24 回答2: One thing you can do right now is to call

How to enrich Jaeger opentracing data with the application logs (produced by slf4j) for Spring Boot?

江枫思渺然 提交于 2019-12-06 03:26:13
问题 There is an existing Spring Boot app which is using SLF4J logger. I decided to add the support of distributed tracing via standard opentracing API with Jaeger as the tracer. It is really amazing how easy the initial setup is - all that is required is just adding two dependencies to the pom.xml : <dependency> <groupId>io.opentracing.contrib</groupId> <artifactId>opentracing-spring-web-autoconfigure</artifactId> <version>${io.opentracing.version}</version> </dependency> <dependency> <groupId>io

How can I get a trace ID from OpenTracing API?

喜你入骨 提交于 2019-12-05 17:41:22
In #105 davidB asks: I would like to have read access to the Span id (SpanContext id) to be able to use it in log and in error reported (to end user,...). [skip] I need to expose the "trace id" in error message, then dev could use the trace to debug error reported by support, QA, end-user. At the moment the OpenTracing API does not expose trace ID. It is being discussed in this issue: https://github.com/opentracing/specification/issues/24 One thing you can do right now is to call tracer.inject(null, Builtin.HTTP_HEADERS, map . It will put all IDs with baggage (SpanContext) into the map. Then

How to enrich Jaeger opentracing data with the application logs (produced by slf4j) for Spring Boot?

北慕城南 提交于 2019-12-04 11:21:11
There is an existing Spring Boot app which is using SLF4J logger. I decided to add the support of distributed tracing via standard opentracing API with Jaeger as the tracer. It is really amazing how easy the initial setup is - all that is required is just adding two dependencies to the pom.xml : <dependency> <groupId>io.opentracing.contrib</groupId> <artifactId>opentracing-spring-web-autoconfigure</artifactId> <version>${io.opentracing.version}</version> </dependency> <dependency> <groupId>io.jaegertracing</groupId> <artifactId>jaeger-core</artifactId> <version>${jaegerVersion}</version> <

How to configure Jaeger with elasticsearch?

随声附和 提交于 2019-11-30 23:37:08
I have tried executing this docker command to setup Jaeger Agent and jaeger collector with elasticsearch. sudo docker run \ -p 5775:5775/udp \ -p 6831:6831/udp \ -p 6832:6832/udp \ -p 5778:5778 \ -p 16686:16686 \ -p 14268:14268 \ -e SPAN_STORAGE_TYPE=elasticsearch \ --name=jaeger \ jaegertracing/all-in-one:latest but this command gives the below error. How to configure Jaeger with ElasticSearch? "msg":"Failed to init storage factory","error":"health check timeout: no Elasticsearch node available","errorVerbose":"no Elasticsearch node available\ Ashen Jayasinghe After searching a solution for