Skip to main content

@fluidframework/telemetry-utils Package

Interfaces

InterfaceAlertsDescription
ITelemetryErrorEventExtLegacyError telemetry event.
ITelemetryGenericEventExtLegacyInformational (non-error) telemetry event
ITelemetryLoggerExtLegacyAn extended ITelemetryBaseLogger which allows for more lenient event types.
ITelemetryLoggerPropertyBagsLegacy
ITelemetryPerformanceEventExtLegacyPerformance telemetry event.

Classes

ClassAlertsDescription
EventEmitterWithErrorHandlingLegacyEvent Emitter helper class

Types

TypeAliasAlertsDescription
ITelemetryLoggerPropertyBagLegacy
ITelemetryPropertiesExtLegacyJSON-serializable properties, which will be logged with telemetry.
TelemetryEventCategoryLegacy

The categories FF uses when instrumenting the code.

generic - Informational log event

error - Error log event, ideally 0 of these are logged during a session

performance - Includes duration, and often has _start, _end, or _cancel suffixes for activity tracking

TelemetryEventPropertyTypeExtLegacyProperty types that can be logged.
TelemetryEventPropertyTypesLegacy

Functions

FunctionAlertsReturn TypeDescription
createChildLogger(props)LegacyITelemetryLoggerExtCreate a child logger based on the provided props object.

Function Details

createChildLogger

Create a child logger based on the provided props object.

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

To use, import via @fluidframework/telemetry-utils/legacy.

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

Signature

export declare function createChildLogger(props?: {
logger?: ITelemetryBaseLogger;
namespace?: string;
properties?: ITelemetryLoggerPropertyBags;
}): ITelemetryLoggerExt;

Remarks

Passing in no props object (i.e. undefined) will return a logger that is effectively a no-op.

Parameters

ParameterModifiersTypeDescription
propsoptional{ logger?: ITelemetryBaseLogger; namespace?: string; properties?: ITelemetryLoggerPropertyBags; }logger is the base logger the child will log to after it's processing, namespace will be prefixed to all event names, properties are default properties that will be applied events.

Returns

Return type: ITelemetryLoggerExt