Skip to main content
This reference lists the environment variables used to configure Tracer, the real-time spending-control and transaction-risk service. You set these at deploy time, through Helm values, Docker Compose, or your orchestrator’s environment. Variables marked as required cause the server to fail on startup if not set. For the configuration blocks that every Lerian product shares, see the BYOC configuration reference. Those blocks cover TLS posture, OpenTelemetry, Access Manager authentication, multi-tenancy, service discovery, and event streaming. This page focuses on what is distinctive to Tracer.

Ports and health endpoints

See the health and readiness reference for the probe contract.

Deployment and TLS

Application

Rule evaluation

Authentication and request handling

RI permission declaration

Database (PostgreSQL)

Tracer stores rules and usage counters in its own tracer database on the shared Midaz PostgreSQL primary. A dedicated migration-runner image applies the schema migration before the application starts. The service boots against an already-migrated schema and does not run migrations in-process.

Background workers

Reservations

Readiness and draining

Reservation gRPC seam

Server side of the seam the Midaz ledger calls to reserve spending limits. Off unless you set TRACER_GRPC_PORT.

Shared configuration backbone

The following blocks are identical across Lerian products. The BYOC configuration reference documents them in full. They default off.
  • Access Manager authentication: PLUGIN_AUTH_ENABLED, PLUGIN_AUTH_ADDRESS. Enable in production. In discovery-enabled builds (see Service discovery below), Tracer resolves the Access Manager host through Consul. It falls back to PLUGIN_AUTH_ADDRESS if resolution fails. Current builds always use PLUGIN_AUTH_ADDRESS.
  • Multi-tenancy: MULTI_TENANT_*, plus Tracer’s per-tenant pool knobs (MULTI_TENANT_MAX_TENANT_POOLS, MULTI_TENANT_MAX_OPEN_CONNS_PER_TENANT, TENANT_CAP_RETRY_AFTER_SECONDS). Off by default. APPLICATION_NAME identifies the module to Tenant Manager.
  • Service discovery: SD_* (Consul). Off by default. When SD_ENABLED=true, Tracer registers itself as midaz-tracer (advertising the HTTP port from SERVER_ADDRESS, default 4020) and resolves Access Manager through Consul. If that resolution fails, it falls back to the static PLUGIN_AUTH_ADDRESS. Discovery requires SD_EXTERNAL_ADDRESS or SD_INTERNAL_ADDRESS. Tracer is the server on the reservation gRPC seam and does not advertise it.
  • Event streaming: STREAMING_* (lib-streaming producer). Off by default.
  • OpenTelemetry: ENABLE_TELEMETRY, OTEL_*. Tracer also exposes a Prometheus /metrics endpoint.