geek / traci

hapi open tracing plugin
Mozilla Public License 2.0
5 stars 2 forks source link

Actually a feature request #1

Open jagazee opened 5 years ago

jagazee commented 5 years ago

Wanted to check if the plugin could provide a feature where the spans could be traced across different micro-services. I want to create a set of spans under single trace for a user experience which internally call multiple services. Something like microservice A talks to B, so request to A initiates parent span and then the parent span context is passed to service B . Service B checks if there is a parent span context ( in hapi_request ) to use and proceed as "childof" span or creates a new span instead of childof.

geek commented 5 years ago

@jagazee I'll mark this as a request and am open to potential solutions. I believe this is possible if we detect a x-span-id header or any more standard way of passing the span information between services.