Skip to content

Conversation

@hussainkarafallah
Copy link

@hussainkarafallah hussainkarafallah commented Nov 8, 2024

Context

Adding ThreadLocalAccessor for TwContext so it's available for libraries using micrometer context API
Reactor uses context-propagation API to set and restore thread locals

Checklist

@hussainkarafallah hussainkarafallah requested a review from a team as a code owner November 8, 2024 12:23

static final TwContext ROOT_CONTEXT = new TwContext(null, true);

static {
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably might be better to put this logic into the starter package and using an autoconfiguration mechanism for that. Using the static block is probably too hard coded in this case.

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.

3 participants