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
As we shift to using WithTraceProvider options (#213), it would be helpful to export the tracer map in the provider struct of the mocktrace package (go.opentelemetry.io/contrib/internal/trace).
As it stands, you cannot type cast the trace.Tracer returned from the mock provider to the concrete mocktrace.Tracer type.
Thus, we cannot access any of the convenience functions such as mocktrace.Tracer.EndedSpans()
The text was updated successfully, but these errors were encountered:
The current mock trace provider stores a map of the tracers created, but it isnt exported:
opentelemetry-go-contrib/internal/trace/mock_tracer.go
Lines 30 to 33 in 818b337
As we shift to using
WithTraceProvider
options (#213), it would be helpful to export the tracer map in the provider struct of the mocktrace package (go.opentelemetry.io/contrib/internal/trace
).As it stands, you cannot type cast the
trace.Tracer
returned from the mock provider to the concretemocktrace.Tracer
type.Thus, we cannot access any of the convenience functions such as
mocktrace.Tracer.EndedSpans()
The text was updated successfully, but these errors were encountered: