Hi folks,
in Java terms I'd like to be be able to do the following:
SpanContext context = getSpanContext(request);
tracer.buildSpan("operationName")
.withContext(context)
.start();
-> Introduce SpanBuilder#withContext(SpanContext)
Right now, its only possible to create a child span given a SpanContext. I want to be able to create a span with a specific SpanContext.
The use case I have in mind is when a Span is created via JavaScript and then reported to a Java backend. In this backend, I want to recreate the span created in JavaScript, possibly enhance it with some tags (like adding the geo location based on the client ip, parsing of the user agent) and then report it. This is currently not possible in an implementation independent way.
Another use case might be ETL when you want to migrate traces from a legacy system to a new backend. In this case you probably also want to read traces from the old backend, transform them to a canonical format (Span) and then convert them to the target format.
Hi folks,
in Java terms I'd like to be be able to do the following:
-> Introduce
SpanBuilder#withContext(SpanContext)Right now, its only possible to create a child span given a
SpanContext. I want to be able to create a span with a specificSpanContext.The use case I have in mind is when a
Spanis created via JavaScript and then reported to a Java backend. In this backend, I want to recreate the span created in JavaScript, possibly enhance it with some tags (like adding the geo location based on the client ip, parsing of the user agent) and then report it. This is currently not possible in an implementation independent way.Another use case might be ETL when you want to migrate traces from a legacy system to a new backend. In this case you probably also want to read traces from the old backend, transform them to a canonical format (
Span) and then convert them to the target format.