Environment variables

Configuration

The Vight SDKs share the same service identity, routing, and ingest configuration.

ConfigEnvironmentOTLP

Configuration model

Configuration has two jobs: it tells Vight where telemetry should be sent, and it gives every emitted signal the same service identity. Stable identity is what makes Services, Traces, Logs, Runtime, Releases, and Alerts line up during an investigation.

Set these values in the runtime environment before the SDK starts. Prefer deployment-managed secrets for ingestion keys and deployment-managed values for environment, version, and release identifiers.

Canonical environment variables

NameRequiredPurpose
VIGHT_SERVICE_NAMEYesLogical service name shown in traces, services, logs, and metrics.
VIGHT_ENVIRONMENTRecommendedDeployment environment such as production, staging, preview, or dev.
VIGHT_SERVICE_VERSIONOptionalApplication version, package version, image tag, or release name.
VIGHT_DEPLOYMENT_IDOptionalDeploy identifier used to compare behavior before and after releases.
VIGHT_INGESTION_KEYYesProject ingestion key from Vight settings.
VIGHT_OTLP_ENDPOINTYesVight OTLP HTTP endpoint. Use the hosted ingest endpoint for production.
VIGHT_ORG_IDOptionalOrganization identifier for explicit telemetry routing.
VIGHT_PROJECT_IDOptionalProject identifier for explicit telemetry routing.

Production baseline

.env
VIGHT_SERVICE_NAME=checkout-api
VIGHT_ENVIRONMENT=production
VIGHT_SERVICE_VERSION=1.0.0
VIGHT_DEPLOYMENT_ID=deploy_2026_06_24
VIGHT_INGESTION_KEY=...
VIGHT_OTLP_ENDPOINT=https://ingest.vight.dev
VIGHT_ORG_ID=...
VIGHT_PROJECT_ID=...

Identity discipline

Changing a service name or environment splits history. Use stable names that match ownership, and use version or deployment values when you need release-level comparison instead of renaming the service.