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
Yes, I initially tried the example from the README.md:
trace.set_preferred_tracer_implementation(lambda T: Tracer())
tracer = trace.tracer()
with tracer.start_span('foo'):
print(Context)
with tracer.start_span('bar'):
print(Context)
with tracer.start_span('baz'):
print(Context)
print(Context)
print(Context)
But I made a typo with the casing: I typed trace.Tracer() (the constructor for the abstract class Tracer) instead of trace.tracer() (returning the preferred implementation, configurable with set_preferred_tracer_implementation()). The output ended up as the following:
Is your feature request related to a problem?
Yes, I initially tried the example from the README.md:
But I made a typo with the casing: I typed
trace.Tracer()
(the constructor for the abstract class Tracer) instead oftrace.tracer()
(returning the preferred implementation, configurable withset_preferred_tracer_implementation()
). The output ended up as the following:After fixing the typo, the correct output is displayed:
It confused me at first that there was no error message from the typo.
Describe the solution you'd like
Maybe some documentation
docs/pitfalls.md
with a checklist of symptoms and common mistakes.The text was updated successfully, but these errors were encountered: