mirror of
https://github.com/openai/codex.git
synced 2026-11-03 08:22:30 +00:00
fix: drop session span at end of the session (#9126)
This commit is contained in:
1 parent
57ba758df5
commit
51d75bb80a
3 files changed
+9
-15
No files matched your search
@@ -29,8 +29,10 @@ impl SessionTask for RegularTask {
|
||||
cancellation_token: CancellationToken,
|
||||
) -> Option<String> {
|
||||
let sess = session.clone_session();
|
||||
let run_turn_span =
|
||||
trace_span!(parent: sess.services.otel_manager.current_span(), "run_turn");
|
||||
let run_turn_span = trace_span!("run_turn");
|
||||
sess.services
|
||||
.otel_manager
|
||||
.apply_traceparent_parent(&run_turn_span);
|
||||
run_turn(sess, ctx, input, cancellation_token)
|
||||
.instrument(run_turn_span)
|
||||
.await
|
||||
|
||||
Reference in new issue
Block a user