Interface: TelemetrySender
Defined in: packages/extension-api/src/extension-api.d.ts:4618
The telemetry sender is the contract between a telemetry logger and some telemetry service. Note that extensions must NOT call the methods of their sender directly as the logger provides extra guards and cleaning.
Methods
flush()?
optional
flush():void
|Promise
<void
>
Defined in: packages/extension-api/src/extension-api.d.ts:4641
Optional flush function which will give this sender a chance to send any remaining events as its TelemetryLogger is being disposed
Returns
void
| Promise
<void
>
sendErrorData()
sendErrorData(
error
,data?
):void
Defined in: packages/extension-api/src/extension-api.d.ts:4635
Function to send an error. Used within a TelemetryLogger