/ instrumentation.ts
instrumentation.ts
1 // Uncomment this file to enable instrumentation and observability using OpenTelemetry 2 // Refer to the docs for installation instructions: https://docs.medusajs.com/learn/debugging-and-testing/instrumentation 3 4 // import { registerOtel } from "@medusajs/medusa" 5 // // If using an exporter other than Zipkin, require it here. 6 // import { ZipkinExporter } from "@opentelemetry/exporter-zipkin" 7 8 // // If using an exporter other than Zipkin, initialize it here. 9 // const exporter = new ZipkinExporter({ 10 // serviceName: 'my-medusa-project', 11 // }) 12 13 // export function register() { 14 // registerOtel({ 15 // serviceName: 'medusajs', 16 // // pass exporter 17 // exporter, 18 // instrument: { 19 // http: true, 20 // workflows: true, 21 // query: true 22 // }, 23 // }) 24 // }