Constant opentelemetry_semantic_conventions::resource::SERVICE_INSTANCE_ID[][src]

pub const SERVICE_INSTANCE_ID: Key;

The string ID of the service instance.

MUST be unique for each instance of the same service.namespace,service.name pair (in other words service.namespace,service.name,service.id triplet MUST be globally unique).

The ID helps to distinguish instances of the same service that exist at the same time (e.g. instances of a horizontally scaled service). It is preferable for the ID to be persistent and stay the same for the lifetime of the service instance, however it is acceptable that the ID is ephemeral and changes during important lifetime events for the service (e.g. service restarts).

If the service has no inherent unique ID that can be used as the value of this attribute it is recommended to generate a random Version 1 or Version 4 RFC 4122 UUID (services aiming for reproducible UUIDs may also use Version 5, see RFC 4122 for more recommendations).