You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a use-case where we're using http4s to drive legacy code written in Java (which we're not ready to rewrite in the typelevel style).
I would like to be able to share a trace initiated from http4s via natchez (and code written in #5) to pass down a child OpenTracing Span to serve as the root span of my legacy Java calls.
I realize this breaks the nice abstraction / hiding provided by natchez, but there can be reasons for consenting adults to do so from time-to-time.
Are we open to adding extension methods to the entrypoint hooks (like in JaegerTracer) to construct and return a child span from the OpenTracing API, or would that ruin everything?
The text was updated successfully, but these errors were encountered:
The contents of the map are only meaningful to Natchez, so I would not count on being able to inspect it and pull out usable data.
If you have access to your Span[F] you can try to downcast it to JaegerSpan which gives you access to the underlying span and tracer. If all you have is Trace[F] then you're out of luck unless we give you a way to surface the current span (which we could).
In general this seems bad because as you say it breaks the abstraction, and if you change your tracing back end it will break code that assumes a particular implementation.
I have a use-case where we're using http4s to drive legacy code written in Java (which we're not ready to rewrite in the typelevel style).
I would like to be able to share a trace initiated from http4s via natchez (and code written in #5) to pass down a child OpenTracing
Span
to serve as the root span of my legacy Java calls.I realize this breaks the nice abstraction / hiding provided by
natchez
, but there can be reasons for consenting adults to do so from time-to-time.Are we open to adding extension methods to the entrypoint hooks (like in
JaegerTracer
) to construct and return a child span from the OpenTracing API, or would that ruin everything?The text was updated successfully, but these errors were encountered: