github.com/instana/go-sensor/instrumentation/go.opencensus.io/instatrace (go): Package instatrace provides Instana trace continuation by mapping the spans created within code instrumented with OpenCensus onto ongoing Instana traces.  To map OpenCensus traces to Instana ones first register an exporter (this is usually done in your main() function, close to where Instana sensor is initialized:  To correlate traces, the instatrace.Mapper needs an entry point to the code instrumented with OpenCensus. (*instatrace.Mapper).Context() checks whether there is an active OpenCensus trace present in provided context and maps this trace to an ongoing Instana trace stored within the same context. If there is no active OpenCensus trace yet, (*instatrace.Mapper).Context() initiates one:  Once this is done, the exporter will send an Instana span for every OpenCensus span created from within this context, and attribute them to the same Instana trace.
Keywords: distributed-tracing|go|golang|gopher|instana|instrumentation|metrics|metrics-gathering|monitoring|opentracing|performance|performance-monitoring|trace|tracing