Closed RoadRunnr closed 2 years ago
found it, would be nice to add this to the doc.
In the request handler, do this to restore the opentelemetry context:
Ctx = opentelemetry_process_propagator:fetch_parent_ctx(),
otel_ctx:attach(Ctx),
This is specific to open telemetry, but I bet a pull request for docs there would be welcome.
The REAME says:
That mean the request process has no access to the span context. How am I then supposed to add subspans to the request span?