OwlpaneDOCS
SDKs

Node.js & TypeScript SDK

Instrument your application with @owlpane/node to stream traces, metrics, and structured logs to Owlpane over OTLP.

Installation

npm install @owlpane/node@0.1.8

Minimal setup

import { owlpane } from "@owlpane/node";

owlpane.start({
  service: "checkout-api",
  endpoint: process.env.OTEL_EXPORTER_OTLP_ENDPOINT,
  ingestKey: process.env.OWLPANE_INGEST_KEY,
  release: process.env.OWLPANE_RELEASE,
});

Zero-code alternative — preload the register hook:

node --import @owlpane/node/register dist/main.js

Environment Variables

VariableDescriptionExample
OTEL_EXPORTER_OTLP_ENDPOINT (or OWLPANE_INGEST_URL)Owlpane OTLP HTTP base URLhttps://ingest.owlpane.com
OWLPANE_INGEST_KEYProject ingest keyowl_ing_...
OTEL_SERVICE_NAMEService name resource attributecheckout-api
OWLPANE_ENVIRONMENTDeploy environmentproduction
OWLPANE_RELEASEDeploy release / version2024.10.0
OTEL_SDK_DISABLEDDisable all export when truefalse
OTEL_TRACES_SAMPLER_ARGTrace sampler ratio (0–1)0.1
OWLPANE_METRICS_EXPORT_INTERVAL_MSMetric export cadence in ms5000

Helpers

  • NestJS integration: @owlpane/node/nest
  • owlpane.job(), owlpane.setUser(), owlpane.setFeatureFlag(), owlpane.pipeline(), owlpane.recordFinding(), owlpane.mobileResource()

Optional signals

owlpane.start({
  service: "checkout-api",
  profiling: true,
  liveDebugger: { apiUrl: "https://api.owlpane.com" },
});

Verification

Open Observability → Logs (/observability/logs), Traces (/observability/traces), or Runtimes → Node (/observability/runtimes/node) to confirm telemetry is arriving.

Last updated

On this page