MCPcopy
hub / github.com/simstudioai/sim / shutdownOtel

Function shutdownOtel

apps/sim/instrumentation-node.ts:327–334  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

325 sdk.start()
326
327 const shutdownOtel = async () => {
328 try {
329 await sdk.shutdown()
330 logger.info('OpenTelemetry SDK shut down successfully')
331 } catch (err) {
332 logger.error('Error shutting down OpenTelemetry SDK', err)
333 }
334 }
335
336 process.on('SIGTERM', shutdownOtel)
337 process.on('SIGINT', shutdownOtel)

Callers

nothing calls this directly

Calls 3

infoMethod · 0.80
errorMethod · 0.80
shutdownMethod · 0.65

Tested by

no test coverage detected