-
Notifications
You must be signed in to change notification settings - Fork 872
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OpenTelemetryDriver don't require DriverManager for underlying drivers (
#7089) closes: #7028 For reasons explained in the linked issue, it might be handy to register drivers directly against `OpenTelemetryDriver` rather than against `DriverManager`. I decided to also go with static registry as drivers are often instantiated connect pools (like Agroal) and it could be difficult to use instance varibles. This PR adds additional `Driver` collection where drivers can be registered. If driver is registered both with `OpenTelemtryDriver` and `DriverManager`, drivers registered with `OpenTelemetryDriver` are preferred.
- Loading branch information
1 parent
be7a5c3
commit 6207887
Showing
2 changed files
with
134 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
No synchronization in public API calls for nasty data-race and concurrency bugs. Suggestion: either synchronize access to DRIVER_CANDIDATES or use CopyOnWriteArrayList as an implementation.