pub const CLOUDFOUNDRY_APP_INSTANCE_ID: &'static str;
Expand description

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

§Notes

CloudFoundry defines the instance_id in the Loggegator 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"