Title: Node.js Observability with OpenTelemetry — Maple
Open Graph Title: Node.js Observability with OpenTelemetry — Maple
X Title: Node.js Observability with OpenTelemetry — Maple
Description: Add distributed tracing to any Node.js application with the OpenTelemetry SDK. Auto-instrumentation captures Express, Fastify, database queries, and HTTP calls with no code changes.
Open Graph Description: Add distributed tracing to any Node.js application with the OpenTelemetry SDK. Auto-instrumentation captures Express, Fastify, database queries, and HTTP calls with no code changes.
X Description: Add distributed tracing to any Node.js application with the OpenTelemetry SDK. Auto-instrumentation captures Express, Fastify, database queries, and HTTP calls with no code changes.
Opengraph URL: https://maple.dev/integrations/nodejs/
X: @maple_dev
Generator: Astro v5.18.2
Domain: maple.dev
{"@context":"https://schema.org","@type":"WebPage","name":"Node.js Observability with OpenTelemetry — Maple","description":"Add distributed tracing to any Node.js application with the OpenTelemetry SDK. Auto-instrumentation captures Express, Fastify, database queries, and HTTP calls with no code changes.","url":"https://maple.dev/integrations/nodejs/"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://maple.dev/"},{"@type":"ListItem","position":2,"name":"Integrations","item":"https://maple.dev/integrations/nodejs/"},{"@type":"ListItem","position":3,"name":"Node.js","item":"https://maple.dev/integrations/nodejs/"}]}
{"@context":"https://schema.org","@type":"HowTo","name":"How to add OpenTelemetry observability to Node.js","description":"Add distributed tracing to any Node.js application with the OpenTelemetry SDK. Auto-instrumentation captures Express, Fastify, database queries, and HTTP calls with no code changes.","step":[{"@type":"HowToStep","position":1,"name":"Install dependencies","text":"npm install @opentelemetry/sdk-node @opentelemetry/auto-instrumentations-node @opentelemetry/exporter-trace-otlp-http @opentelemetry/exporter-logs-otlp-http"},{"@type":"HowToStep","position":2,"name":"Configure tracing","text":"// tracing.ts — run with: node --import ./tracing.ts app.ts\nimport { NodeSDK } from \"@opentelemetry/sdk-node\";\nimport { getNodeAutoInstrumentations } from \"@opentelemetry/auto-instrumentations-node\";\nimport { OTLPTraceExporter } from \"@opentelemetry/exporter-trace-otlp-http\";\nimport { OTLPLogExporter } from \"@opentelemetry/exporter-logs-otlp-http\";\nimport { SimpleLogRecordProcessor } from \"@opentelemetry/sdk-logs\";\n\nconst sdk = new NodeSDK({\n traceExporter: new OTLPTraceExporter({\n url: \"https://ingest.maple.dev/v1/traces\",\n headers: { Authorization: \"Bearer your-api-key\" },\n }),\n logRecordProcessors: [\n new SimpleLogRecordProcessor(\n new OTLPLogExporter({\n url: \"https://ingest.maple.dev/v1/logs\",\n headers: { Authorization: \"Bearer your-api-key\" },\n })\n ),\n ],\n instrumentations: [getNodeAutoInstrumentations()],\n});\n\nsdk.start();"}]}
| theme-color | #272219 |
| og:type | article |
| og:site_name | Maple |
| og:locale | en_US |
| og:image | https://maple.dev/og-image.png |
| twitter:card | summary_large_image |
| twitter:image | https://maple.dev/og-image.png |
Links:
Viewport: width=device-width, initial-scale=1
Robots: index,follow