GetGlobalTelemetryClient returns the global telemetry client for adding to context
(ctx context.Context)
| 51 | |
| 52 | // GetGlobalTelemetryClient returns the global telemetry client for adding to context |
| 53 | func GetGlobalTelemetryClient(ctx context.Context) *Client { |
| 54 | EnsureGlobalTelemetryInitialized(ctx) |
| 55 | return globalToolTelemetryClient |
| 56 | } |
| 57 | |
| 58 | // SetGlobalTelemetryVersion sets the version for automatic telemetry initialization |
| 59 | // This should be called by the root package to provide the correct version |