@azure/monitor-opentelemetry-exporter 1.0.0-beta.36 → 1.0.0-beta.38

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.
Files changed (82) hide show
  1. package/dist/commonjs/Declarations/Constants.d.ts +10 -0
  2. package/dist/commonjs/Declarations/Constants.d.ts.map +1 -1
  3. package/dist/commonjs/Declarations/Constants.js +11 -1
  4. package/dist/commonjs/Declarations/Constants.js.map +1 -1
  5. package/dist/commonjs/Declarations/Contracts/Constants.d.ts +1 -1
  6. package/dist/commonjs/Declarations/Contracts/Constants.d.ts.map +1 -1
  7. package/dist/commonjs/Declarations/Contracts/Constants.js.map +1 -1
  8. package/dist/commonjs/export/metric.d.ts.map +1 -1
  9. package/dist/commonjs/export/metric.js +1 -1
  10. package/dist/commonjs/export/metric.js.map +1 -1
  11. package/dist/commonjs/export/statsbeat/statsbeatMetrics.d.ts.map +1 -1
  12. package/dist/commonjs/export/statsbeat/statsbeatMetrics.js +3 -2
  13. package/dist/commonjs/export/statsbeat/statsbeatMetrics.js.map +1 -1
  14. package/dist/commonjs/export/trace.d.ts +1 -0
  15. package/dist/commonjs/export/trace.d.ts.map +1 -1
  16. package/dist/commonjs/export/trace.js +9 -1
  17. package/dist/commonjs/export/trace.js.map +1 -1
  18. package/dist/commonjs/generated/applicationInsightsClient.js +1 -1
  19. package/dist/commonjs/generated/applicationInsightsClient.js.map +1 -1
  20. package/dist/commonjs/generated/models/index.d.ts.map +1 -1
  21. package/dist/commonjs/generated/models/index.js.map +1 -1
  22. package/dist/commonjs/generated/models/mappers.js +11 -11
  23. package/dist/commonjs/generated/models/mappers.js.map +1 -1
  24. package/dist/commonjs/platform/nodejs/baseSender.d.ts +1 -0
  25. package/dist/commonjs/platform/nodejs/baseSender.d.ts.map +1 -1
  26. package/dist/commonjs/platform/nodejs/baseSender.js +17 -9
  27. package/dist/commonjs/platform/nodejs/baseSender.js.map +1 -1
  28. package/dist/commonjs/tsdoc-metadata.json +1 -1
  29. package/dist/commonjs/utils/common.d.ts +2 -2
  30. package/dist/commonjs/utils/common.d.ts.map +1 -1
  31. package/dist/commonjs/utils/common.js +16 -11
  32. package/dist/commonjs/utils/common.js.map +1 -1
  33. package/dist/commonjs/utils/constants/applicationinsights.d.ts +1 -1
  34. package/dist/commonjs/utils/constants/applicationinsights.js +1 -1
  35. package/dist/commonjs/utils/constants/applicationinsights.js.map +1 -1
  36. package/dist/commonjs/utils/logUtils.d.ts.map +1 -1
  37. package/dist/commonjs/utils/logUtils.js +0 -5
  38. package/dist/commonjs/utils/logUtils.js.map +1 -1
  39. package/dist/commonjs/utils/spanUtils.d.ts.map +1 -1
  40. package/dist/commonjs/utils/spanUtils.js +0 -10
  41. package/dist/commonjs/utils/spanUtils.js.map +1 -1
  42. package/dist/esm/Declarations/Constants.d.ts +10 -0
  43. package/dist/esm/Declarations/Constants.d.ts.map +1 -1
  44. package/dist/esm/Declarations/Constants.js +10 -0
  45. package/dist/esm/Declarations/Constants.js.map +1 -1
  46. package/dist/esm/Declarations/Contracts/Constants.d.ts +1 -1
  47. package/dist/esm/Declarations/Contracts/Constants.d.ts.map +1 -1
  48. package/dist/esm/Declarations/Contracts/Constants.js.map +1 -1
  49. package/dist/esm/export/metric.d.ts.map +1 -1
  50. package/dist/esm/export/metric.js +1 -1
  51. package/dist/esm/export/metric.js.map +1 -1
  52. package/dist/esm/export/statsbeat/statsbeatMetrics.d.ts.map +1 -1
  53. package/dist/esm/export/statsbeat/statsbeatMetrics.js +3 -2
  54. package/dist/esm/export/statsbeat/statsbeatMetrics.js.map +1 -1
  55. package/dist/esm/export/trace.d.ts +1 -0
  56. package/dist/esm/export/trace.d.ts.map +1 -1
  57. package/dist/esm/export/trace.js +9 -1
  58. package/dist/esm/export/trace.js.map +1 -1
  59. package/dist/esm/generated/applicationInsightsClient.js +1 -1
  60. package/dist/esm/generated/applicationInsightsClient.js.map +1 -1
  61. package/dist/esm/generated/models/index.d.ts.map +1 -1
  62. package/dist/esm/generated/models/index.js.map +1 -1
  63. package/dist/esm/generated/models/mappers.js +11 -11
  64. package/dist/esm/generated/models/mappers.js.map +1 -1
  65. package/dist/esm/platform/nodejs/baseSender.d.ts +1 -0
  66. package/dist/esm/platform/nodejs/baseSender.d.ts.map +1 -1
  67. package/dist/esm/platform/nodejs/baseSender.js +18 -10
  68. package/dist/esm/platform/nodejs/baseSender.js.map +1 -1
  69. package/dist/esm/utils/common.d.ts +2 -2
  70. package/dist/esm/utils/common.d.ts.map +1 -1
  71. package/dist/esm/utils/common.js +17 -12
  72. package/dist/esm/utils/common.js.map +1 -1
  73. package/dist/esm/utils/constants/applicationinsights.d.ts +1 -1
  74. package/dist/esm/utils/constants/applicationinsights.js +1 -1
  75. package/dist/esm/utils/constants/applicationinsights.js.map +1 -1
  76. package/dist/esm/utils/logUtils.d.ts.map +1 -1
  77. package/dist/esm/utils/logUtils.js +0 -5
  78. package/dist/esm/utils/logUtils.js.map +1 -1
  79. package/dist/esm/utils/spanUtils.d.ts.map +1 -1
  80. package/dist/esm/utils/spanUtils.js +0 -10
  81. package/dist/esm/utils/spanUtils.js.map +1 -1
  82. package/package.json +5 -5
