DacServices.EnableTelemetry Method

Definition

Overloads

EnableTelemetry(String, Version)

Enables telemetry globally and set the application and version name to get included in telemetry events

EnableTelemetry(String, Version, Action<DacFxTelemetryEventData>)

Enables telemetry globally and set the application and version name to get included in telemetry events

EnableTelemetry(String, Version, Action<DacFxTelemetryEventData>, Func<String>)

Enables telemetry globally and set the application and version name to get included in telemetry events

EnableTelemetry(String, Version)

Enables telemetry globally and set the application and version name to get included in telemetry events

public static void EnableTelemetry (string applicationName = default, Version applicationVersion = default);
static member EnableTelemetry : string * Version -> unit
Public Shared Sub EnableTelemetry (Optional applicationName As String = Nothing, Optional applicationVersion As Version = Nothing)

Parameters

applicationName
String

Application Name

applicationVersion
Version

Application Version

Applies to

EnableTelemetry(String, Version, Action<DacFxTelemetryEventData>)

Enables telemetry globally and set the application and version name to get included in telemetry events

public static void EnableTelemetry (string applicationName, Version applicationVersion, Action<Microsoft.Data.Tools.Schema.Common.Telemetry.DacFxTelemetryEventData> telemetryItemCallback);
static member EnableTelemetry : string * Version * Action<Microsoft.Data.Tools.Schema.Common.Telemetry.DacFxTelemetryEventData> -> unit
Public Shared Sub EnableTelemetry (applicationName As String, applicationVersion As Version, telemetryItemCallback As Action(Of DacFxTelemetryEventData))

Parameters

applicationName
String

Application Name

applicationVersion
Version

Application Version

telemetryItemCallback
Action<DacFxTelemetryEventData>

A callback method to allow inspection of the telemetry data

Applies to

EnableTelemetry(String, Version, Action<DacFxTelemetryEventData>, Func<String>)

Enables telemetry globally and set the application and version name to get included in telemetry events

public static void EnableTelemetry (string applicationName, Version applicationVersion, Action<Microsoft.Data.Tools.Schema.Common.Telemetry.DacFxTelemetryEventData> telemetryItemCallback, Func<string> getApplicationProperty);
static member EnableTelemetry : string * Version * Action<Microsoft.Data.Tools.Schema.Common.Telemetry.DacFxTelemetryEventData> * Func<string> -> unit
Public Shared Sub EnableTelemetry (applicationName As String, applicationVersion As Version, telemetryItemCallback As Action(Of DacFxTelemetryEventData), getApplicationProperty As Func(Of String))

Parameters

applicationName
String

Application Name

applicationVersion
Version

Application Version

telemetryItemCallback
Action<DacFxTelemetryEventData>

A callback method to allow inspection of the telemetry data

getApplicationProperty
Func<String>

A function to get property value specific to the application

Applies to