TelemetryClient constructor
TelemetryClient({
- required Processor processor,
- TelemetryContext? context,
Creates a telemetry client.
The provided processor will receive all telemetry events created by this TelemetryClient.
Callers can optionally specify a context
to use, which facilitates sharing a single TelemetryContext
between multiple TelemetryClient instances. If unspecified, a new TelemetryContext will be created instead.
Implementation
TelemetryClient({
required this.processor,
TelemetryContext? context,
}) : context = context ?? TelemetryContext();