For my services Distributed Tracing needs, I am using opencensus and the good thing is it already has integrations to capture grpc/http/sql logs. I know that Dgraph provides distributed traces but these are from database end. Is it possible to integrate it using Dgo Client, so that we see the complete trace including dgraph spans.
You can set up your app so that it sends distributed traces to Jaeger. It’d look like the example in OpenCensus tracing docs: https://opencensus.io/guides/http/go/net_http/client/. You’ll want to call trace.RegisterExporter from your app and then pass in your context.Context from your app through to dgo.
Jaeger would show the distributed traces from your app to Dgraph.
Hello @dmai@chewxy, Context is being passed to grpc service method as visible in jaeger screenshot above(equipment-service), which is then propagated to Drgaph dgo client. I am not sure if something is getting missed in between.
Thanks for your response. The code is there on github and below is some of the information.
Our goal is to see Dgraph spans as well in Distributed trace of application requests. We are not sure if we need to enable some dgraph feature for this or add some handler/wrapper in dgo client. As per the initial response from @dmai, we are passing context down to dgo client.
This is all the setup we have as of now. And we can see from screenshots in the discussion thread, that we see spans for HTTP receive, HTTP sent, GRPC recieve.
Hello @chewxy, As discussed in the call please find the details below
The code is there on github and below is some of the information.
Our goal is to see Dgraph spans as well in Distributed trace of application requests. We are not sure if we need to enable some dgraph feature for this or add some handler/wrapper in dgo client. As per the initial response from @dmai, we are passing context down to dgo client.
This is all the setup we have as of now. And we can see from screenshots in the discussion thread, that we see spans for HTTP receive, HTTP sent, GRPC recieve.
Hi, a bit of an update. I was not able to get resources for last week to add Jaeger into dgo as most of the team last week were busy with some other problem. Will try this week
With this setup, you can create spans that will show up under your top level “service” and the distributed traces that are called from the request (spans in alpha and zero) will be viewable.