Skip to content

Conversation

@apanasenko-oai
Copy link
Collaborator

No description provided.

@apanasenko-oai apanasenko-oai force-pushed the anton_panasenko_fix_tracing branch from b65b3d6 to 8e705ec Compare January 13, 2026 02:17
Copy link
Collaborator

@jif-oai jif-oai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved to unblock but we should resolve this Arc<Mutex<Option<Span>>> before merging

pub struct OtelManager {
pub(crate) metadata: OtelEventMetadata,
pub(crate) session_span: Span,
pub(crate) session_span: Arc<Mutex<Option<Span>>>,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks pretty bad to me. The Mutex will block the runner and in general this kind of object look like a smell.
Could you at least use a RwLock? (and I think we can drop the Option as Span::none() should be available

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove it at all to simplify whole process.

@apanasenko-oai apanasenko-oai force-pushed the anton_panasenko_fix_tracing branch from 8e705ec to 47ebeb1 Compare January 13, 2026 18:27
@apanasenko-oai apanasenko-oai merged commit 51d75bb into main Jan 13, 2026
30 of 32 checks passed
@apanasenko-oai apanasenko-oai deleted the anton_panasenko_fix_tracing branch January 13, 2026 19:36
@github-actions github-actions bot locked and limited conversation to collaborators Jan 13, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants