Backend: Error Monitoring
Go
Java
JS
Python
Ruby
Rust
Backend: Logging
Go
JS
Python
Ruby
Java
Rust
Hosting Providers
Backend: Tracing
Go
Node.js
Python
Rust
Native OpenTelemetry
Fullstack Frameworks
Overview
Self Host & Local Dev
Menu
Native OpenTelemetry Tracing
Learn how to export traces to highlight.io via one of the OpenTelemetry SDKs.
1
Export your traces to the highlight.io collector.
We host an OpenTelemetry collector endpoint at https://otel.highlight.io:4318/v1/traces. Configure your OpenTelemetry SDK to send traces via OTLP HTTPS to this endpoint. Your Highlight Project ID should be included as an attribute with the highlight.project_id
key. This configuration will depend on which SDK you use in your app.
import { NodeSDK } from '@opentelemetry/sdk-node'
import { OTLPTraceExporter } from '@opentelemetry/exporter-trace-otlp-proto';
import { Resource } from '@opentelemetry/resources'
import type { Attributes } from '@opentelemetry/api'
const attributes: Attributes = {
'highlight.project_id': '<YOUR_PROJECT_ID>'
}
const sdk = new NodeSDK({
resource: new Resource(attributes),
traceExporter: new OTLPTraceExporter({
url: 'https://otel.highlight.io:4318/v1/traces'
})
});
sdk.start();
2
Verify your backend traces are being recorded.
Visit the highlight traces portal and check that backend traces are coming in.