Skip to content

driver: initialize tracer delegate in driver handle instead of individual plugins#2362

Merged
tonistiigi merged 1 commit intodocker:masterfrom
jsternberg:single-tracer-delegate-client
Mar 29, 2024
Merged

driver: initialize tracer delegate in driver handle instead of individual plugins#2362
tonistiigi merged 1 commit intodocker:masterfrom
jsternberg:single-tracer-delegate-client

Conversation

@jsternberg
Copy link
Copy Markdown
Collaborator

This refactors the driver handle to initialize the tracer delegate inside of the driver handle instead of the individual plugins.

This provides more uniformity to how the tracer delegate is created by allowing the driver handle to pass additional client options to the drivers when they create the client. It also avoids creating the tracer delegate client multiple times because the driver handle will only initialize the client once. This prevents some drivers, like the remote driver, from accidentally registering multiple clients as tracer delegates.

This is an alternative to #2187 for fixing the multiple trace spans sent by the remote driver problem.

…dual plugins

This refactors the driver handle to initialize the tracer delegate
inside of the driver handle instead of the individual plugins.

This provides more uniformity to how the tracer delegate is created by
allowing the driver handle to pass additional client options to the
drivers when they create the client. It also avoids creating the tracer
delegate client multiple times because the driver handle will only
initialize the client once. This prevents some drivers, like the remote
driver, from accidentally registering multiple clients as tracer
delegates.

Signed-off-by: Jonathan A. Sternberg <[email protected]>
@tonistiigi tonistiigi merged commit c690d46 into docker:master Mar 29, 2024
@jsternberg jsternberg deleted the single-tracer-delegate-client branch March 29, 2024 19:35
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