why openai.chat's parent_span is null, trace context is lost #3629
Replies: 1 comment
-
|
the reason is that using annotations on the class causes context loss. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using traceloop.sdk to auto instrumentation openai, but the span named "openai.chat" , this span's parent_id is null, not is task's span id, so the trace context is lost
my python code
I expect is 3 spans and 1 trace , relation like:workflow --> task(parent is workflow)--> openai_chat (parent is task)
but actual behavior is 3 spans and 2 traces, like:
Beta Was this translation helpful? Give feedback.
All reactions