Skip to main content

ITelemetryContext Interface

Contains telemetry data relevant to summarization workflows. This object is expected to be modified directly by various summarize methods. \

This API is provided for existing users, but is not recommended for new users.

To use, import via @fluidframework/runtime-definitions/legacy.

For more information about our API support guarantees, see here.

Signature

export interface ITelemetryContext

Methods

MethodAlertsReturn TypeDescription
set(prefix, property, value)BetavoidSets value for telemetry data being tracked.
setMultiple(prefix, property, values)BetavoidSets multiple values for telemetry data being tracked.

Method Details

set

Sets value for telemetry data being tracked.

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

set(prefix: string, property: string, value: TelemetryBaseEventPropertyType): void;

Parameters

ParameterTypeDescription
prefixstringunique prefix to tag this data with (ex: "fluid:map:")
propertystringproperty name of the telemetry data being tracked (ex: "DirectoryCount")
valueTelemetryBaseEventPropertyTypevalue to attribute to this summary telemetry data

setMultiple

Sets multiple values for telemetry data being tracked.

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

setMultiple(prefix: string, property: string, values: Record<string, TelemetryBaseEventPropertyType>): void;

Parameters

ParameterTypeDescription
prefixstringunique prefix to tag this data with (ex: "fluid:summarize:")
propertystringproperty name of the telemetry data being tracked (ex: "Options")
valuesRecord<string, TelemetryBaseEventPropertyType>A set of values to attribute to this summary telemetry data.