@sap-ux/telemetry 2.0.6 → 2.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,7 +19,7 @@ declare class ClientFactory {
19
19
  * @returns Subclass of telemetry Client class
20
20
  */
21
21
  static getTelemetryClientByClass<T extends Client>(clientConstructor: new (appKey: string, extensionName: string, extensionVersion: string) => T): T;
22
- private static buildConnectionString;
22
+ static buildConnectionString(key: string): string;
23
23
  }
24
24
  export { ClientFactory };
25
25
  //# sourceMappingURL=index.d.ts.map
@@ -2,6 +2,7 @@ import * as appInsights from 'applicationinsights';
2
2
  import { configAzureTelemetryClient } from './azure-client-config.js';
3
3
  import { TelemetrySettings } from '../config-state.js';
4
4
  import { EventName } from '../types/index.js';
5
+ import { ClientFactory } from '../client/index.js';
5
6
  const parseErrorStack = (errorStack) => {
6
7
  const regexps = [/sap-ux.+/gi, /[-a-zA-Z]+\/ide-extension\/.+/gi, /(\/telemetry\/.+)/gi];
7
8
  const parsedStack = [];
@@ -40,7 +41,7 @@ const parseErrorStack = (errorStack) => {
40
41
  let reportingTelemetryClient;
41
42
  const getReportingTelemetryClient = () => {
42
43
  if (!reportingTelemetryClient) {
43
- reportingTelemetryClient = new appInsights.TelemetryClient(TelemetrySettings.azureInstrumentationKey);
44
+ reportingTelemetryClient = new appInsights.TelemetryClient(ClientFactory.buildConnectionString(TelemetrySettings.azureInstrumentationKey));
44
45
  configAzureTelemetryClient(reportingTelemetryClient);
45
46
  }
46
47
  return reportingTelemetryClient;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap-ux/telemetry",
3
- "version": "2.0.6",
3
+ "version": "2.0.8",
4
4
  "description": "Library for sending usage telemetry data",
5
5
  "type": "module",
6
6
  "repository": {
@@ -19,11 +19,11 @@
19
19
  "axios": "1.18.1",
20
20
  "performance-now": "2.1.0",
21
21
  "yaml": "2.9.0",
22
- "@sap-ux/store": "2.0.7",
23
- "@sap-ux/project-access": "2.2.0",
24
- "@sap-ux/btp-utils": "2.0.6",
25
22
  "@sap-ux/ui5-config": "1.0.9",
23
+ "@sap-ux/btp-utils": "2.0.6",
24
+ "@sap-ux/project-access": "2.2.1",
26
25
  "@sap-ux/logger": "1.0.3",
26
+ "@sap-ux/store": "2.0.7",
27
27
  "@sap-ux/nodejs-utils": "1.0.10"
28
28
  },
29
29
  "devDependencies": {