id property

String? id

The user ID to attach to telemetry items.

Implementation

String? get id => _contextMap[_userIdKey] as String?;
void id=(String? value)

Setting will change the user ID attached to telemetry items submitted with this context.

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

Implementation

set id(String? value) => _contextMap.setOrRemove(_userIdKey, value);