instrumentation.ts 778 B

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