Language Support

Language-specific packages for Serverless OTLP Forwarder integration.

Supported Languages

LanguagePackageVersionStatus
Rustotlp-stdout-clientCrates.ioAlpha
Pythonotlp-stdout-adapterPyPIAlpha
Node.js@dev7a/otlp-stdout-exporternpmAlpha

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:

VariableDescriptionDefault
OTEL_EXPORTER_OTLP_PROTOCOLProtocol for OTLP data (http/protobuf or http/json)http/protobuf
OTEL_EXPORTER_OTLP_COMPRESSIONCompression type (gzip or none)gzip
OTEL_SERVICE_NAMEName of your service for telemetry identification-

See the language-specific guides for detailed integration instructions and examples.


Table of contents