UNPKG

@arizeai/phoenix-client

Version:
24 lines 747 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.cleanupOwnedTracerProvider = cleanupOwnedTracerProvider; /** * Flushes and shuts down a tracer provider that this package created, then * detaches any global OTEL registration it owns so another provider can be mounted. */ async function cleanupOwnedTracerProvider({ provider, globalRegistration, }) { if (!provider) { return; } try { await provider.forceFlush(); } finally { try { await provider.shutdown(); } finally { globalRegistration === null || globalRegistration === void 0 ? void 0 : globalRegistration.detach(); } } } //# sourceMappingURL=tracing.js.map