Skip to content
betterstack-alchemyUnofficial

Telemetry.otlpLayerFromEnv

Kind LayerSource src/Telemetry/Export.ts

otlpLayer from the environment: BETTERSTACK_SOURCE_TOKEN and BETTERSTACK_INGESTING_HOST (the variables sdk’s IngestCredentialsFromEnv reads), optionally OTEL_SERVICE_NAME. Missing variables fail the layer with a ConfigError.