-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Local-compatible tracing semantics #107
Conversation
…lder # Conflicts: # core/trace/src/main/scala/org/typelevel/otel4s/trace/SpanBuilder.scala # core/trace/src/main/scala/org/typelevel/otel4s/trace/Tracer.scala # java/trace/src/main/scala/org/typelevel/otel4s/java/trace/SpanBuilderImpl.scala
This is neat. Positives:
Tradeoffs:
My intuition is that we should only need two span types: one for |
java/trace/src/main/scala/org/typelevel/otel4s/java/trace/TracerImpl.scala
Show resolved
Hide resolved
And here's "the skunk test". Only one change, but it means the bar for |
Applicative[F].pure(span) | ||
|
||
def use[A](f: Res => F[A]): F[A] = | ||
startSpan.use(res => f(res)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need MonadCancelThrow
there
@@ -472,6 +471,7 @@ class TracerSuite extends CatsEffectSuite { | |||
} | |||
} | |||
|
|||
/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We've lost the ability to trace streams in this API. I believe I've made a Local[Stream[F, *], E]
, so we should be able to get it back, but this PR is already getting large.
This isn't perfect, but if we're committed to |
Work in progress of natchez-http4s-otel: rossabaker/natchez-http4s-otel#1. Translating EntryPoint and Kernel are the major sticking points. |
I merged the upstream and updated some ScalaDocs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Weird approval because it's a joint effort but I think we should land this and iterate from here.
Sounds good. I want to clean up my mess in SpanBuilderImpl from #86. |
Local-compatible tracing semantics
No description provided.