JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 718
  • Score
    100M100P100Q106872F
  • License MIT

Instrument node.js applications with open telemetry

Package Exports

  • @kubiks/otel-nextjs
  • @kubiks/otel-nextjs/lambda
  • @kubiks/otel-nextjs/trpc

Readme

NextJS Kubiks OpenTelemetry SDK

Instrument your Node.js applications with OpenTelemetry and send the traces to Kubiks.

Kubiks ServiceMap

Example

export async function register() {
  if (process.env.NEXT_RUNTIME === 'nodejs') {
    const { KubiksSDK, VercelPlugin, BetterHttpInstrumentation } = await import('@kubiks/otel-nextjs');

    const sdk = new KubiksSDK({
      serverless: true,
      service: "your-project-name",
      instrumentations: [
        new BetterHttpInstrumentation({ 
          plugins: [
            new VercelPlugin()
          ]
        }),
      ]
    });

    sdk.start();
  }
}