Skip to content

Make context injector init thread local on class change - #7402

Closed
luneo7 wants to merge 1 commit into
DataDog:masterfrom
luneo7:context-store-injector
Closed

luneo7 wants to merge 1 commit into
DataDog:masterfrom
luneo7:context-store-injector

Conversation

@luneo7

@luneo7 luneo7 commented Aug 8, 2024 •

Copy link
Copy Markdown
Contributor

What Does This Do

Make context injector init thread local on class change

Motivation

Adds a safeguard for the class being injected, since a thread can handle multiple injections and a visitEnd might not be triggered in all cases to clean the threadlocals

@luneo7 luneo7 changed the title tMake context injector inject only when last injector Make context injector inject only when last injector Aug 8, 2024
@luneo7
luneo7 force-pushed the context-store-injector branch from 58139d1 to 24a211b Compare August 8, 2024 23:54
@luneo7 luneo7 changed the title Make context injector inject only when last injector Make context injector init thread local on class change Aug 8, 2024
@luneo7
luneo7 force-pushed the context-store-injector branch from 24a211b to 9f3dbad Compare August 9, 2024 00:17
@luneo7
luneo7 marked this pull request as ready for review August 9, 2024 00:31
@luneo7
luneo7 requested a review from a team as a code owner August 9, 2024 00:31
@luneo7
luneo7 requested review from dougqh and ygree August 9, 2024 00:31
@mcculls

mcculls commented Aug 9, 2024

Copy link
Copy Markdown
Contributor

I'd prefer to merge #7403 because it avoids adding a thread-local

@luneo7

luneo7 commented Aug 9, 2024

Copy link
Copy Markdown
Contributor Author

Wonderful!

@luneo7 luneo7 closed this Aug 9, 2024
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