Skip to content

chore: remove mutex lock for ContextBuffer #630

Merged
duncanista merged 4 commits intomainfrom
jordan.gonzalez/remove-lock-on-context-buffer
Mar 31, 2025
Merged

chore: remove mutex lock for ContextBuffer #630
duncanista merged 4 commits intomainfrom
jordan.gonzalez/remove-lock-on-context-buffer

Conversation

@duncanista
Copy link
Copy Markdown
Contributor

@duncanista duncanista commented Mar 27, 2025

What?

Removes the Mutex Lock on ContextBuffer

Motivation

We were using ContextBuffer to share tracer_span so that we can enrich the top level span generated by the Extension. Instead, we now share the already existing InvocationProcessor lock which allows us to set the tracer_span on the given context.

Tests

Works as before.

Notes

There is a known issue which only makes it work on cold start spans, this was also something that appeared on the previous approach.

replaces sharing the `ContextBuffer`, now we directly access the `InvocationProcessor` to add the tracer top level span
@duncanista duncanista marked this pull request as ready for review March 28, 2025 16:43
@duncanista duncanista requested a review from a team as a code owner March 28, 2025 16:43
@alexgallotta alexgallotta mentioned this pull request Mar 31, 2025
@duncanista duncanista merged commit 8bcbb2e into main Mar 31, 2025
46 checks passed
@duncanista duncanista deleted the jordan.gonzalez/remove-lock-on-context-buffer branch March 31, 2025 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants