API(s) error message, in case of 4xx and 5xx, to clients includes a TraceContextId so that clients can get trace error details using the TraceContextId.
Usually, this TraceContextId is passed from client as a request header and appended to it's own trace id by server.
I would be great if ctrace can provision a method to return trace id of current tracer.
Create a public SpanContext that implements opentracing.SpanContext
Have span.context() return this instead of opentracing.SpanContext (this will break the opentracing.Span interface so maybe create span.correlation() which returns ctrace.SpanContext or ctrace.Corrolation (which contains TraceID and SpanID).
Above these measures, have the chttp.TracedHandler add the TraceID and SpanID to the response headers using tracer.inject()
API(s) error message, in case of 4xx and 5xx, to clients includes a TraceContextId so that clients can get trace error details using the TraceContextId.
Usually, this TraceContextId is passed from client as a request header and appended to it's own trace id by server.
I would be great if ctrace can provision a method to return trace id of current tracer.