You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Options for configuring Application Insights client with custom behavior.
31
+
* Allows customization of endpoint URLs, common properties, and tag overrides.
32
+
*/
33
+
exportinterfaceAppInsightsClientOptions{
34
+
/**
35
+
* Custom endpoint URL for Application Insights telemetry data.
36
+
* Use this to send telemetry to a different ingestion endpoint.
37
+
*/
38
+
endpointUrl?: string;
39
+
40
+
/**
41
+
* Common properties to be added to all telemetry events.
42
+
* These properties will be merged into every event sent by the client.
43
+
*/
44
+
commonProperties?: Record<string,string>;
45
+
46
+
/**
47
+
* Tag overrides to customize Application Insights context tags.
48
+
* Maps to the 'ext' object in Application Insights Web Basic SDK.
49
+
* Common use case: overriding tracking IDs or session identifiers.
50
+
*/
51
+
tagOverrides?: Record<string,string>;
52
+
}
53
+
29
54
/**
30
55
* A custom fetcher function that can be used to send telemetry data.
31
56
* Compatible with the Node.js fetch API signature.
@@ -44,8 +69,9 @@ export class TelemetryReporter {
44
69
* @param replacementOptions A list of replacement options for the app insights client. This allows the sender to filter out any sensitive or unnecessary information from the telemetry server.
45
70
* @param initializationOptions Options for configuring the telemetry reporter, including additional common properties to be sent with each event.
46
71
* @param customFetcher An optional custom fetcher function to use for sending telemetry data. If not provided, the default HTTPS module will be used. Compatible with Node.js fetch API.
72
+
* @param appInsightsOptions Optional Application Insights client configuration for custom endpoint URLs, common properties, and tag overrides.
* Sends a telemetry error event with the given properties, measurements.
90
134
* **Note**: The errorProps parameter has been removed since v0.6, if you would like to remove a property please use the replacementOptions parameter in the constructor.
91
135
* @param eventName The name of the event
92
136
* @param properties The set of properties to add to the event in the form of a string key value pair
93
137
* @param measurements The set of measurements to add to the event in the form of a string key number value pair
138
+
* @param tagOverrides Optional per-event tag overrides (e.g., dynamic tracking IDs). Takes precedence over context tags.
0 commit comments