CLOUDFOUNDRY_APP_INSTANCE_ID

Constant CLOUDFOUNDRY_APP_INSTANCE_ID 

pub const CLOUDFOUNDRY_APP_INSTANCE_ID: &'static str;
Available on crate features opentelemetry and semconv_experimental only.
Expand description

The index of the application instance. 0 when just one instance is active.

§Notes

CloudFoundry defines the instance_id in the Loggregator v2 envelope. It is used for logs and metrics emitted by CloudFoundry. It is supposed to contain the application instance index for applications deployed on the runtime.

Application instrumentation should use the value from environment variable CF_INSTANCE_INDEX.

§Examples

  • "0"
  • "1"