roleInstance property

String? roleInstance

The cloud role instance to attach to telemetry items.

Implementation

String? get roleInstance => _contextMap[_roleInstanceKey] as String?;
void roleInstance=(String? value)

Setting will change the cloud role instance attached to telemetry items submitted with this context.

This is a convenience for setting the ai.cloud.roleInstance key on TelemetryContext.properties.

Implementation

set roleInstance(String? value) =>
    _contextMap.setOrRemove(_roleInstanceKey, value);