vercel / otel

OTEL tracing for Vercel
https://vercel.com/docs/observability/otel-overview
19 stars 4 forks source link

Ignore list for specific routes #86

Open arishoham opened 2 months ago

arishoham commented 2 months ago

Is there a way to add an ignore list to the configuration file? I'd like to not record spans for /liveness . This is my instrumentation.ts file:

import { OTLPHttpJsonTraceExporter, registerOTel } from '@vercel/otel';

export async function register() {
  registerOTel({
    serviceName: 'app-name,
    instrumentationConfig: {
      fetch: {
        propagateContextUrls: ['*'],
      },
    },
    traceExporter: new OTLPHttpJsonTraceExporter({ url: 'https//...' }),
  });
}