fabric

Deployments

Microbus recognizes four deployment environments:

The deployment environment impacts certain aspects of the framework such as structured logging and distributed tracing.

  PROD LAB LOCAL TESTING
Logging level INFO DEBUG DEBUG DEBUG
Logging format JSON JSON Human-friendly Human-friendly
Logging errors Standard Standard Emphasized Emphasized
Distributed tracing Selective Everything Everything Everything
Configurator Enabled Enabled Enabled Disabled
Tickers Enabled Enabled Enabled Disabled
Error output Redacted Stack trace Stack trace Stack trace

The deployment environment is set according to the value of the MICROBUS_DEPLOYMENT environment variable. If not specified, PROD is assumed, unless connecting to NATS on nats://localhost:4222 or nats://127.0.0.1:4222 in which case LOCAL is assumed.