-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Inject OTEL provider into command context
The OpenTelemetry library flushes traces asynchronously, so pending traces can be lost when the application terminates. This adds the OTEL provider to the command context so that clients can call 'provider.Shutdown()' and ensure that all traces are flushed before exiting the program.
- Loading branch information
1 parent
9f8a4f6
commit b1bf463
Showing
1 changed file
with
19 additions
and
9 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