Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support reporting trace data to Datadog #707

Closed
Diagoras opened this issue Sep 21, 2017 · 9 comments
Closed

Support reporting trace data to Datadog #707

Diagoras opened this issue Sep 21, 2017 · 9 comments

Comments

@Diagoras
Copy link

There's already support for sending trace data to Zipkin, which is great. It'd also be nice if the monitoring service Datadog was supported, since they also have an HTTP based system for accepting trace data. I imagine this would best be done by having a separate, autoconfigured dependency just like you do for Zipkin.

Datadog trace API details can be found here: https://docs.datadoghq.com/tracing/api/

@marcingrzejszczak
Copy link
Contributor

Yeah you can already do it by registering your own https://github.com/spring-cloud/spring-cloud-sleuth/blob/master/spring-cloud-sleuth-core/src/main/java/org/springframework/cloud/sleuth/SpanReporter.java . It would be enough to convert the Sleuth's Span into whatever Datadog understands and then use the HTTP client to send those spans to Datadog. Care for a PR? :D

@codefromthecrypt
Copy link
Contributor

codefromthecrypt commented Sep 22, 2017 via email

@marcingrzejszczak
Copy link
Contributor

marcingrzejszczak commented Mar 1, 2018

Since Sleuth has migrated to Brave (https://github.com/openzipkin/brave), I guess the first option would be now to collaborate with Brave and then Sleuth can autoconfigure Brave.

@Diagoras
Copy link
Author

Diagoras commented Jun 10, 2018

@marcingrzejszczak Hey, I notice you closed this issue because it'd be better to configure Brave to send traces to DataDog (if I understand correctly). But it looks like Spring Sleuth explicitly has a module to send traces to Zipkin itself.

Is there a reason that it makes more sense to configure Brave to send trace data to DataDog, instead of adding a new spring-cloud-sleuth-datadog module to Spring Sleuth? For example, are there plans to deprecate Sleuth's explicit Zipkin integration in favour of using Brave's?

Thanks.

@codefromthecrypt
Copy link
Contributor

codefromthecrypt commented Jun 11, 2018 via email

@Diagoras
Copy link
Author

@adriancole Thanks for the pointer! I'll be sure to ping that issue. It sounds like these kinds of external reporters are planned to be handled in Brave instead of in Spring Sleuth? If so, then a Datadog variant would rock. Much appreciated.

@codefromthecrypt
Copy link
Contributor

codefromthecrypt commented Jun 21, 2018 via email

@masoncj
Copy link

masoncj commented Feb 5, 2020

Just came here to say that we spent a little while trying to get Spring Sleuth/Brave to integrate well with Datadog's java agent, and eventually gave up and fell back to using open tracing direct to Datadog. It seems like Spring Sleuth is pretty tightly coupled to Brave so substituting other Tracers seems challenging. The datadog reporter approach would seem to work but would require forgoing other features in the datadog java agent (submitting trace data directly to datadog's monitoring agent).

@codefromthecrypt
Copy link
Contributor

datadog's agent does not just configure opentracing, rather it also wants to control the tracer itself. since sleuth controls the tracer, this is a conflict. datadog could choose to support brave. opentracing itself is deprecated, and brave is not and existed prior to opentracing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants