Open philipcristiano opened 2 years ago
Is a SpanCtx actually passed to it somewhere? That is wrong. It should be type t()
not map()
.
Is a SpanCtx actually passed to it somewhere?
Maybe not from this repository directly? I'm working from a comment to link traces from opentelemetry_cowboy.
The code appears to work, but is breaking Dialyzer.
I am also seeing this issue when working with OpentelemetryProcessPropagator following this example.
OpentelemetryProcessPropagator.fetch_parent_ctx/2
returns opentelemetry:span_ctx() | :undefined
while OpenTelemetry.Ctx.attach/1
takes a map. I'm not sure which one is correct.
The more I looked at it, it appears the types on OpentelemetryProcessPropagator need to be fixed for the case I mentioned above.
Yea, process propagator should be returning a Ctx not a SpanCtx when you are fetching the parent. So maybe that type spec is wrong?
attach
takes amap()
but that doesn't match theopentelemetry:span_ctx()
type used elsewhere. This break Dialyzer when attempting to validate calls toattach
Can this be changed directly? I'm not sure the history for
token
in that file if the common type could be used instead.