155
156
sendEnhancedGHTelemetryEvent(eventName: string, properties?: TelemetryProps, measurements?: TelemetryMeasurements): void {
158
>
// and tool content, so the only writer to the restricted table refuses to emit unless the
159
>
// user's token opted in (`rt=1`). This holds even if a caller reaches the sender without the
160
>
// service-level `rt`/telemetry-level gate.
161
>
if (!this._restrictedTelemetryEnabled) {
162
>
return;
163
>
}
164
>
this._post(GH_ENHANCED_IKEY, eventName, properties, measurements);
165
>
}
166
167
sendEnhancedGHTelemetryEventForContext(context: IAgentHostRestrictedTelemetryContext, eventName: string, properties?: TelemetryProps, measurements?: TelemetryMeasurements): void {