Language Support
Language-specific packages for Serverless OTLP Forwarder integration.
Supported Languages
Language | Package | Version | Status |
---|---|---|---|
Rust | otlp-stdout-client | Alpha | |
Python | otlp-stdout-adapter | Alpha | |
Node.js | @dev7a/otlp-stdout-exporter | Alpha |
Integration Overview
Each language package provides a lightweight adapter that:
- Serializes OTLP data to stdout
- Supports both JSON and protobuf formats
- Handles compression when configured
- Integrates with standard OpenTelemetry SDKs
Quick Examples
Rust
use otlp_stdout_client::StdoutClient;
use opentelemetry_otlp::WithExportConfig;
let exporter = opentelemetry_otlp::SpanExporter::builder()
.with_http()
.with_http_client(StdoutClient::default())
.build()?;
Python
from otlp_stdout_adapter import StdoutAdapter
from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExporter
exporter = OTLPSpanExporter(
session=StdoutAdapter().get_session(),
timeout=5
)
Node.js
const { StdoutOTLPExporterNode } = require('@dev7a/otlp-stdout-exporter');
const exporter = new StdoutOTLPExporterNode({
compression: 'gzip',
format: 'protobuf'
});
Configuration
All language implementations support standard OpenTelemetry environment variables:
Variable | Description | Default |
---|---|---|
OTEL_EXPORTER_OTLP_PROTOCOL | Protocol for OTLP data (http/protobuf or http/json ) | http/protobuf |
OTEL_EXPORTER_OTLP_COMPRESSION | Compression type (gzip or none ) | gzip |
OTEL_SERVICE_NAME | Name of your service for telemetry identification | - |
See the language-specific guides for detailed integration instructions and examples.