@@ -1 +1 @@
1
- {"version":3,"file":"metric.js","sourceRoot":"","sources":["../../../src/export/metric.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAEnD,OAAO,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAEpF,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AAErD,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAEpE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;GAEG;AACH,MAAM,OAAO,0BACX,SAAQ,wBAA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AC;QACxB,IAAI,CAAC,IAAI,CAAC,0CAA0C,CAAC,CAAC;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC;IACjC,CAAC;IAED;;OAEG;IACI,4BAA4B,CAAC,cAA8B;QAChE,IACE,cAAc,KAAK,cAAc,CAAC,eAAe;YACjD,cAAc,KAAK,cAAc,CAAC,0BAA0B,EAC5D,CAAC;YACD,OAAO,sBAAsB,CAAC,UAAU,CAAC;QAC3C,CAAC;QACD,OAAO,sBAAsB,CAAC,KAAK,CAAC;IACtC,CAAC;IAED;;OAEG;IACI,KAAK,CAAC,UAAU;QACrB,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;IAC3B,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport { context, diag } from \"@opentelemetry/api\";\nimport type { PushMetricExporter, ResourceMetrics } from \"@opentelemetry/sdk-metrics\";\nimport { AggregationTemporality, InstrumentType } from \"@opentelemetry/sdk-metrics\";\nimport type { ExportResult } from \"@opentelemetry/core\";\nimport { ExportResultCode, suppressTracing } from \"@opentelemetry/core\";\nimport { AzureMonitorBaseExporter } from \"./base.js\";\nimport type { TelemetryItem as Envelope } from \"../generated/index.js\";\nimport { resourceMetricsToEnvelope } from \"../utils/metricUtils.js\";\nimport type { AzureMonitorExporterOptions } from \"../config.js\";\nimport { HttpSender } from \"../platform/index.js\";\n\n/**\n * Azure Monitor OpenTelemetry Metric Exporter.\n */\nexport class AzureMonitorMetricExporter\n extends AzureMonitorBaseExporter\n implements PushMetricExporter\n{\n /**\n * Flag to determine if Exporter is shutdown.\n */\n private _isShutdown = false;\n private _sender: HttpSender;\n\n /**\n * Initializes a new instance of the AzureMonitorMetricExporter class.\n * @param AzureExporterConfig - Exporter configuration.\n */\n\n constructor(options: AzureMonitorExporterOptions = {}) {\n super(options);\n this._sender = new HttpSender({\n endpointUrl: this.endpointUrl,\n instrumentationKey: this.instrumentationKey,\n trackStatsbeat: this.trackStatsbeat,\n exporterOptions: options,\n aadAudience: this.aadAudience,\n });\n diag.debug(\"AzureMonitorMetricExporter was successfully setup\");\n }\n\n /**\n * Export OpenTelemetry resource metrics.\n * @param metrics - Resource metrics to export.\n * @param resultCallback - Result callback.\n */\n async export(\n metrics: ResourceMetrics,\n resultCallback: (result: ExportResult) => void,\n ): Promise<void> {\n if (this._isShutdown) {\n diag.info(\"Exporter shut down. Failed to export spans.\");\n setTimeout(() => resultCallback({ code: ExportResultCode.FAILED }), 0);\n return;\n }\n diag.info(`Exporting ${metrics.scopeMetrics.length} metrics(s). Converting to envelopes...`);\n\n const envelopes: Envelope[] = resourceMetricsToEnvelope(metrics, this.instrumentationKey);\n // Supress tracing until OpenTelemetry Metrics SDK support it\n await context.with(suppressTracing(context.active()), async () => {\n resultCallback(await this._sender.exportEnvelopes(envelopes));\n });\n }\n\n /**\n * Shutdown AzureMonitorMetricExporter.\n */\n public async shutdown(): Promise<void> {\n this._isShutdown = true;\n diag.info(\"AzureMonitorMetricExporter shutting down\");\n return this._sender.shutdown();\n }\n\n /**\n * Select aggregation temporality\n */\n public selectAggregationTemporality(instrumentType: InstrumentType): AggregationTemporality {\n if (\n instrumentType === InstrumentType.UP_DOWN_COUNTER ||\n instrumentType === InstrumentType.OBSERVABLE_UP_DOWN_COUNTER\n ) {\n return AggregationTemporality.CUMULATIVE;\n }\n return AggregationTemporality.DELTA;\n }\n\n /**\n * Force flush\n */\n public async forceFlush(): Promise<void> {\n return Promise.resolve();\n }\n}\n"]}
1
+ {"version":3,"file":"metric.js","sourceRoot":"","sources":["../../../src/export/metric.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAEnD,OAAO,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAEpF,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;A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K,IAAI,EAAE;YAC/D,cAAc,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC,CAAC;QAChE,CAAC,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACI,KAAK,CAAC,QAAQ;QACnB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;QACxB,IAAI,CAAC,IAAI,CAAC,0CAA0C,CAAC,CAAC;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC;IACjC,CAAC;IAED;;OAEG;IACI,4BAA4B,CAAC,cAA8B;QAChE,IACE,cAAc,KAAK,cAAc,CAAC,eAAe;YACjD,cAAc,KAAK,cAAc,CAAC,0BAA0B,EAC5D,CAAC;YACD,OAAO,sBAAsB,CAAC,UAAU,CAAC;QAC3C,CAAC;QACD,OAAO,sBAAsB,CAAC,KAAK,CAAC;IACtC,CAAC;IAED;;OAEG;IACI,KAAK,CAAC,UAAU;QACrB,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;IAC3B,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport { context, diag } from \"@opentelemetry/api\";\nimport type { PushMetricExporter, ResourceMetrics } from \"@opentelemetry/sdk-metrics\";\nimport { AggregationTemporality, InstrumentType } from \"@opentelemetry/sdk-metrics\";\nimport type { ExportResult } from \"@opentelemetry/core\";\nimport { ExportResultCode, suppressTracing } from \"@opentelemetry/core\";\nimport { AzureMonitorBaseExporter } from \"./base.js\";\nimport type { TelemetryItem as Envelope } from \"../generated/index.js\";\nimport { resourceMetricsToEnvelope } from \"../utils/metricUtils.js\";\nimport type { AzureMonitorExporterOptions } from \"../config.js\";\nimport { HttpSender } from \"../platform/index.js\";\n\n/**\n * Azure Monitor OpenTelemetry Metric Exporter.\n */\nexport class AzureMonitorMetricExporter\n extends AzureMonitorBaseExporter\n implements PushMetricExporter\n{\n /**\n * Flag to determine if Exporter is shutdown.\n */\n private _isShutdown = false;\n private _sender: HttpSender;\n\n /**\n * Initializes a new instance of the AzureMonitorMetricExporter class.\n * @param AzureExporterConfig - Exporter configuration.\n */\n\n constructor(options: AzureMonitorExporterOptions = {}) {\n super(options);\n this._sender = new HttpSender({\n endpointUrl: this.endpointUrl,\n instrumentationKey: this.instrumentationKey,\n trackStatsbeat: this.trackStatsbeat,\n exporterOptions: options,\n aadAudience: this.aadAudience,\n });\n diag.debug(\"AzureMonitorMetricExporter was successfully setup\");\n }\n\n /**\n * Export OpenTelemetry resource metrics.\n * @param metrics - Resource metrics to export.\n * @param resultCallback - Result callback.\n */\n async export(\n metrics: ResourceMetrics,\n resultCallback: (result: ExportResult) => void,\n ): Promise<void> {\n if (this._isShutdown) {\n diag.info(\"Exporter shut down. Failed to export spans.\");\n setTimeout(() => resultCallback({ code: ExportResultCode.FAILED }), 0);\n return;\n }\n diag.info(`Exporting ${metrics.scopeMetrics.length} metrics(s). Converting to envelopes...`);\n\n const envelopes: Envelope[] = resourceMetricsToEnvelope(\n metrics,\n this.instrumentationKey,\n false,\n );\n // Supress tracing until OpenTelemetry Metrics SDK support it\n await context.with(suppressTracing(context.active()), async () => {\n resultCallback(await this._sender.exportEnvelopes(envelopes));\n });\n }\n\n /**\n * Shutdown AzureMonitorMetricExporter.\n */\n public async shutdown(): Promise<void> {\n this._isShutdown = true;\n diag.info(\"AzureMonitorMetricExporter shutting down\");\n return this._sender.shutdown();\n }\n\n /**\n * Select aggregation temporality\n */\n public selectAggregationTemporality(instrumentType: InstrumentType): AggregationTemporality {\n if (\n instrumentType === InstrumentType.UP_DOWN_COUNTER ||\n instrumentType === InstrumentType.OBSERVABLE_UP_DOWN_COUNTER\n ) {\n return AggregationTemporality.CUMULATIVE;\n }\n return AggregationTemporality.DELTA;\n }\n\n /**\n * Force flush\n */\n public async forceFlush(): Promise<void> {\n return Promise.resolve();\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"statsbeatMetrics.d.ts","sourceRoot":"","sources":["../../../../src/export/statsbeat/statsbeatMetrics.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAYrD,qBAAa,gBAAgB;IAC3B,SAAS,CAAC,gBAAgB,EAAE,MAAM,CAAqC;IACvE,SAAS,CAAC,MAAM,EAAE,kBAAkB,CAAM;IAC1C,SAAS,CAAC,EAAE,EAAE,MAAM,CAAa;IACjC,SAAS,CAAC,kBAAkB,SAAM;cAElB,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC;IAgCvC,uBAAuB,IAAI,OAAO,CAAC,OAAO,CAAC;IA2CxD,SAAS,CAAC,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM;CAS3D"}
1
+ {"version":3,"file":"statsbeatMetrics.d.ts","sourceRoot":"","sources":["../../../../src/export/statsbeat/statsbeatMetrics.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAYrD,qBAAa,gBAAgB;IAC3B,SAAS,CAAC,gBAAgB,EAAE,MAAM,CAAqC;IACvE,SAAS,CAAC,MAAM,EAAE,kBAAkB,CAAM;IAC1C,SAAS,CAAC,EAAE,EAAE,MAAM,CAAa;IACjC,SAAS,CAAC,kBAAkB,SAAM;cAElB,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC;IAiCvC,uBAAuB,IAAI,OAAO,CAAC,OAAO,CAAC;IA2CxD,SAAS,CAAC,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM;CAS3D"}
@@ -12,10 +12,11 @@ export class StatsbeatMetrics {
12
12
  async getResourceProvider() {
13
13
  // Check resource provider
14
14
  this.resourceProvider = StatsbeatResourceProvider.unknown;
15
- if (process.env.AKS_ARM_NAMESPACE_ID) {
15
+ if (process.env.AKS_ARM_NAMESPACE_ID || process.env.KUBERNETES_SERVICE_HOST) {
16
16
  // AKS
17
17
  this.resourceProvider = StatsbeatResourceProvider.aks;
18
- this.resourceIdentifier = process.env.AKS_ARM_NAMESPACE_ID;
18
+ this.resourceIdentifier =
19
+ process.env.AKS_ARM_NAMESPACE_ID || process.env.KUBERNETES_SERVICE_HOST || "";
19
20
  }
20
21
  else if (process.env.WEBSITE_SITE_NAME && !process.env.FUNCTIONS_WORKER_RUNTIME) {
21
22
  // Web apps
@@ -1 +1 @@
1
- {"version":3,"file":"statsbeatMetrics.js","sourceRoot":"","sources":["../../../../src/export/statsbeat/statsbeatMetrics.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAC3F,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAE1C,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,QAAQ,EACR,oBAAoB,EACpB,YAAY,EACZ,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,MAAM,SAAS,CAAC;AAEzB,MAAM,OAAO,gBAAgB;IACjB,gBAAgB,GAAW,yBAAyB,CAAC,OAAO,CAAC;IAC7D,MAAM,GAAuB,EAAE,CAAC;IAChC,EAAE,GAAW,EAAE,CAAC,IAAI,EAAE,CAAC;IACvB,kBAAkB,GAAG,EAAE,CAAC;IAExB,KAAK,CAAC,mBAAmB;QACjC,0BAA0B;QAC1B,IAAI,CAAC,gBAAgB,GAAG,yBAAyB,CAAC,OAAO,CAAC;QAC1D,IAAI,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,CAAC;YACrC,MAAM;YACN,IAAI,CAAC,gBAAgB,GAAG,yBAAyB,CAAC,GAAG,CAAC;YACtD,IAAI,CAAC,kBAAkB,GAAG,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC;QAC7D,CAAC;aAAM,IAAI,OAAO,CAAC,GAAG,CAAC,iBAAiB,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,CAAC;YACl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K,CAAC,GAAG,EAAE;YACV,OAAO,KAAK,CAAC;QACf,CAAC,CAAC,CAAC;QACL,OAAO,KAAK,CAAC;IACf,CAAC;IAES,mBAAmB,CAAC,WAAmB;QAC/C,MAAM,eAAe,GAAG,WAAW,CAAC;QACpC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,YAAY,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YAC7C,IAAI,eAAe,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;gBAC9C,OAAO,oBAAoB,CAAC;YAC9B,CAAC;QACH,CAAC;QACD,OAAO,wBAAwB,CAAC;IAClC,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { HttpMethods } from \"@azure/core-rest-pipeline\";\nimport { createDefaultHttpClient, createPipelineRequest } from \"@azure/core-rest-pipeline\";\nimport { diag } from \"@opentelemetry/api\";\nimport type { VirtualMachineInfo } from \"./types.js\";\nimport {\n AIMS_API_VERSION,\n AIMS_FORMAT,\n AIMS_URI,\n EU_CONNECTION_STRING,\n EU_ENDPOINTS,\n NON_EU_CONNECTION_STRING,\n StatsbeatResourceProvider,\n} from \"./types.js\";\nimport os from \"node:os\";\n\nexport class StatsbeatMetrics {\n protected resourceProvider: string = StatsbeatResourceProvider.unknown;\n protected vmInfo: VirtualMachineInfo = {};\n protected os: string = os.type();\n protected resourceIdentifier = \"\";\n\n protected async getResourceProvider(): Promise<void> {\n // Check resource provider\n this.resourceProvider = StatsbeatResourceProvider.unknown;\n if (process.env.AKS_ARM_NAMESPACE_ID) {\n // AKS\n this.resourceProvider = StatsbeatResourceProvider.aks;\n this.resourceIdentifier = process.env.AKS_ARM_NAMESPACE_ID;\n } else if (process.env.WEBSITE_SITE_NAME && !process.env.FUNCTIONS_WORKER_RUNTIME) {\n // Web apps\n this.resourceProvider = StatsbeatResourceProvider.appsvc;\n this.resourceIdentifier = process.env.WEBSITE_SITE_NAME;\n if (process.env.WEBSITE_HOME_STAMPNAME) {\n this.resourceIdentifier += \"/\" + process.env.WEBSITE_HOME_STAMPNAME;\n }\n } else if (process.env.FUNCTIONS_WORKER_RUNTIME) {\n // Function apps\n this.resourceProvider = StatsbeatResourceProvider.functions;\n if (process.env.WEBSITE_HOSTNAME) {\n this.resourceIdentifier = process.env.WEBSITE_HOSTNAME;\n }\n } else if (await this.getAzureComputeMetadata()) {\n this.resourceProvider = StatsbeatResourceProvider.vm;\n this.resourceIdentifier = this.vmInfo.id + \"/\" + this.vmInfo.subscriptionId;\n // Overrride OS as VM info have higher precedence\n if (this.vmInfo.osType) {\n this.os = this.vmInfo.osType;\n }\n } else {\n this.resourceProvider = StatsbeatResourceProvider.unknown;\n }\n }\n\n public async getAzureComputeMetadata(): Promise<boolean> {\n const httpClient = createDefaultHttpClient();\n const method: HttpMethods = \"GET\";\n\n const options = {\n url: `${AIMS_URI}?${AIMS_API_VERSION}&${AIMS_FORMAT}`,\n timeout: 5000, // 5 seconds\n method: method,\n allowInsecureConnection: true,\n };\n const request = createPipelineRequest(options);\n\n await httpClient\n .sendRequest(request)\n .then((res: any) => {\n if (res.status === 200) {\n // Success; VM\n this.vmInfo.isVM = true;\n let virtualMachineData = \"\";\n res.on(\"data\", (data: any) => {\n virtualMachineData += data;\n });\n res.on(\"end\", () => {\n try {\n const data = JSON.parse(virtualMachineData);\n this.vmInfo.id = data[\"vmId\"] || \"\";\n this.vmInfo.subscriptionId = data[\"subscriptionId\"] || \"\";\n this.vmInfo.osType = data[\"osType\"] || \"\";\n } catch (error) {\n diag.debug(\"Failed to parse JSON: \", error);\n }\n });\n return true;\n } else {\n return false;\n }\n })\n .catch(() => {\n return false;\n });\n return false;\n }\n\n protected getConnectionString(endpointUrl: string): string {\n const currentEndpoint = endpointUrl;\n for (let i = 0; i < EU_ENDPOINTS.length; i++) {\n if (currentEndpoint.includes(EU_ENDPOINTS[i])) {\n return EU_CONNECTION_STRING;\n }\n }\n return NON_EU_CONNECTION_STRING;\n }\n}\n"]}
1
+ {"version":3,"file":"statsbeatMetrics.js","sourceRoot":"","sources":["../../../../src/export/statsbeat/statsbeatMetrics.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAC3F,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAE1C,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,QAAQ,EACR,oBAAoB,EACpB,YAAY,EACZ,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,MAAM,SAAS,CAAC;AAEzB,MAAM,OAAO,gBAAgB;IACjB,gBAAgB,GAAW,yBAAyB,CAAC,OAAO,CAAC;IAC7D,MAAM,GAAuB,EAAE,CAAC;IAChC,EAAE,GAAW,EAAE,CAAC,IAAI,EAAE,CAAC;IACvB,kBAAkB,GAAG,EAAE,CAAC;IAExB,KAAK,CAAC,mBAAmB;QACjC,0BAA0B;QAC1B,IAAI,CAAC,gBAAgB,GAAG,yBAAyB,CAAC,OAAO,CAAC;QAC1D,IAAI,OAAO,CAAC,GAAG,CAAC,oBAAoB,IAAI,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,CAAC;YAC5E,MAAM;YACN,IAAI,CAAC,gBAAgB,GAAG,yBAAyB,CAAC,GAAG,CAAC;YACtD,IAAI,CAAC,kBAAkB;gBACrB,OAAO,CAAC,GAAG,CAAC,oBAAoB,IAAI,OAAO,CAAC,GAAG,CAAC,uBAAuB,IAAI,EAAE,CAAC;QAClF,CAAC;aAAM,IAAI,OAAO,CAAC,GAAG,CAAC,iBAAiB,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,CAAC;YAClF,WAAW;YACX,IAAI,CAAC,gBAAgB,GAAG,yBAAyB,CAAC,MAAM,CAAC;YACzD,IAAI,CAAC,kB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C;IACf,CAAC;IAES,mBAAmB,CAAC,WAAmB;QAC/C,MAAM,eAAe,GAAG,WAAW,CAAC;QACpC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,YAAY,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YAC7C,IAAI,eAAe,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;gBAC9C,OAAO,oBAAoB,CAAC;YAC9B,CAAC;QACH,CAAC;QACD,OAAO,wBAAwB,CAAC;IAClC,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { HttpMethods } from \"@azure/core-rest-pipeline\";\nimport { createDefaultHttpClient, createPipelineRequest } from \"@azure/core-rest-pipeline\";\nimport { diag } from \"@opentelemetry/api\";\nimport type { VirtualMachineInfo } from \"./types.js\";\nimport {\n AIMS_API_VERSION,\n AIMS_FORMAT,\n AIMS_URI,\n EU_CONNECTION_STRING,\n EU_ENDPOINTS,\n NON_EU_CONNECTION_STRING,\n StatsbeatResourceProvider,\n} from \"./types.js\";\nimport os from \"node:os\";\n\nexport class StatsbeatMetrics {\n protected resourceProvider: string = StatsbeatResourceProvider.unknown;\n protected vmInfo: VirtualMachineInfo = {};\n protected os: string = os.type();\n protected resourceIdentifier = \"\";\n\n protected async getResourceProvider(): Promise<void> {\n // Check resource provider\n this.resourceProvider = StatsbeatResourceProvider.unknown;\n if (process.env.AKS_ARM_NAMESPACE_ID || process.env.KUBERNETES_SERVICE_HOST) {\n // AKS\n this.resourceProvider = StatsbeatResourceProvider.aks;\n this.resourceIdentifier =\n process.env.AKS_ARM_NAMESPACE_ID || process.env.KUBERNETES_SERVICE_HOST || \"\";\n } else if (process.env.WEBSITE_SITE_NAME && !process.env.FUNCTIONS_WORKER_RUNTIME) {\n // Web apps\n this.resourceProvider = StatsbeatResourceProvider.appsvc;\n this.resourceIdentifier = process.env.WEBSITE_SITE_NAME;\n if (process.env.WEBSITE_HOME_STAMPNAME) {\n this.resourceIdentifier += \"/\" + process.env.WEBSITE_HOME_STAMPNAME;\n }\n } else if (process.env.FUNCTIONS_WORKER_RUNTIME) {\n // Function apps\n this.resourceProvider = StatsbeatResourceProvider.functions;\n if (process.env.WEBSITE_HOSTNAME) {\n this.resourceIdentifier = process.env.WEBSITE_HOSTNAME;\n }\n } else if (await this.getAzureComputeMetadata()) {\n this.resourceProvider = StatsbeatResourceProvider.vm;\n this.resourceIdentifier = this.vmInfo.id + \"/\" + this.vmInfo.subscriptionId;\n // Overrride OS as VM info have higher precedence\n if (this.vmInfo.osType) {\n this.os = this.vmInfo.osType;\n }\n } else {\n this.resourceProvider = StatsbeatResourceProvider.unknown;\n }\n }\n\n public async getAzureComputeMetadata(): Promise<boolean> {\n const httpClient = createDefaultHttpClient();\n const method: HttpMethods = \"GET\";\n\n const options = {\n url: `${AIMS_URI}?${AIMS_API_VERSION}&${AIMS_FORMAT}`,\n timeout: 5000, // 5 seconds\n method: method,\n allowInsecureConnection: true,\n };\n const request = createPipelineRequest(options);\n\n await httpClient\n .sendRequest(request)\n .then((res: any) => {\n if (res.status === 200) {\n // Success; VM\n this.vmInfo.isVM = true;\n let virtualMachineData = \"\";\n res.on(\"data\", (data: any) => {\n virtualMachineData += data;\n });\n res.on(\"end\", () => {\n try {\n const data = JSON.parse(virtualMachineData);\n this.vmInfo.id = data[\"vmId\"] || \"\";\n this.vmInfo.subscriptionId = data[\"subscriptionId\"] || \"\";\n this.vmInfo.osType = data[\"osType\"] || \"\";\n } catch (error) {\n diag.debug(\"Failed to parse JSON: \", error);\n }\n });\n return true;\n } else {\n return false;\n }\n })\n .catch(() => {\n return false;\n });\n return false;\n }\n\n protected getConnectionString(endpointUrl: string): string {\n const currentEndpoint = endpointUrl;\n for (let i = 0; i < EU_ENDPOINTS.length; i++) {\n if (currentEndpoint.includes(EU_ENDPOINTS[i])) {\n return EU_CONNECTION_STRING;\n }\n }\n return NON_EU_CONNECTION_STRING;\n }\n}\n"]}
@@ -12,6 +12,7 @@ export declare class AzureMonitorTraceExporter extends AzureMonitorBaseExporter
12
12
  private isShutdown;
13
13
  private readonly sender;
14
14
  private shouldCreateResourceMetric;
15
+ private readonly applicationId;
15
16
  /**
16
17
  * Initializes a new instance of the AzureMonitorTraceExporter class.
17
18
  * @param AzureExporterConfig - Exporter configuration.
@@ -1 +1 @@
1
- {"version":3,"file":"trace.d.ts","sourceRoot":"","sources":["../../../src/export/trace.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAChF,OAAO,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAMhE;;GAEG;AACH,qBAAa,yBAA0B,SAAQ,wBAAyB,YAAW,YAAY;IAC7F;;OAEG;IACH,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAa;IACpC,OAAO,CAAC,0BAA0B,CAAyC;IAE3E;;;OAGG;gBACS,OAAO,GAAE,2BAAgC;IAYrD;;;;OAIG;IACG,MAAM,CACV,KAAK,EAAE,YAAY,EAAE,EACrB,cAAc,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,GAC7C,OAAO,CAAC,IAAI,CAAC;IA+BhB;;OAEG;IACG,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;CAKhC"}
1
+ {"version":3,"file":"trace.d.ts","sourceRoot":"","sources":["../../../src/export/trace.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAChF,OAAO,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAQhE;;GAEG;AACH,qBAAa,yBAA0B,SAAQ,wBAAyB,YAAW,YAAY;IAC7F;;OAEG;IACH,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAa;IACpC,OAAO,CAAC,0BAA0B,CAAyC;IAC3E,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAqB;IAEnD;;;OAGG;gBACS,OAAO,GAAE,2BAAgC;IAmBrD;;;;OAIG;IACG,MAAM,CACV,KAAK,EAAE,YAAY,EAAE,EACrB,cAAc,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,GAC7C,OAAO,CAAC,IAAI,CAAC;IAgChB;;OAEG;IACG,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;CAKhC"}
@@ -6,6 +6,8 @@ import { AzureMonitorBaseExporter } from "./base.js";
6
6
  import { readableSpanToEnvelope, spanEventsToEnvelopes } from "../utils/spanUtils.js";
7
7
  import { createResourceMetricEnvelope, shouldCreateResourceMetric } from "../utils/common.js";
8
8
  import { HttpSender } from "../platform/index.js";
9
+ import { ConnectionStringParser } from "../utils/connectionStringParser.js";
10
+ import { ENV_CONNECTION_STRING } from "../Declarations/Constants.js";
9
11
  /**
10
12
  * Azure Monitor OpenTelemetry Trace Exporter.
11
13
  */
@@ -16,12 +18,18 @@ export class AzureMonitorTraceExporter extends AzureMonitorBaseExporter {
16
18
  isShutdown = false;
17
19
  sender;
18
20
  shouldCreateResourceMetric = shouldCreateResourceMetric();
21
+ applicationId;
19
22
  /**
20
23
  * Initializes a new instance of the AzureMonitorTraceExporter class.
21
24
  * @param AzureExporterConfig - Exporter configuration.
22
25
  */
23
26
  constructor(options = {}) {
24
27
  super(options);
28
+ const connectionString = options.connectionString || process.env[ENV_CONNECTION_STRING];
29
+ if (connectionString) {
30
+ const parsedConnectionString = ConnectionStringParser.parse(connectionString);
31
+ this.applicationId = parsedConnectionString.applicationid;
32
+ }
25
33
  this.sender = new HttpSender({
26
34
  endpointUrl: this.endpointUrl,
27
35
  instrumentationKey: this.instrumentationKey,
@@ -45,7 +53,7 @@ export class AzureMonitorTraceExporter extends AzureMonitorBaseExporter {
45
53
  diag.info(`Exporting ${spans.length} span(s). Converting to envelopes...`);
46
54
  if (spans.length > 0) {
47
55
  const envelopes = [];
48
- const resourceMetricEnvelope = createResourceMetricEnvelope(spans[0].resource, this.instrumentationKey);
56
+ const resourceMetricEnvelope = createResourceMetricEnvelope(spans[0].resource, this.instrumentationKey, this.applicationId);
49
57
  if (resourceMetricEnvelope && this.shouldCreateResourceMetric) {
50
58
  envelopes.push(resourceMetricEnvelope);
51
59
  }
@@ -1 +1 @@
1
- {"version":3,"file":"trace.js","sourceRoot":"","sources":["../../../src/export/trace.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAE1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AAGrD,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AACtF,OAAO,EAAE,4BAA4B,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAC9F,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;GAEG;AACH,MAAM,OAAO,yBAA0B,SAAQ,wBAAwB;IACrE;;OAEG;IACK,UAAU,GAAG,KAAK,CAAC;IACV,MAAM,CAAa;IAC5B,0BAA0B,GAAY,0BAA0B,EAAE,CAAC;IAE3E;;;OAGG;IACH,YAAY,UAAuC,EAAE;QACnD,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,MAAM,GAAG,IAAI,UAAU,CAAC;YAC3B,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,kBAAkB,EA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,GAAG,kBAAkB,CAAC,CAAC;gBACxC,CAAC;YACH,CAAC,CAAC,CAAC;YACH,cAAc,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC,CAAC;QAC/D,CAAC;QACD,oBAAoB;QACpB,cAAc,CAAC,EAAE,IAAI,EAAE,gBAAgB,CAAC,OAAO,EAAE,CAAC,CAAC;IACrD,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,QAAQ;QACZ,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;QACvB,IAAI,CAAC,IAAI,CAAC,yCAAyC,CAAC,CAAC;QACrD,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;IAChC,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { diag } from \"@opentelemetry/api\";\nimport type { ExportResult } from \"@opentelemetry/core\";\nimport { ExportResultCode } from \"@opentelemetry/core\";\nimport type { ReadableSpan, SpanExporter } from \"@opentelemetry/sdk-trace-base\";\nimport { AzureMonitorBaseExporter } from \"./base.js\";\nimport type { AzureMonitorExporterOptions } from \"../config.js\";\nimport type { TelemetryItem as Envelope } from \"../generated/index.js\";\nimport { readableSpanToEnvelope, spanEventsToEnvelopes } from \"../utils/spanUtils.js\";\nimport { createResourceMetricEnvelope, shouldCreateResourceMetric } from \"../utils/common.js\";\nimport { HttpSender } from \"../platform/index.js\";\n\n/**\n * Azure Monitor OpenTelemetry Trace Exporter.\n */\nexport class AzureMonitorTraceExporter extends AzureMonitorBaseExporter implements SpanExporter {\n /**\n * Flag to determine if Exporter is shutdown.\n */\n private isShutdown = false;\n private readonly sender: HttpSender;\n private shouldCreateResourceMetric: boolean = shouldCreateResourceMetric();\n\n /**\n * Initializes a new instance of the AzureMonitorTraceExporter class.\n * @param AzureExporterConfig - Exporter configuration.\n */\n constructor(options: AzureMonitorExporterOptions = {}) {\n super(options);\n this.sender = new HttpSender({\n endpointUrl: this.endpointUrl,\n instrumentationKey: this.instrumentationKey,\n trackStatsbeat: this.trackStatsbeat,\n exporterOptions: options,\n aadAudience: this.aadAudience,\n });\n diag.debug(\"AzureMonitorTraceExporter was successfully setup\");\n }\n\n /**\n * Export OpenTelemetry spans.\n * @param spans - Spans to export.\n * @param resultCallback - Result callback.\n */\n async export(\n spans: ReadableSpan[],\n resultCallback: (result: ExportResult) => void,\n ): Promise<void> {\n if (this.isShutdown) {\n diag.info(\"Exporter shut down. Failed to export spans.\");\n setTimeout(() => resultCallback({ code: ExportResultCode.FAILED }), 0);\n return;\n }\n\n diag.info(`Exporting ${spans.length} span(s). Converting to envelopes...`);\n\n if (spans.length > 0) {\n const envelopes: Envelope[] = [];\n const resourceMetricEnvelope = createResourceMetricEnvelope(\n spans[0].resource,\n this.instrumentationKey,\n );\n if (resourceMetricEnvelope && this.shouldCreateResourceMetric) {\n envelopes.push(resourceMetricEnvelope);\n }\n spans.forEach((span) => {\n envelopes.push(readableSpanToEnvelope(span, this.instrumentationKey));\n const spanEventEnvelopes = spanEventsToEnvelopes(span, this.instrumentationKey);\n if (spanEventEnvelopes.length > 0) {\n envelopes.push(...spanEventEnvelopes);\n }\n });\n resultCallback(await this.sender.exportEnvelopes(envelopes));\n }\n // No data to export\n resultCallback({ code: ExportResultCode.SUCCESS });\n }\n\n /**\n * Shutdown AzureMonitorTraceExporter.\n */\n async shutdown(): Promise<void> {\n this.isShutdown = true;\n diag.info(\"AzureMonitorTraceExporter shutting down\");\n return this.sender.shutdown();\n }\n}\n"]}
1
+ {"version":3,"file":"trace.js","sourceRoot":"","sources":["../../../src/export/trace.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAE1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AAGrD,OAAO,EAAE,sBAAsB,EA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AAU,GAAG,IAAI,CAAC;QACvB,IAAI,CAAC,IAAI,CAAC,yCAAyC,CAAC,CAAC;QACrD,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;IAChC,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { diag } from \"@opentelemetry/api\";\nimport type { ExportResult } from \"@opentelemetry/core\";\nimport { ExportResultCode } from \"@opentelemetry/core\";\nimport type { ReadableSpan, SpanExporter } from \"@opentelemetry/sdk-trace-base\";\nimport { AzureMonitorBaseExporter } from \"./base.js\";\nimport type { AzureMonitorExporterOptions } from \"../config.js\";\nimport type { TelemetryItem as Envelope } from \"../generated/index.js\";\nimport { readableSpanToEnvelope, spanEventsToEnvelopes } from \"../utils/spanUtils.js\";\nimport { createResourceMetricEnvelope, shouldCreateResourceMetric } from \"../utils/common.js\";\nimport { HttpSender } from \"../platform/index.js\";\nimport { ConnectionStringParser } from \"../utils/connectionStringParser.js\";\nimport { ENV_CONNECTION_STRING } from \"../Declarations/Constants.js\";\n\n/**\n * Azure Monitor OpenTelemetry Trace Exporter.\n */\nexport class AzureMonitorTraceExporter extends AzureMonitorBaseExporter implements SpanExporter {\n /**\n * Flag to determine if Exporter is shutdown.\n */\n private isShutdown = false;\n private readonly sender: HttpSender;\n private shouldCreateResourceMetric: boolean = shouldCreateResourceMetric();\n private readonly applicationId: string | undefined;\n\n /**\n * Initializes a new instance of the AzureMonitorTraceExporter class.\n * @param AzureExporterConfig - Exporter configuration.\n */\n constructor(options: AzureMonitorExporterOptions = {}) {\n super(options);\n\n const connectionString = options.connectionString || process.env[ENV_CONNECTION_STRING];\n if (connectionString) {\n const parsedConnectionString = ConnectionStringParser.parse(connectionString);\n this.applicationId = parsedConnectionString.applicationid;\n }\n\n this.sender = new HttpSender({\n endpointUrl: this.endpointUrl,\n instrumentationKey: this.instrumentationKey,\n trackStatsbeat: this.trackStatsbeat,\n exporterOptions: options,\n aadAudience: this.aadAudience,\n });\n diag.debug(\"AzureMonitorTraceExporter was successfully setup\");\n }\n\n /**\n * Export OpenTelemetry spans.\n * @param spans - Spans to export.\n * @param resultCallback - Result callback.\n */\n async export(\n spans: ReadableSpan[],\n resultCallback: (result: ExportResult) => void,\n ): Promise<void> {\n if (this.isShutdown) {\n diag.info(\"Exporter shut down. Failed to export spans.\");\n setTimeout(() => resultCallback({ code: ExportResultCode.FAILED }), 0);\n return;\n }\n\n diag.info(`Exporting ${spans.length} span(s). Converting to envelopes...`);\n\n if (spans.length > 0) {\n const envelopes: Envelope[] = [];\n const resourceMetricEnvelope = createResourceMetricEnvelope(\n spans[0].resource,\n this.instrumentationKey,\n this.applicationId,\n );\n if (resourceMetricEnvelope && this.shouldCreateResourceMetric) {\n envelopes.push(resourceMetricEnvelope);\n }\n spans.forEach((span) => {\n envelopes.push(readableSpanToEnvelope(span, this.instrumentationKey));\n const spanEventEnvelopes = spanEventsToEnvelopes(span, this.instrumentationKey);\n if (spanEventEnvelopes.length > 0) {\n envelopes.push(...spanEventEnvelopes);\n }\n });\n resultCallback(await this.sender.exportEnvelopes(envelopes));\n }\n // No data to export\n resultCallback({ code: ExportResultCode.SUCCESS });\n }\n\n /**\n * Shutdown AzureMonitorTraceExporter.\n */\n async shutdown(): Promise<void> {\n this.isShutdown = true;\n diag.info(\"AzureMonitorTraceExporter shutting down\");\n return this.sender.shutdown();\n }\n}\n"]}
@@ -22,7 +22,7 @@ export class ApplicationInsightsClient extends coreClient.ServiceClient {
22
22
  const defaults = {
23
23
  requestContentType: "application/json; charset=utf-8",
24
24
  };
25
- const packageDetails = `azsdk-js-monitor-opentelemetry-exporter/1.0.0-beta.36`;
25
+ const packageDetails = `azsdk-js-monitor-opentelemetry-exporter/1.0.0-beta.38`;
26
26
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
27
27
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
28
28
  : `${packageDetails}`;
@@ -1 +1 @@
1
- {"version":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B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,kBAAkB,GAA6B;IACnD,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;YACjC,OAAO,EAAE,IAAI;SACd;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;YACjC,OAAO,EAAE,IAAI;SACd;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;YACjC,OAAO,EAAE,IAAI;SACd;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;YACjC,OAAO,EAAE,IAAI;SACd;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;YACjC,OAAO,EAAE,IAAI;SACd;KACF;IACD,WAAW,EAAE,UAAU,CAAC,IAAI;IAC5B,aAAa,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC;IAChC,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n ApplicationInsightsClientOptionalParams,\n TelemetryItem,\n TrackOptionalParams,\n TrackOperationResponse,\n} from \"./models/index.js\";\n\nexport class ApplicationInsightsClient extends coreClient.ServiceClient {\n host: string;\n\n /**\n * Initializes a new instance of the ApplicationInsightsClient class.\n * @param options The parameter options\n */\n constructor(options?: ApplicationInsightsClientOptionalParams) {\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: ApplicationInsightsClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n };\n\n const packageDetails = `azsdk-js-monitor-opentelemetry-exporter/1.0.0-beta.36`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint: options.endpoint ?? options.baseUri ?? \"{Host}/v2.1\",\n };\n super(optionsWithDefaults);\n\n // Assigning values to Constant parameters\n this.host = options.host || \"https://dc.services.visualstudio.com\";\n }\n\n /**\n * This operation sends a sequence of telemetry events that will be monitored by Azure Monitor.\n * @param body The list of telemetry events to track.\n * @param options The options parameters.\n */\n track(\n body: TelemetryItem[],\n options?: TrackOptionalParams,\n ): Promise<TrackOperationResponse> {\n return this.sendOperationRequest({ body, options }, trackOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst trackOperationSpec: coreClient.OperationSpec = {\n path: \"/track\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.TrackResponse,\n },\n 206: {\n bodyMapper: Mappers.TrackResponse,\n },\n 400: {\n bodyMapper: Mappers.TrackResponse,\n isError: true,\n },\n 402: {\n bodyMapper: Mappers.TrackResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.TrackResponse,\n isError: true,\n },\n 500: {\n bodyMapper: Mappers.TrackResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.TrackResponse,\n isError: true,\n },\n },\n requestBody: Parameters.body,\n urlParameters: [Parameters.host],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\n"]}
1
+ {"version":3,"file":"applicationInsightsClient.js","sourceRoot":"","sources":["../../../src/generated/applicationInsightsClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAQ/C,MAAM,OAAO,yBAA0B,SAAQ,UAAU,CAAC,aAAa;IACrE,IAAI,CAAS;IAEb;;;OAGG;IACH,YAAY,OAAiD;QAC3D,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAA4C;YACxD,kBAAkB,EAAE,iCAAiC;SACtD,CAAC;QAEF,MAAM,cAAc,GAAG,uDAAuD,CAAC;QAC/E,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC;QAE1B,MAAM,mBAAmB,GAAG;YAC1B,GAAG,QAAQ;YACX,GAAG,OAAO;YACV,gBAAgB,EAAE;gBAChB,eAAe;aAChB;YACD,QAAQ,EAAE,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC,OAAO,IAAI,aAAa;SAC/D,CAAC;QACF,KAAK,CAAC,mBAAmB,CAAC,CAAC;QAE3B,0CAA0C;QAC1C,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,IAAI,sCAAsC,CAAC;IACrE,CAAC;IAED;;;;OAIG;IACH,KAAK,CACH,IAAqB,EACrB,OAA6B;QAE7B,OAAO,IAAI,CAAC,oBAAoB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,kBAAkB,CAAC,CAAC;IAC1E,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,kBAAkB,GAA6B;IACnD,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;YACjC,OAAO,EAAE,IAAI;SACd;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;YACjC,OAAO,EAAE,IAAI;SACd;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;YACjC,OAAO,EAAE,IAAI;SACd;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;YACjC,OAAO,EAAE,IAAI;SACd;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;YACjC,OAAO,EAAE,IAAI;SACd;KACF;IACD,WAAW,EAAE,UAAU,CAAC,IAAI;IAC5B,aAAa,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC;IAChC,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n ApplicationInsightsClientOptionalParams,\n TelemetryItem,\n TrackOptionalParams,\n TrackOperationResponse,\n} from \"./models/index.js\";\n\nexport class ApplicationInsightsClient extends coreClient.ServiceClient {\n host: string;\n\n /**\n * Initializes a new instance of the ApplicationInsightsClient class.\n * @param options The parameter options\n */\n constructor(options?: ApplicationInsightsClientOptionalParams) {\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: ApplicationInsightsClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n };\n\n const packageDetails = `azsdk-js-monitor-opentelemetry-exporter/1.0.0-beta.38`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint: options.endpoint ?? options.baseUri ?? \"{Host}/v2.1\",\n };\n super(optionsWithDefaults);\n\n // Assigning values to Constant parameters\n this.host = options.host || \"https://dc.services.visualstudio.com\";\n }\n\n /**\n * This operation sends a sequence of telemetry events that will be monitored by Azure Monitor.\n * @param body The list of telemetry events to track.\n * @param options The options parameters.\n */\n track(\n body: TelemetryItem[],\n options?: TrackOptionalParams,\n ): Promise<TrackOperationResponse> {\n return this.sendOperationRequest({ body, options }, trackOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst trackOperationSpec: coreClient.OperationSpec = {\n path: \"/track\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.TrackResponse,\n },\n 206: {\n bodyMapper: Mappers.TrackResponse,\n },\n 400: {\n bodyMapper: Mappers.TrackResponse,\n isError: true,\n },\n 402: {\n bodyMapper: Mappers.TrackResponse,\n isError: true,\n },\n 429: {\n bodyMapper: Mappers.TrackResponse,\n isError: true,\n },\n 500: {\n bodyMapper: Mappers.TrackResponse,\n isError: true,\n },\n 503: {\n bodyMapper: Mappers.TrackResponse,\n isError: true,\n },\n },\n requestBody: Parameters.body,\n urlParameters: [Parameters.host],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/generated/models/index.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,6CAA6C;AAC7C,MAAM,WAAW,aAAa;IAC5B,oKAAoK;IACpK,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,wCAAwC;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,6kBAA6kB;IAC7kB,IAAI,EAAE,IAAI,CAAC;IACX,iHAAiH;IACjH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,sEAAsE;IACtE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oEAAoE;IACpE,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,8GAA8G;IAC9G,IAAI,CAAC,EAAE;QAAE,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAC1C,2BAA2B;IAC3B,IAAI,CAAC,EAAE,WAAW,CAAC;CACpB;AAED,gEAAgE;AAChE,MAAM,WAAW,WAAW;IAC1B,6GAA6G;IAC7G,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iDAAiD;IACjD,QAAQ,CAAC,EAAE,aAAa,CAAC;CAC1B;AAED,+CAA+C;AAC/C,MAAM,WAAW,aAAa;IAC5B,2FAA2F;IAC3F,CAAC,QAAQ,EAAE,MAAM,GAAG,GAAG,CAAC;IACxB,qBAAqB;IACrB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,6DAA6D;AAC7D,MAAM,WAAW,aAAa;IAC5B,oCAAoC;IACpC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,oCAAoC;IACpC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,wCAAwC;IACxC,MAAM,CAAC,EAAE,qBAA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AAiC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/generated/models/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAyQH,sEAAsE;AACtE,MAAM,CAAN,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,kBAAkB;IAClB,iDAA2B,CAAA;IAC3B,kBAAkB;IAClB,iDAA2B,CAAA;AAC7B,CAAC,EALW,kBAAkB,KAAlB,kBAAkB,QAK7B;AAYD,sEAAsE;AACtE,MAAM,CAAN,IAAY,kBAWX;AAXD,WAAY,kBAAkB;IAC5B,cAAc;IACd,yCAAmB,CAAA;IACnB,kBAAkB;IAClB,iDAA2B,CAAA;IAC3B,cAAc;IACd,yCAAmB,CAAA;IACnB,YAAY;IACZ,qCAAe,CAAA;IACf,eAAe;IACf,2CAAqB,CAAA;AACvB,CAAC,EAXW,kBAAkB,KAAlB,kBAAkB,QAW7B;AAeD,uEAAuE;AACvE,MAAM,CAAN,IAAY,mBAyDX;AAzDD,WAAY,mBAAmB;IAC7B,uBAAuB;IACvB,8DAAuC,CAAA;IACvC,iBAAiB;IACjB,kDAA2B,CAAA;IAC3B,qBAAqB;IACrB,0DAAmC,CAAA;IACnC,oBAAoB;IACpB,wDAAiC,CAAA;IACjC,sBAAsB;IACtB,4DAAqC,CAAA;IACrC,wBAAwB;IACxB,gEAAyC,CAAA;IACzC,mBAAmB;IACnB,sDAA+B,CAAA;IAC/B,mBAAmB;IACnB,sDAA+B,CAAA;IAC/B,wBAAwB;IACxB,gEAAyC,CAAA;IACzC,yBAAyB;IACzB,kEAA2C,CAAA;IAC3C,qBAAqB;IACrB,0DAAmC,CAAA;IACnC,oBAAoB;IACpB,wDAAiC,CAAA;IACjC,sBAAsB;IACtB,4DAAqC,CAAA;IACrC,0BAA0B;IAC1B,oEAA6C,CAAA;IAC7C,iCAAiC;IACjC,kFAA2D,CAAA;IAC3D,mCAAmC;IACnC,sFAA+D,CAAA;IAC/D,kBAAkB;IAClB,oDAA6B,CAAA;IAC7B,uBAAuB;IACvB,8DAAuC,CAAA;IACvC,sBAAsB;IACtB,4DAAqC,CAAA;IACrC,eAAe;IACf,8CAAuB,CAAA;IACvB,uBAAuB;IACvB,8DAAuC,CAAA;IACvC,kBAAkB;IAClB,oDAA6B,CAAA;IAC7B,qBAAqB;IACrB,0DAAmC,CAAA;IACnC,0BAA0B;IAC1B,oEAA6C,CAAA;IAC7C,sBAAsB;IACtB,4DAAqC,CAAA;IACrC,2BAA2B;IAC3B,sEAA+C,CAAA;IAC/C,6BAA6B;IAC7B,0EAAmD,CAAA;IACnD,yBAAyB;IACzB,kEAA2C,CAAA;AAC7C,CAAC,EAzDW,mBAAmB,KAAnB,mBAAmB,QAyD9B","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\n\n/** System variables for a telemetry item. */\nexport interface TelemetryItem {\n /** Envelope version. For internal use only. By assigning this the default, it will not be serialized within the payload unless changed to a value other than #1. */\n version?: number;\n /** Type name of telemetry data item. */\n name: string;\n /** Event date time when telemetry item was created. This is the wall clock time on the client when the event was generated. There is no guarantee that the client's time is accurate. This field must be formatted in UTC ISO 8601 format, with a trailing 'Z' character, as described publicly on https://en.wikipedia.org/wiki/ISO_8601#UTC. Note: the number of decimal seconds digits provided are variable (and unspecified). Consumers should handle this, i.e. managed code consumers should not use format 'O' for parsing as it specifies a fixed length. Example: 2009-06-15T13:45:30.0000000Z. */\n time: Date;\n /** Sampling rate used in application. This telemetry item represents 100 / sampleRate actual telemetry items. */\n sampleRate?: number;\n /** Sequence field used to track absolute order of uploaded events. */\n sequence?: string;\n /** The instrumentation key of the Application Insights resource. */\n instrumentationKey?: string;\n /** Key/value collection of context properties. See ContextTagKeys for information on available properties. */\n tags?: { [propertyName: string]: string };\n /** Telemetry data item. */\n data?: MonitorBase;\n}\n\n/** Data struct to contain only C section with custom fields. */\nexport interface MonitorBase {\n /** Name of item (B section) if any. If telemetry data is derived straight from this, this should be null. */\n baseType?: string;\n /** The data payload for the telemetry request */\n baseData?: MonitorDomain;\n}\n\n/** The abstract common base of all domains. */\nexport interface MonitorDomain {\n /** Describes unknown properties. The value of an unknown property can be of \"any\" type. */\n [property: string]: any;\n /** Schema version */\n version: number;\n}\n\n/** Response containing the status of each telemetry item. */\nexport interface TrackResponse {\n /** The number of items received. */\n itemsReceived?: number;\n /** The number of items accepted. */\n itemsAccepted?: number;\n /** An array of error detail objects. */\n errors?: TelemetryErrorDetails[];\n}\n\n/** The error details */\nexport interface TelemetryErrorDetails {\n /** The index in the original payload of the item. */\n index?: number;\n /** The item specific [HTTP Response status code](#Response Status Codes). */\n statusCode?: number;\n /** The error message. */\n message?: string;\n}\n\n/** Metric data single measurement. */\nexport interface MetricDataPoint {\n /** Namespace of the metric. */\n namespace?: string;\n /** Name of the metric. */\n name: string;\n /** Metric type. Single measurement or the aggregated value. */\n dataPointType?: DataPointType;\n /** Single value for measurement. Sum of individual measurements for the aggregation. */\n value: number;\n /** Metric weight of the aggregated metric. Should not be set for a measurement. */\n count?: number;\n /** Minimum value of the aggregated metric. Should not be set for a measurement. */\n min?: number;\n /** Maximum value of the aggregated metric. Should not be set for a measurement. */\n max?: number;\n /** Standard deviation of the aggregated metric. Should not be set for a measurement. */\n stdDev?: number;\n}\n\n/** Exception details of the exception in a chain. */\nexport interface TelemetryExceptionDetails {\n /** In case exception is nested (outer exception contains inner one), the id and outerId properties are used to represent the nesting. */\n id?: number;\n /** The value of outerId is a reference to an element in ExceptionDetails that represents the outer exception */\n outerId?: number;\n /** Exception type name. */\n typeName?: string;\n /** Exception message. */\n message: string;\n /** Indicates if full exception stack is provided in the exception. The stack may be trimmed, such as in the case of a StackOverflow exception. */\n hasFullStack?: boolean;\n /** Text describing the stack. Either stack or parsedStack should have a value. */\n stack?: string;\n /** List of stack frames. Either stack or parsedStack should have a value. */\n parsedStack?: StackFrame[];\n}\n\n/** Stack frame information. */\nexport interface StackFrame {\n level: number;\n /** Method name. */\n method: string;\n /** Name of the assembly (dll, jar, etc.) containing this function. */\n assembly?: string;\n /** File name or URL of the method implementation. */\n fileName?: string;\n /** Line number of the code implementation. */\n line?: number;\n}\n\n/** Instances of AvailabilityData represent the result of executing an availability test. */\nexport interface AvailabilityData extends MonitorDomain {\n /** Identifier of a test run. Use it to correlate steps of test run and telemetry generated by the service. */\n id: string;\n /** Name of the test that these availability results represent. */\n name: string;\n /** Duration in format: DD.HH:MM:SS.MMMMMM. Must be less than 1000 days. */\n duration: string;\n /** Success flag. */\n success: boolean;\n /** Name of the location where the test was run from. */\n runLocation?: string;\n /** Diagnostic message for the result. */\n message?: string;\n /** Collection of custom properties. */\n properties?: { [propertyName: string]: string };\n /** Collection of custom measurements. */\n measurements?: { [propertyName: string]: number };\n}\n\n/** Instances of Event represent structured event records that can be grouped and searched by their properties. Event data item also creates a metric of event count by name. */\nexport interface TelemetryEventData extends MonitorDomain {\n /** Event name. Keep it low cardinality to allow proper grouping and useful metrics. */\n name: string;\n /** Collection of custom properties. */\n properties?: { [propertyName: string]: string };\n /** Collection of custom measurements. */\n measurements?: { [propertyName: string]: number };\n}\n\n/** An instance of Exception represents a handled or unhandled exception that occurred during execution of the monitored application. */\nexport interface TelemetryExceptionData extends MonitorDomain {\n /** Exception chain - list of inner exceptions. */\n exceptions: TelemetryExceptionDetails[];\n /** Severity level. Mostly used to indicate exception severity level when it is reported by logging library. */\n severityLevel?: SeverityLevel;\n /** Identifier of where the exception was thrown in code. Used for exceptions grouping. Typically a combination of exception type and a function from the call stack. */\n problemId?: string;\n /** Collection of custom properties. */\n properties?: { [propertyName: string]: string };\n /** Collection of custom measurements. */\n measurements?: { [propertyName: string]: number };\n}\n\n/** Instances of Message represent printf-like trace statements that are text-searched. Log4Net, NLog and other text-based log file entries are translated into instances of this type. The message does not have measurements. */\nexport interface MessageData extends MonitorDomain {\n /** Trace message */\n message: string;\n /** Trace severity level. */\n severityLevel?: SeverityLevel;\n /** Collection of custom properties. */\n properties?: { [propertyName: string]: string };\n /** Collection of custom measurements. */\n measurements?: { [propertyName: string]: number };\n}\n\n/** An instance of the Metric item is a list of measurements (single data points) and/or aggregations. */\nexport interface MetricsData extends MonitorDomain {\n /** List of metrics. Only one metric in the list is currently supported by Application Insights storage. If multiple data points were sent only the first one will be used. */\n metrics: MetricDataPoint[];\n /** Collection of custom properties. */\n properties?: { [propertyName: string]: string };\n}\n\n/** An instance of PageView represents a generic action on a page like a button click. It is also the base type for PageView. */\nexport interface PageViewData extends MonitorDomain {\n /** Identifier of a page view instance. Used for correlation between page view and other telemetry items. */\n id: string;\n /** Event name. Keep it low cardinality to allow proper grouping and useful metrics. */\n name: string;\n /** Request URL with all query string parameters */\n url?: string;\n /** Request duration in format: DD.HH:MM:SS.MMMMMM. For a page view (PageViewData), this is the duration. For a page view with performance information (PageViewPerfData), this is the page load time. Must be less than 1000 days. */\n duration?: string;\n /** Fully qualified page URI or URL of the referring page; if unknown, leave blank */\n referredUri?: string;\n /** Collection of custom properties. */\n properties?: { [propertyName: string]: string };\n /** Collection of custom measurements. */\n measurements?: { [propertyName: string]: number };\n}\n\n/** An instance of PageViewPerf represents: a page view with no performance data, a page view with performance data, or just the performance data of an earlier page request. */\nexport interface PageViewPerfData extends MonitorDomain {\n /** Identifier of a page view instance. Used for correlation between page view and other telemetry items. */\n id: string;\n /** Event name. Keep it low cardinality to allow proper grouping and useful metrics. */\n name: string;\n /** Request URL with all query string parameters */\n url?: string;\n /** Request duration in format: DD.HH:MM:SS.MMMMMM. For a page view (PageViewData), this is the duration. For a page view with performance information (PageViewPerfData), this is the page load time. Must be less than 1000 days. */\n duration?: string;\n /** Performance total in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff */\n perfTotal?: string;\n /** Network connection time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff */\n networkConnect?: string;\n /** Sent request time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff */\n sentRequest?: string;\n /** Received response time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff */\n receivedResponse?: string;\n /** DOM processing time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff */\n domProcessing?: string;\n /** Collection of custom properties. */\n properties?: { [propertyName: string]: string };\n /** Collection of custom measurements. */\n measurements?: { [propertyName: string]: number };\n}\n\n/** An instance of Remote Dependency represents an interaction of the monitored component with a remote component/service like SQL or an HTTP endpoint. */\nexport interface RemoteDependencyData extends MonitorDomain {\n /** Identifier of a dependency call instance. Used for correlation with the request telemetry item corresponding to this dependency call. */\n id?: string;\n /** Name of the command initiated with this dependency call. Low cardinality value. Examples are stored procedure name and URL path template. */\n name: string;\n /** Result code of a dependency call. Examples are SQL error code and HTTP status code. */\n resultCode?: string;\n /** Command initiated by this dependency call. Examples are SQL statement and HTTP URL with all query parameters. */\n data?: string;\n /** Dependency type name. Very low cardinality value for logical grouping of dependencies and interpretation of other fields like commandName and resultCode. Examples are SQL, Azure table, and HTTP. */\n type?: string;\n /** Target site of a dependency call. Examples are server name, host address. */\n target?: string;\n /** Request duration in format: DD.HH:MM:SS.MMMMMM. Must be less than 1000 days. */\n duration: string;\n /** Indication of successful or unsuccessful call. */\n success?: boolean;\n /** Collection of custom properties. */\n properties?: { [propertyName: string]: string };\n /** Collection of custom measurements. */\n measurements?: { [propertyName: string]: number };\n}\n\n/** An instance of Request represents completion of an external request to the application to do work and contains a summary of that request execution and the results. */\nexport interface RequestData extends MonitorDomain {\n /** Identifier of a request call instance. Used for correlation between request and other telemetry items. */\n id: string;\n /** Name of the request. Represents code path taken to process request. Low cardinality value to allow better grouping of requests. For HTTP requests it represents the HTTP method and URL path template like 'GET /values/{id}'. */\n name?: string;\n /** Request duration in format: DD.HH:MM:SS.MMMMMM. Must be less than 1000 days. */\n duration: string;\n /** Indication of successful or unsuccessful call. */\n success: boolean;\n /** Result of a request execution. HTTP status code for HTTP requests. */\n responseCode: string;\n /** Source of the request. Examples are the instrumentation key of the caller or the ip address of the caller. */\n source?: string;\n /** Request URL with all query string parameters. */\n url?: string;\n /** Collection of custom properties. */\n properties?: { [propertyName: string]: string };\n /** Collection of custom measurements. */\n measurements?: { [propertyName: string]: number };\n}\n\n/** Known values of {@link DataPointType} that the service accepts. */\nexport enum KnownDataPointType {\n /** Measurement */\n Measurement = \"Measurement\",\n /** Aggregation */\n Aggregation = \"Aggregation\",\n}\n\n/**\n * Defines values for DataPointType. \\\n * {@link KnownDataPointType} can be used interchangeably with DataPointType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Measurement** \\\n * **Aggregation**\n */\nexport type DataPointType = string;\n\n/** Known values of {@link SeverityLevel} that the service accepts. */\nexport enum KnownSeverityLevel {\n /** Verbose */\n Verbose = \"Verbose\",\n /** Information */\n Information = \"Information\",\n /** Warning */\n Warning = \"Warning\",\n /** Error */\n Error = \"Error\",\n /** Critical */\n Critical = \"Critical\",\n}\n\n/**\n * Defines values for SeverityLevel. \\\n * {@link KnownSeverityLevel} can be used interchangeably with SeverityLevel,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Verbose** \\\n * **Information** \\\n * **Warning** \\\n * **Error** \\\n * **Critical**\n */\nexport type SeverityLevel = string;\n\n/** Known values of {@link ContextTagKeys} that the service accepts. */\nexport enum KnownContextTagKeys {\n /** AiApplicationVer */\n AiApplicationVer = \"ai.application.ver\",\n /** AiDeviceId */\n AiDeviceId = \"ai.device.id\",\n /** AiDeviceLocale */\n AiDeviceLocale = \"ai.device.locale\",\n /** AiDeviceModel */\n AiDeviceModel = \"ai.device.model\",\n /** AiDeviceOemName */\n AiDeviceOemName = \"ai.device.oemName\",\n /** AiDeviceOsVersion */\n AiDeviceOsVersion = \"ai.device.osVersion\",\n /** AiDeviceType */\n AiDeviceType = \"ai.device.type\",\n /** AiLocationIp */\n AiLocationIp = \"ai.location.ip\",\n /** AiLocationCountry */\n AiLocationCountry = \"ai.location.country\",\n /** AiLocationProvince */\n AiLocationProvince = \"ai.location.province\",\n /** AiLocationCity */\n AiLocationCity = \"ai.location.city\",\n /** AiOperationId */\n AiOperationId = \"ai.operation.id\",\n /** AiOperationName */\n AiOperationName = \"ai.operation.name\",\n /** AiOperationParentId */\n AiOperationParentId = \"ai.operation.parentId\",\n /** AiOperationSyntheticSource */\n AiOperationSyntheticSource = \"ai.operation.syntheticSource\",\n /** AiOperationCorrelationVector */\n AiOperationCorrelationVector = \"ai.operation.correlationVector\",\n /** AiSessionId */\n AiSessionId = \"ai.session.id\",\n /** AiSessionIsFirst */\n AiSessionIsFirst = \"ai.session.isFirst\",\n /** AiUserAccountId */\n AiUserAccountId = \"ai.user.accountId\",\n /** AiUserId */\n AiUserId = \"ai.user.id\",\n /** AiUserAuthUserId */\n AiUserAuthUserId = \"ai.user.authUserId\",\n /** AiCloudRole */\n AiCloudRole = \"ai.cloud.role\",\n /** AiCloudRoleVer */\n AiCloudRoleVer = \"ai.cloud.roleVer\",\n /** AiCloudRoleInstance */\n AiCloudRoleInstance = \"ai.cloud.roleInstance\",\n /** AiCloudLocation */\n AiCloudLocation = \"ai.cloud.location\",\n /** AiInternalSdkVersion */\n AiInternalSdkVersion = \"ai.internal.sdkVersion\",\n /** AiInternalAgentVersion */\n AiInternalAgentVersion = \"ai.internal.agentVersion\",\n /** AiInternalNodeName */\n AiInternalNodeName = \"ai.internal.nodeName\",\n}\n\n/**\n * Defines values for ContextTagKeys. \\\n * {@link KnownContextTagKeys} can be used interchangeably with ContextTagKeys,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **ai.application.ver** \\\n * **ai.device.id** \\\n * **ai.device.locale** \\\n * **ai.device.model** \\\n * **ai.device.oemName** \\\n * **ai.device.osVersion** \\\n * **ai.device.type** \\\n * **ai.location.ip** \\\n * **ai.location.country** \\\n * **ai.location.province** \\\n * **ai.location.city** \\\n * **ai.operation.id** \\\n * **ai.operation.name** \\\n * **ai.operation.parentId** \\\n * **ai.operation.syntheticSource** \\\n * **ai.operation.correlationVector** \\\n * **ai.session.id** \\\n * **ai.session.isFirst** \\\n * **ai.user.accountId** \\\n * **ai.user.id** \\\n * **ai.user.authUserId** \\\n * **ai.cloud.role** \\\n * **ai.cloud.roleVer** \\\n * **ai.cloud.roleInstance** \\\n * **ai.cloud.location** \\\n * **ai.internal.sdkVersion** \\\n * **ai.internal.agentVersion** \\\n * **ai.internal.nodeName**\n */\nexport type ContextTagKeys = string;\n\n/** Optional parameters. */\nexport interface TrackOptionalParams extends coreClient.OperationOptions { }\n\n/** Contains response data for the track operation. */\nexport type TrackOperationResponse = TrackResponse;\n\n/** Optional parameters. */\nexport interface ApplicationInsightsClientOptionalParams\n extends coreClient.ServiceClientOptions {\n /** Breeze endpoint: https://dc.services.visualstudio.com */\n host?: string;\n /** Overrides client endpoint. */\n endpoint?: string;\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/generated/models/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAyQH,sEAAsE;AACtE,MAAM,CAAN,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,kBAAkB;IAClB,iDAA2B,CAAA;IAC3B,kBAAkB;IAClB,iDAA2B,CAAA;AAC7B,CAAC,EALW,kBAAkB,KAAlB,kBAAkB,QAK7B;AAYD,sEAAsE;AACtE,MAAM,CAAN,IAAY,kBAWX;AAXD,WAAY,kBAAkB;IAC5B,cAAc;IACd,yCAAmB,CAAA;IACnB,kBAAkB;IAClB,iDAA2B,CAAA;IAC3B,cAAc;IACd,yCAAmB,CAAA;IACnB,YAAY;IACZ,qCAAe,CAAA;IACf,eAAe;IACf,2CAAqB,CAAA;AACvB,CAAC,EAXW,kBAAkB,KAAlB,kBAAkB,QAW7B;AAeD,uEAAuE;AACvE,MAAM,CAAN,IAAY,mBAyDX;AAzDD,WAAY,mBAAmB;IAC7B,uBAAuB;IACvB,8DAAuC,CAAA;IACvC,iBAAiB;IACjB,kDAA2B,CAAA;IAC3B,qBAAqB;IACrB,0DAAmC,CAAA;IACnC,oBAAoB;IACpB,wDAAiC,CAAA;IACjC,sBAAsB;IACtB,4DAAqC,CAAA;IACrC,wBAAwB;IACxB,gEAAyC,CAAA;IACzC,mBAAmB;IACnB,sDAA+B,CAAA;IAC/B,mBAAmB;IACnB,sDAA+B,CAAA;IAC/B,wBAAwB;IACxB,gEAAyC,CAAA;IACzC,yBAAyB;IACzB,kEAA2C,CAAA;IAC3C,qBAAqB;IACrB,0DAAmC,CAAA;IACnC,oBAAoB;IACpB,wDAAiC,CAAA;IACjC,sBAAsB;IACtB,4DAAqC,CAAA;IACrC,0BAA0B;IAC1B,oEAA6C,CAAA;IAC7C,iCAAiC;IACjC,kFAA2D,CAAA;IAC3D,mCAAmC;IACnC,sFAA+D,CAAA;IAC/D,kBAAkB;IAClB,oDAA6B,CAAA;IAC7B,uBAAuB;IACvB,8DAAuC,CAAA;IACvC,sBAAsB;IACtB,4DAAqC,CAAA;IACrC,eAAe;IACf,8CAAuB,CAAA;IACvB,uBAAuB;IACvB,8DAAuC,CAAA;IACvC,kBAAkB;IAClB,oDAA6B,CAAA;IAC7B,qBAAqB;IACrB,0DAAmC,CAAA;IACnC,0BAA0B;IAC1B,oEAA6C,CAAA;IAC7C,sBAAsB;IACtB,4DAAqC,CAAA;IACrC,2BAA2B;IAC3B,sEAA+C,CAAA;IAC/C,6BAA6B;IAC7B,0EAAmD,CAAA;IACnD,yBAAyB;IACzB,kEAA2C,CAAA;AAC7C,CAAC,EAzDW,mBAAmB,KAAnB,mBAAmB,QAyD9B","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\n\n/** System variables for a telemetry item. */\nexport interface TelemetryItem {\n /** Envelope version. For internal use only. By assigning this the default, it will not be serialized within the payload unless changed to a value other than #1. */\n version?: number;\n /** Type name of telemetry data item. */\n name: string;\n /** Event date time when telemetry item was created. This is the wall clock time on the client when the event was generated. There is no guarantee that the client's time is accurate. This field must be formatted in UTC ISO 8601 format, with a trailing 'Z' character, as described publicly on https://en.wikipedia.org/wiki/ISO_8601#UTC. Note: the number of decimal seconds digits provided are variable (and unspecified). Consumers should handle this, i.e. managed code consumers should not use format 'O' for parsing as it specifies a fixed length. Example: 2009-06-15T13:45:30.0000000Z. */\n time: Date;\n /** Sampling rate used in application. This telemetry item represents 100 / sampleRate actual telemetry items. */\n sampleRate?: number;\n /** Sequence field used to track absolute order of uploaded events. */\n sequence?: string;\n /** The instrumentation key of the Application Insights resource. */\n instrumentationKey?: string;\n /** Key/value collection of context properties. See ContextTagKeys for information on available properties. */\n tags?: { [propertyName: string]: string };\n /** Telemetry data item. */\n data?: MonitorBase;\n}\n\n/** Data struct to contain only C section with custom fields. */\nexport interface MonitorBase {\n /** Name of item (B section) if any. If telemetry data is derived straight from this, this should be null. */\n baseType?: string;\n /** The data payload for the telemetry request */\n baseData?: MonitorDomain;\n}\n\n/** The abstract common base of all domains. */\nexport interface MonitorDomain {\n /** Describes unknown properties. The value of an unknown property can be of \"any\" type. */\n [property: string]: any;\n /** Schema version */\n version: number;\n}\n\n/** Response containing the status of each telemetry item. */\nexport interface TrackResponse {\n /** The number of items received. */\n itemsReceived?: number;\n /** The number of items accepted. */\n itemsAccepted?: number;\n /** An array of error detail objects. */\n errors?: TelemetryErrorDetails[];\n}\n\n/** The error details */\nexport interface TelemetryErrorDetails {\n /** The index in the original payload of the item. */\n index?: number;\n /** The item specific [HTTP Response status code](#Response Status Codes). */\n statusCode?: number;\n /** The error message. */\n message?: string;\n}\n\n/** Metric data single measurement. */\nexport interface MetricDataPoint {\n /** Namespace of the metric. */\n namespace?: string;\n /** Name of the metric. */\n name: string;\n /** Metric type. Single measurement or the aggregated value. */\n dataPointType?: DataPointType;\n /** Single value for measurement. Sum of individual measurements for the aggregation. */\n value: number;\n /** Metric weight of the aggregated metric. Should not be set for a measurement. */\n count?: number;\n /** Minimum value of the aggregated metric. Should not be set for a measurement. */\n min?: number;\n /** Maximum value of the aggregated metric. Should not be set for a measurement. */\n max?: number;\n /** Standard deviation of the aggregated metric. Should not be set for a measurement. */\n stdDev?: number;\n}\n\n/** Exception details of the exception in a chain. */\nexport interface TelemetryExceptionDetails {\n /** In case exception is nested (outer exception contains inner one), the id and outerId properties are used to represent the nesting. */\n id?: number;\n /** The value of outerId is a reference to an element in ExceptionDetails that represents the outer exception */\n outerId?: number;\n /** Exception type name. */\n typeName?: string;\n /** Exception message. */\n message: string;\n /** Indicates if full exception stack is provided in the exception. The stack may be trimmed, such as in the case of a StackOverflow exception. */\n hasFullStack?: boolean;\n /** Text describing the stack. Either stack or parsedStack should have a value. */\n stack?: string;\n /** List of stack frames. Either stack or parsedStack should have a value. */\n parsedStack?: StackFrame[];\n}\n\n/** Stack frame information. */\nexport interface StackFrame {\n level: number;\n /** Method name. */\n method: string;\n /** Name of the assembly (dll, jar, etc.) containing this function. */\n assembly?: string;\n /** File name or URL of the method implementation. */\n fileName?: string;\n /** Line number of the code implementation. */\n line?: number;\n}\n\n/** Instances of AvailabilityData represent the result of executing an availability test. */\nexport interface AvailabilityData extends MonitorDomain {\n /** Identifier of a test run. Use it to correlate steps of test run and telemetry generated by the service. */\n id: string;\n /** Name of the test that these availability results represent. */\n name: string;\n /** Duration in format: DD.HH:MM:SS.MMMMMM. Must be less than 1000 days. */\n duration: string;\n /** Success flag. */\n success: boolean;\n /** Name of the location where the test was run from. */\n runLocation?: string;\n /** Diagnostic message for the result. */\n message?: string;\n /** Collection of custom properties. */\n properties?: { [propertyName: string]: string };\n /** Collection of custom measurements. */\n measurements?: { [propertyName: string]: number };\n}\n\n/** Instances of Event represent structured event records that can be grouped and searched by their properties. Event data item also creates a metric of event count by name. */\nexport interface TelemetryEventData extends MonitorDomain {\n /** Event name. Keep it low cardinality to allow proper grouping and useful metrics. */\n name: string;\n /** Collection of custom properties. */\n properties?: { [propertyName: string]: string };\n /** Collection of custom measurements. */\n measurements?: { [propertyName: string]: number };\n}\n\n/** An instance of Exception represents a handled or unhandled exception that occurred during execution of the monitored application. */\nexport interface TelemetryExceptionData extends MonitorDomain {\n /** Exception chain - list of inner exceptions. */\n exceptions: TelemetryExceptionDetails[];\n /** Severity level. Mostly used to indicate exception severity level when it is reported by logging library. */\n severityLevel?: SeverityLevel;\n /** Identifier of where the exception was thrown in code. Used for exceptions grouping. Typically a combination of exception type and a function from the call stack. */\n problemId?: string;\n /** Collection of custom properties. */\n properties?: { [propertyName: string]: string };\n /** Collection of custom measurements. */\n measurements?: { [propertyName: string]: number };\n}\n\n/** Instances of Message represent printf-like trace statements that are text-searched. Log4Net, NLog and other text-based log file entries are translated into instances of this type. The message does not have measurements. */\nexport interface MessageData extends MonitorDomain {\n /** Trace message */\n message: string;\n /** Trace severity level. */\n severityLevel?: SeverityLevel;\n /** Collection of custom properties. */\n properties?: { [propertyName: string]: string };\n /** Collection of custom measurements. */\n measurements?: { [propertyName: string]: number };\n}\n\n/** An instance of the Metric item is a list of measurements (single data points) and/or aggregations. */\nexport interface MetricsData extends MonitorDomain {\n /** List of metrics. Only one metric in the list is currently supported by Application Insights storage. If multiple data points were sent only the first one will be used. */\n metrics: MetricDataPoint[];\n /** Collection of custom properties. */\n properties?: { [propertyName: string]: string };\n}\n\n/** An instance of PageView represents a generic action on a page like a button click. It is also the base type for PageView. */\nexport interface PageViewData extends MonitorDomain {\n /** Identifier of a page view instance. Used for correlation between page view and other telemetry items. */\n id: string;\n /** Event name. Keep it low cardinality to allow proper grouping and useful metrics. */\n name: string;\n /** Request URL with all query string parameters */\n url?: string;\n /** Request duration in format: DD.HH:MM:SS.MMMMMM. For a page view (PageViewData), this is the duration. For a page view with performance information (PageViewPerfData), this is the page load time. Must be less than 1000 days. */\n duration?: string;\n /** Fully qualified page URI or URL of the referring page; if unknown, leave blank */\n referredUri?: string;\n /** Collection of custom properties. */\n properties?: { [propertyName: string]: string };\n /** Collection of custom measurements. */\n measurements?: { [propertyName: string]: number };\n}\n\n/** An instance of PageViewPerf represents: a page view with no performance data, a page view with performance data, or just the performance data of an earlier page request. */\nexport interface PageViewPerfData extends MonitorDomain {\n /** Identifier of a page view instance. Used for correlation between page view and other telemetry items. */\n id: string;\n /** Event name. Keep it low cardinality to allow proper grouping and useful metrics. */\n name: string;\n /** Request URL with all query string parameters */\n url?: string;\n /** Request duration in format: DD.HH:MM:SS.MMMMMM. For a page view (PageViewData), this is the duration. For a page view with performance information (PageViewPerfData), this is the page load time. Must be less than 1000 days. */\n duration?: string;\n /** Performance total in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff */\n perfTotal?: string;\n /** Network connection time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff */\n networkConnect?: string;\n /** Sent request time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff */\n sentRequest?: string;\n /** Received response time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff */\n receivedResponse?: string;\n /** DOM processing time in TimeSpan 'G' (general long) format: d:hh:mm:ss.fffffff */\n domProcessing?: string;\n /** Collection of custom properties. */\n properties?: { [propertyName: string]: string };\n /** Collection of custom measurements. */\n measurements?: { [propertyName: string]: number };\n}\n\n/** An instance of Remote Dependency represents an interaction of the monitored component with a remote component/service like SQL or an HTTP endpoint. */\nexport interface RemoteDependencyData extends MonitorDomain {\n /** Identifier of a dependency call instance. Used for correlation with the request telemetry item corresponding to this dependency call. */\n id?: string;\n /** Name of the command initiated with this dependency call. Low cardinality value. Examples are stored procedure name and URL path template. */\n name: string;\n /** Result code of a dependency call. Examples are SQL error code and HTTP status code. */\n resultCode?: string;\n /** Command initiated by this dependency call. Examples are SQL statement and HTTP URL with all query parameters. */\n data?: string;\n /** Dependency type name. Very low cardinality value for logical grouping of dependencies and interpretation of other fields like commandName and resultCode. Examples are SQL, Azure table, and HTTP. */\n type?: string;\n /** Target site of a dependency call. Examples are server name, host address. */\n target?: string;\n /** Request duration in format: DD.HH:MM:SS.MMMMMM. Must be less than 1000 days. */\n duration: string;\n /** Indication of successful or unsuccessful call. */\n success?: boolean;\n /** Collection of custom properties. */\n properties?: { [propertyName: string]: string };\n /** Collection of custom measurements. */\n measurements?: { [propertyName: string]: number };\n}\n\n/** An instance of Request represents completion of an external request to the application to do work and contains a summary of that request execution and the results. */\nexport interface RequestData extends MonitorDomain {\n /** Identifier of a request call instance. Used for correlation between request and other telemetry items. */\n id: string;\n /** Name of the request. Represents code path taken to process request. Low cardinality value to allow better grouping of requests. For HTTP requests it represents the HTTP method and URL path template like 'GET /values/{id}'. */\n name?: string;\n /** Request duration in format: DD.HH:MM:SS.MMMMMM. Must be less than 1000 days. */\n duration: string;\n /** Indication of successful or unsuccessful call. */\n success: boolean;\n /** Result of a request execution. HTTP status code for HTTP requests. */\n responseCode: string;\n /** Source of the request. Examples are the instrumentation key of the caller or the ip address of the caller. */\n source?: string;\n /** Request URL with all query string parameters. */\n url?: string;\n /** Collection of custom properties. */\n properties?: { [propertyName: string]: string };\n /** Collection of custom measurements. */\n measurements?: { [propertyName: string]: number };\n}\n\n/** Known values of {@link DataPointType} that the service accepts. */\nexport enum KnownDataPointType {\n /** Measurement */\n Measurement = \"Measurement\",\n /** Aggregation */\n Aggregation = \"Aggregation\",\n}\n\n/**\n * Defines values for DataPointType. \\\n * {@link KnownDataPointType} can be used interchangeably with DataPointType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Measurement** \\\n * **Aggregation**\n */\nexport type DataPointType = string;\n\n/** Known values of {@link SeverityLevel} that the service accepts. */\nexport enum KnownSeverityLevel {\n /** Verbose */\n Verbose = \"Verbose\",\n /** Information */\n Information = \"Information\",\n /** Warning */\n Warning = \"Warning\",\n /** Error */\n Error = \"Error\",\n /** Critical */\n Critical = \"Critical\",\n}\n\n/**\n * Defines values for SeverityLevel. \\\n * {@link KnownSeverityLevel} can be used interchangeably with SeverityLevel,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Verbose** \\\n * **Information** \\\n * **Warning** \\\n * **Error** \\\n * **Critical**\n */\nexport type SeverityLevel = string;\n\n/** Known values of {@link ContextTagKeys} that the service accepts. */\nexport enum KnownContextTagKeys {\n /** AiApplicationVer */\n AiApplicationVer = \"ai.application.ver\",\n /** AiDeviceId */\n AiDeviceId = \"ai.device.id\",\n /** AiDeviceLocale */\n AiDeviceLocale = \"ai.device.locale\",\n /** AiDeviceModel */\n AiDeviceModel = \"ai.device.model\",\n /** AiDeviceOemName */\n AiDeviceOemName = \"ai.device.oemName\",\n /** AiDeviceOsVersion */\n AiDeviceOsVersion = \"ai.device.osVersion\",\n /** AiDeviceType */\n AiDeviceType = \"ai.device.type\",\n /** AiLocationIp */\n AiLocationIp = \"ai.location.ip\",\n /** AiLocationCountry */\n AiLocationCountry = \"ai.location.country\",\n /** AiLocationProvince */\n AiLocationProvince = \"ai.location.province\",\n /** AiLocationCity */\n AiLocationCity = \"ai.location.city\",\n /** AiOperationId */\n AiOperationId = \"ai.operation.id\",\n /** AiOperationName */\n AiOperationName = \"ai.operation.name\",\n /** AiOperationParentId */\n AiOperationParentId = \"ai.operation.parentId\",\n /** AiOperationSyntheticSource */\n AiOperationSyntheticSource = \"ai.operation.syntheticSource\",\n /** AiOperationCorrelationVector */\n AiOperationCorrelationVector = \"ai.operation.correlationVector\",\n /** AiSessionId */\n AiSessionId = \"ai.session.id\",\n /** AiSessionIsFirst */\n AiSessionIsFirst = \"ai.session.isFirst\",\n /** AiUserAccountId */\n AiUserAccountId = \"ai.user.accountId\",\n /** AiUserId */\n AiUserId = \"ai.user.id\",\n /** AiUserAuthUserId */\n AiUserAuthUserId = \"ai.user.authUserId\",\n /** AiCloudRole */\n AiCloudRole = \"ai.cloud.role\",\n /** AiCloudRoleVer */\n AiCloudRoleVer = \"ai.cloud.roleVer\",\n /** AiCloudRoleInstance */\n AiCloudRoleInstance = \"ai.cloud.roleInstance\",\n /** AiCloudLocation */\n AiCloudLocation = \"ai.cloud.location\",\n /** AiInternalSdkVersion */\n AiInternalSdkVersion = \"ai.internal.sdkVersion\",\n /** AiInternalAgentVersion */\n AiInternalAgentVersion = \"ai.internal.agentVersion\",\n /** AiInternalNodeName */\n AiInternalNodeName = \"ai.internal.nodeName\",\n}\n\n/**\n * Defines values for ContextTagKeys. \\\n * {@link KnownContextTagKeys} can be used interchangeably with ContextTagKeys,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **ai.application.ver** \\\n * **ai.device.id** \\\n * **ai.device.locale** \\\n * **ai.device.model** \\\n * **ai.device.oemName** \\\n * **ai.device.osVersion** \\\n * **ai.device.type** \\\n * **ai.location.ip** \\\n * **ai.location.country** \\\n * **ai.location.province** \\\n * **ai.location.city** \\\n * **ai.operation.id** \\\n * **ai.operation.name** \\\n * **ai.operation.parentId** \\\n * **ai.operation.syntheticSource** \\\n * **ai.operation.correlationVector** \\\n * **ai.session.id** \\\n * **ai.session.isFirst** \\\n * **ai.user.accountId** \\\n * **ai.user.id** \\\n * **ai.user.authUserId** \\\n * **ai.cloud.role** \\\n * **ai.cloud.roleVer** \\\n * **ai.cloud.roleInstance** \\\n * **ai.cloud.location** \\\n * **ai.internal.sdkVersion** \\\n * **ai.internal.agentVersion** \\\n * **ai.internal.nodeName**\n */\nexport type ContextTagKeys = string;\n\n/** Optional parameters. */\nexport interface TrackOptionalParams extends coreClient.OperationOptions {}\n\n/** Contains response data for the track operation. */\nexport type TrackOperationResponse = TrackResponse;\n\n/** Optional parameters. */\nexport interface ApplicationInsightsClientOptionalParams\n extends coreClient.ServiceClientOptions {\n /** Breeze endpoint: https://dc.services.visualstudio.com */\n host?: string;\n /** Overrides client endpoint. */\n endpoint?: string;\n}\n"]}
@@ -413,7 +413,7 @@ export const AvailabilityData = {
413
413
  serializedName: "properties",
414
414
  type: {
415
415
  name: "Dictionary",
416
- value: { type: { name: "String" }, constraints: { MaxLength: 8192 } },
416
+ value: { type: { name: "String" } },
417
417
  },
418
418
  },
419
419
  measurements: {
@@ -447,7 +447,7 @@ export const TelemetryEventData = {
447
447
  serializedName: "properties",
448
448
  type: {
449
449
  name: "Dictionary",
450
- value: { type: { name: "String" }, constraints: { MaxLength: 8192 } },
450
+ value: { type: { name: "String" } },
451
451
  },
452
452
  },
453
453
  measurements: {
@@ -500,7 +500,7 @@ export const TelemetryExceptionData = {
500
500
  serializedName: "properties",
501
501
  type: {
502
502
  name: "Dictionary",
503
- value: { type: { name: "String" }, constraints: { MaxLength: 8192 } },
503
+ value: { type: { name: "String" } },
504
504
  },
505
505
  },
506
506
  measurements: {
@@ -540,7 +540,7 @@ export const MessageData = {
540
540
  serializedName: "properties",
541
541
  type: {
542
542
  name: "Dictionary",
543
- value: { type: { name: "String" }, constraints: { MaxLength: 8192 } },
543
+ value: { type: { name: "String" } },
544
544
  },
545
545
  },
546
546
  measurements: {
@@ -577,7 +577,7 @@ export const MetricsData = {
577
577
  serializedName: "properties",
578
578
  type: {
579
579
  name: "Dictionary",
580
- value: { type: { name: "String" }, constraints: { MaxLength: 8192 } },
580
+ value: { type: { name: "String" } },
581
581
  },
582
582
  },
583
583
  },
@@ -602,7 +602,7 @@ export const PageViewData = {
602
602
  },
603
603
  name: {
604
604
  constraints: {
605
- MaxLength: 1024,
605
+ MaxLength: 512,
606
606
  },
607
607
  serializedName: "name",
608
608
  required: true,
@@ -638,7 +638,7 @@ export const PageViewData = {
638
638
  serializedName: "properties",
639
639
  type: {
640
640
  name: "Dictionary",
641
- value: { type: { name: "String" }, constraints: { MaxLength: 8192 } },
641
+ value: { type: { name: "String" } },
642
642
  },
643
643
  },
644
644
  measurements: {
@@ -670,7 +670,7 @@ export const PageViewPerfData = {
670
670
  },
671
671
  name: {
672
672
  constraints: {
673
- MaxLength: 1024,
673
+ MaxLength: 512,
674
674
  },
675
675
  serializedName: "name",
676
676
  required: true,
@@ -727,7 +727,7 @@ export const PageViewPerfData = {
727
727
  serializedName: "properties",
728
728
  type: {
729
729
  name: "Dictionary",
730
- value: { type: { name: "String" }, constraints: { MaxLength: 8192 } },
730
+ value: { type: { name: "String" } },
731
731
  },
732
732
  },
733
733
  measurements: {
@@ -820,7 +820,7 @@ export const RemoteDependencyData = {
820
820
  serializedName: "properties",
821
821
  type: {
822
822
  name: "Dictionary",
823
- value: { type: { name: "String" }, constraints: { MaxLength: 8192 } },
823
+ value: { type: { name: "String" } },
824
824
  },
825
825
  },
826
826
  measurements: {
@@ -906,7 +906,7 @@ export const RequestData = {
906
906
  serializedName: "properties",
907
907
  type: {
908
908
  name: "Dictionary",
909
- value: { type: { name: "String" }, constraints: { MaxLength: 8192 } },
909
+ value: { type: { name: "String" } },
910
910
  },
911
911
  },
912
912
  measurements: {