mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-30 15:00:51 +02:00
Fix trace client update (#5480)
This commit is contained in:
parent
229ef72e58
commit
3043e98fab
2 changed files with 19 additions and 6 deletions
|
@ -30,6 +30,10 @@ var (
|
|||
type SyncClient interface {
|
||||
otlptrace.Client
|
||||
|
||||
// Update safely replaces the current trace client with the one provided.
|
||||
// The new client must be unstarted. The old client (if any) will be stopped.
|
||||
//
|
||||
// This function is NOT reentrant; callers must use appropriate locking.
|
||||
Update(ctx context.Context, newClient otlptrace.Client) error
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue