opentracing

Configuring Jaeger in Spring application

吃可爱长大的小学妹 提交于 2020-05-26 09:17:29
问题 I would like to configure Jaeger in my Spring application. Somehow I cannot find a proper way to do this. Almost all Spring-Jaeger-related documentation is for Spring Boot where most of the properties are auto configured. Here's my approach. Maven dependency: <dependency> <groupId>io.opentracing.contrib</groupId> <artifactId>opentracing-spring-jaeger-cloud-starter</artifactId> <version>1.0.3</version> </dependency> Spring config for Jaeger: @Configuration public class JagerConfiguration {

SpanContext not found in Extract carrier in microservice

南笙酒味 提交于 2020-02-05 06:31:28
问题 I am trying to implement a Go-based microservice system. I have two service and I try to Inject and Extract span data. In my first service, I have: func (apitracer apiTracer) validatemail(res http.ResponseWriter, req *http.Request) { validateEmailSpan := apitracer.tracer.StartSpan("Validate Email") apitracer.tracer.Inject( validateEmailSpan.Context(), opentracing.HTTPHeaders, opentracing.HTTPHeadersCarrier(req.Header)) req.Header.Set("Content-Type", "application/x-www-form-urlencoded") resp,

Distributed tracing with golang http.PostForm

倖福魔咒の 提交于 2020-01-30 11:05:55
问题 In my project, I try to implement distributed tracing using opentracing . My microservice has following structure. -- API-Gateway |_ User-Service |_ Notification In my API-gateway, I start and in API gateway, I use a to a function to start tracing, code is taken from Setting up your tracer in main() : gatewayTracer := &apiTracer{tracer: startTracing("API Gateway")} http.HandleFunc("/getemail", gatewayTracer.validatemail) func (apitracer apiTracer) validatemail(res http.ResponseWriter, req

Distributed tracing with golang http.PostForm

我是研究僧i 提交于 2020-01-30 11:04:44
问题 In my project, I try to implement distributed tracing using opentracing . My microservice has following structure. -- API-Gateway |_ User-Service |_ Notification In my API-gateway, I start and in API gateway, I use a to a function to start tracing, code is taken from Setting up your tracer in main() : gatewayTracer := &apiTracer{tracer: startTracing("API Gateway")} http.HandleFunc("/getemail", gatewayTracer.validatemail) func (apitracer apiTracer) validatemail(res http.ResponseWriter, req

Distributed tracing with golang http.PostForm

吃可爱长大的小学妹 提交于 2020-01-30 11:04:31
问题 In my project, I try to implement distributed tracing using opentracing . My microservice has following structure. -- API-Gateway |_ User-Service |_ Notification In my API-gateway, I start and in API gateway, I use a to a function to start tracing, code is taken from Setting up your tracer in main() : gatewayTracer := &apiTracer{tracer: startTracing("API Gateway")} http.HandleFunc("/getemail", gatewayTracer.validatemail) func (apitracer apiTracer) validatemail(res http.ResponseWriter, req

quarkus reactive-postgresql-client with jaeger opentracing support

穿精又带淫゛_ 提交于 2020-01-25 08:50:29
问题 Based on this and this How would I enable tracing for reactive-sql-clients ? Now use %dev.quarkus.datasource.url=vertx-reactive:postgresql://dev-db-server:5432/mydb - it works, but no tracing support though. I can see racing for my rest calls but not the db. Tried to use %dev.quarkus.datasource.url=vertx-reactive:tracing:postgresql://dev-db-server:5432/mydb my deps: <dependency> <groupId>io.quarkus</groupId> <artifactId>quarkus-smallrye-openapi</artifactId> </dependency> <dependency> <groupId

How to pass opentracing data using json

时光毁灭记忆、已成空白 提交于 2020-01-22 02:35:53
问题 My API-gateway starts a tracer and a span for validate email. Then its passed to user-service for validation. I want to pass this span details to user-service as a json object and start another span as a tracer.start_span('Validate Email', child_of=API_gateway_span) To do it, I have used following struct: type checkEmail struct { GatewayTracerSpan opentracing.SpanContext `json: gatewayTracerSpan` Email string `json: email` Uuid string `json: uuid` } In function() validateEmailSpan :=

How to use Jaeger with Spring WebFlux?

依然范特西╮ 提交于 2019-12-21 20:24:21
问题 We are trying to go reactive with Webflux. We are using Jaegar with Istio for instrumentation purposes. Jaegar understands Spring MVC endpoints well, but don't seem to work at all for WebFlux. I am looking for suggestions to make my webflux endpoints appear in Jaeger. Thanks in advance. 回答1: The best way to move forward in order to use Jaegar is NOT TO USE JAEGAR CLIENT! Jaegar has the ability to collect Zipkin spans: https://www.jaegertracing.io/docs/1.8/getting-started/#migrating-from

How to configure Jaeger with elasticsearch?

夙愿已清 提交于 2019-12-19 02:48:07
问题 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

uber/jaeger-client-node: backend wont receive data

馋奶兔 提交于 2019-12-12 04:47:43
问题 I'm currently looking into different openTracing Tracer-Implementations. I want to use uber/jaeger-client-node but the backend won't receive my traces. Here is what I did: I started the all-in-one docker image: docker run -d -p5775:5775/udp -p16686:16686 jaegertracing/all-in-one:latest Next, i wrote a simple example application: Gist But when I go to Jaeger UI, nothing is shown about the example service. What did I do wrong? Thanks 回答1: There are two issues here. One is that your code sets