Table of Contents

Codeunit "Telemetry Custom Dimensions"

ID 8706
Namespace: System.Telemetry

Provides functionality for adding common custom dimensions to telemetry.

Remarks

This codeunit is only intended to be used from subscribers of event.

Properties

Name Value
Access Public
InherentEntitlements X
InherentPermissions X

Methods

AddCommonCustomDimension

Add a custom dimension for every telemetry message. Is used in conjunction with

procedure AddCommonCustomDimension(CustomDimensionName: Text, CustomDimensionValue: Text)

Parameters

Name Type Description
CustomDimensionName Text

The name of the custom dimension.

CustomDimensionValue Text

The value of the custom dimension.

Remarks

Only system metadata classified information should be added here as these custom dimensions will be used for all telemetry messages.

Events

OnAddCommonCustomDimensions

Allows to provide additional custom dimensions for every telemetry message. Is used in conjunction with .

[IntegrationEvent(True,False)]
internal procedure OnAddCommonCustomDimensions()

Examples

[EventSubscriber(ObjectType::Codeunit, Codeunit::"Telemetry Custom Dimensions", 'OnAddCommonCustomDimensions', '', true, true)] local procedure OnAddCommonCustomDimensions(var Sender: Codeunit "Telemetry Custom Dimensions") begin Sender.AddCommonCustomDimension('CommonCustomDimension', 'Some info'); end;

Remarks

Global language is set to default for the subscribers of this event.

See also