Questions tagged [spring-cloud-sleuth]

Spring Cloud Sleuth implements a distributed tracing solution for Spring Cloud, borrowing heavily from Dapper, Zipkin and HTrace.

For most users, Sleuth should be invisible, and all your interactions with external systems should be instrumented automatically. You can capture data simply in logs, or by sending it to a remote collector service.

A Span is the basic unit of work. For example, sending RPC is a new span, as is sending a response to an RPC. Span’s are identified by a unique 64-bit ID for the span and another 64-bit ID for the trace the span is a part of. Spans also have other data, such as descriptions, key-value annotations, the ID of the span that caused them, and process ID’s (normally IP address). Spans are started and stopped, and they keep track of their timing information. Once you create a span, you must stop it at some point in the future. A set of spans forming a tree-like structure called a Trace. For example, if you are running a distributed big-data store, a trace might be formed by a put request.

Spring Cloud Sleuth features:

  • Adds trace and span ids to the Slf4J MDC, so you can extract all the logs from a given trace or span in a log aggregator.

  • Provides an abstraction over common distributed tracing data models: traces, spans (forming a DAG), annotations, key-value annotations. Loosely based on HTrace, but Zipkin (Dapper) compatible.

  • Instruments common ingress and egress points from Spring applications (servlet filter, rest template, scheduled actions, message channels, zuul filters, feign client).

  • If spring-cloud-sleuth-zipkin is available then the app will generate and collect Zipkin-compatible traces via HTTP. By default, it sends them to a Zipkin collector service on localhost (port 9411). Configure the location of the service using spring.zipkin.baseUrl.

638 questions
-1
votes
1 answer

How can I tell when a project milestone will be released (no date set for milestone)?

The spring-cloud-sleuth project's 2.1.3 milestone's issues are all closed on GitHub however there is no release date set. Is there a way that I can find out the release date? Is there a mailing list or some other forum? Or is contacting the…
-1
votes
1 answer

Spring Cloud Sleuth exited without errors/warnings

I am following the site here and here, to use Spring Cloud Sleuth, but the application exited without any warning/ errors. i have added the depedency to build.gradle: compile ('org.springframework.cloud:spring-cloud-starter-sleuth:1.0.0.RELEASE') i…
AC28
  • 282
  • 2
  • 11
-1
votes
1 answer

Sleuth 1.3 > 2.0 Interoperability

I have an application that is sending messages through AWS Services and I am manually adding the headers to the message via, final Map braveHeaders = new HashMap<>(); braveHeaders.put(Span.TRACE_ID_NAME, span.getTraceId()); …
Darren Forsythe
  • 10,712
  • 4
  • 43
  • 54
-1
votes
1 answer

Zipkin Slueth generate different traces for same different thread(in Same request)

I am using Zipkin Slueth with Spring boot. Now my zipkin is working fine in normal case but when I spawn 3 new threads from main thread, it generate different traces and not 1 trace. So i am unable to see the complete request. Same starts working…
Ankit Bansal
  • 2,162
  • 8
  • 42
  • 79
-1
votes
1 answer

use Zipkin+ElasticSearch+Sleuth+rabbitMQ can't find "services"

SpringCloud version:Dalston.SR1, rabbitMQ version:3.6.10,ElasticSearch version:6.2.4 There was nothing unusual when I use MySQL as a storage. Now I use ElasticSearch.I can't find any services. I lost something? here is the…
-1
votes
1 answer

Can spring Sleuth be used with Scala?

I'm developing event-driven Microservices which I use Java and Scala. I used Spring Sleuth and Zipkin for request tracing with Java services, can I use Spring Sleuth with Scala? if not how can I generate trace id and span id in Scala to be sent to…
Amr Khaled
  • 421
  • 1
  • 4
  • 5
-2
votes
1 answer

Create traceID in a non-Spring application

Small question on how to create traceID, but when the app is not Spring-based please. My application is the first, the initiator of a HTTP call. Therefore, the app can be considered as client. The destinations, the servers, are all Spring Boot…
PatPanda
  • 3,644
  • 9
  • 58
  • 154
-3
votes
1 answer

After I add spring-cloud-sleuth-zipkin-stream into pom.xml. The app can start.But i can't invoke my controller

First I want to integrate zipkin + rabbitmq into my project. So my pom.xml is below: org.springframework.cloud spring-cloud-sleuth-zipkin-stream
1 2 3
42
43