anuraaga on update-extensions
anuraaga on master
Update extensions (#164) * Upd… (compare)
jeqo on update-extensions
point to module main page. (compare)
hi, i m new to zipkin working on a POC. I started zipkin as below
java -DSTORAGE_TYPE=elasticsearch -DES_HOSTS=http://localhost:9200 -DSEARCH_ENABLED=true -jar zipkin-server-2.22.0-exec.jar --logging.level.zipkin2=DEBUG
Then I posted data via rest API (http://localhost:9411/api/v2/spans)
[
{
"id": "352bff9a74ca9ad2",
"traceId": "5af7183fb1d4cf5f",
"parentId": "6b221d5bc9e6496c",
"name": "get /api",
"timestamp": 1556604172355737,
"duration": 1431,
"kind": "SERVER",
"localEndpoint": {
"serviceName": "backend",
"ipv4": "192.168.99.1",
"port": 3306
},
"remoteEndpoint": {
"ipv4": "172.19.0.2",
"port": 58648
},
"tags": {
"http.method": "GET",
"http.path": "/api"
}
}
]
@/all #Zipkin 2.22.1 starts publishing multi-architecture #Docker images, also to GitHub Container Registry.
Using ghcr.io avoids the new Docker Hub rate limits that apply today.
Ex:
docker run -d -p 9411:9411 ghcr.io/openzipkin/zipkin-slim
ello Im having trouble getting spring cloud sleuth work with unirest. Can someone help please?
According to https://cloud.spring.io/spring-cloud-sleuth/reference/html/#synchronous-rest-template need to register Unirest as Bean so that sleuth can intercept request and inject trace info.
Any help on how to get this working?
yow can I attach an extra baggage field to current span/scope? If I add baggage field like this:
Optional.ofNullable(BaggageField.getByName("some-header"))
.ifPresent(field -> field.updateValue("some-value"));
then only downstream spans see the value. How can I make it so that current MDC has that value, and revert when current span/scope closes?
curl -fL -o zipkin.jar https://repo1.maven.org/maven2/io/zipkin/zipkin-server/2.22.2/zipkin-server-2.22.2-exec.jar
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Failed to create the file zipkin.jar: Permission denied
0 56.8M 0 1362 0 0 35842 0 0:27:42 --:--:-- 0:27:42 35842
curl: (23) Failed writing body (0 != 1362)
Hi, i'm having trouble in implementing the tracing service in ambassador-gateway with zipkin driver. I had configured the tracing service for ambassador as shown below
apiVersion: getambassador.io/v1
kind: TracingService
metadata:
name: tracing
spec:
config:
collector_endpoint: /api/v2/spans
driver: zipkin
service: jaeger-collector.jaeger:9411
I'm able to the see the traces in jaeger UI ,when i made some requests to the services under that gate way. This time i tried instrumenting the code in one of the services by setting the global tracer with following config:
func initZipkinTracer(service string) {
collectorService := os.Getenv("COLLECTOR_SERVICE")
collectorEndPoint := os.Getenv("COLLECTOR_ENDPOINT")
CollectorURL := "http://" + collectorService + "/" + collectorEndPoint
loglib.Info("Traces collector URL", "jaeger-collector", CollectorURL)
reporter := reporterhttp.NewReporter(CollectorURL)
sampler, err := zipkin.NewCountingSampler(1)
if err != nil {
loglib.Fatal("Unable to initiate the zipkin tracer", "error", err)
}
localEndpoint := &model.Endpoint{ServiceName: service, Port: uint16(viper.GetInt32("grpc-port"))}
t, err := zipkin.NewTracer(
reporter,
zipkin.WithSampler(sampler),
zipkin.WithLocalEndpoint(localEndpoint),
)
if err != nil {
loglib.Fatal("Unable to initiate the zipkin tracer", "error", err)
}
tracer := zipkinot.Wrap(t)
opentracing.SetGlobalTracer(tracer)
}
while creating the server i enabled the tracing in the grpc middleware using otgrpc module as follows:
server.UnaryServerInterceptors(
otgrpc.OpenTracingServerInterceptor(opentracing.GlobalTracer(), otgrpc.LogPayloads()),
)
When i made the requests to services which were under ambassador , i'm getting two separate traces one from the ambassador-gateway and the other from the service where we instrumented the code as specified above .Seems like the service is unable to get the info about ambassador tracer from the request context. The expectation is that i need get only one trace which got initiated at ambassador-api-gateway, and the tracing data generated in the service as child span . What are the changes i need to made to fix this issue?