@ms-cloudpack/telemetry 0.4.8 → 0.5.0

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 (61) hide show
  1. package/dist/AppInsightsTelemetryClient-7X6RLLF5.js +71948 -0
  2. package/dist/NoOpTelemetryClient-GBCRTSF4.js +7 -0
  3. package/dist/chunk-BVWZW3N3.js +1906 -0
  4. package/dist/chunk-U2PXIPI6.js +32 -0
  5. package/dist/index.js +36 -0
  6. package/package.json +8 -9
  7. package/lib/AppInsights/AppInsightsTelemetryClient.d.ts.map +0 -1
  8. package/lib/AppInsights/AppInsightsTelemetryClient.js +0 -52
  9. package/lib/AppInsights/AppInsightsTelemetryClient.js.map +0 -1
  10. package/lib/AppInsights/SpanEnrichingProcessor.d.ts.map +0 -1
  11. package/lib/AppInsights/SpanEnrichingProcessor.js +0 -23
  12. package/lib/AppInsights/SpanEnrichingProcessor.js.map +0 -1
  13. package/lib/AppInsights/convertLogLevel.d.ts.map +0 -1
  14. package/lib/AppInsights/convertLogLevel.js +0 -21
  15. package/lib/AppInsights/convertLogLevel.js.map +0 -1
  16. package/lib/AppInsights/getAppInsightsConfig.d.ts.map +0 -1
  17. package/lib/AppInsights/getAppInsightsConfig.js +0 -30
  18. package/lib/AppInsights/getAppInsightsConfig.js.map +0 -1
  19. package/lib/AppInsights/getComputerName.d.ts.map +0 -1
  20. package/lib/AppInsights/getComputerName.js +0 -21
  21. package/lib/AppInsights/getComputerName.js.map +0 -1
  22. package/lib/MetricEventAggregatorRegistry.d.ts.map +0 -1
  23. package/lib/MetricEventAggregatorRegistry.js +0 -29
  24. package/lib/MetricEventAggregatorRegistry.js.map +0 -1
  25. package/lib/NoOp/NoOpTelemetryClient.d.ts.map +0 -1
  26. package/lib/NoOp/NoOpTelemetryClient.js +0 -24
  27. package/lib/NoOp/NoOpTelemetryClient.js.map +0 -1
  28. package/lib/PerformanceRecorder.d.ts.map +0 -1
  29. package/lib/PerformanceRecorder.js +0 -53
  30. package/lib/PerformanceRecorder.js.map +0 -1
  31. package/lib/createNoOpTelemetryClient.d.ts.map +0 -1
  32. package/lib/createNoOpTelemetryClient.js +0 -5
  33. package/lib/createNoOpTelemetryClient.js.map +0 -1
  34. package/lib/createTelemetryClient.d.ts.map +0 -1
  35. package/lib/createTelemetryClient.js +0 -16
  36. package/lib/createTelemetryClient.js.map +0 -1
  37. package/lib/index.d.ts.map +0 -1
  38. package/lib/index.js +0 -3
  39. package/lib/index.js.map +0 -1
  40. package/lib/tsdoc-metadata.json +0 -11
  41. package/lib/types/LogLevel.d.ts.map +0 -1
  42. package/lib/types/LogLevel.js +0 -2
  43. package/lib/types/LogLevel.js.map +0 -1
  44. package/lib/types/MetricEvent.d.ts.map +0 -1
  45. package/lib/types/MetricEvent.js +0 -2
  46. package/lib/types/MetricEvent.js.map +0 -1
  47. package/lib/types/MetricEventAggregator.d.ts.map +0 -1
  48. package/lib/types/MetricEventAggregator.js +0 -2
  49. package/lib/types/MetricEventAggregator.js.map +0 -1
  50. package/lib/types/PerformanceTracker.d.ts.map +0 -1
  51. package/lib/types/PerformanceTracker.js +0 -2
  52. package/lib/types/PerformanceTracker.js.map +0 -1
  53. package/lib/types/SpanAttributes.d.ts.map +0 -1
  54. package/lib/types/SpanAttributes.js +0 -2
  55. package/lib/types/SpanAttributes.js.map +0 -1
  56. package/lib/types/TelemetryClient.d.ts.map +0 -1
  57. package/lib/types/TelemetryClient.js +0 -2
  58. package/lib/types/TelemetryClient.js.map +0 -1
  59. package/lib/types/TelemetryOptions.d.ts.map +0 -1
  60. package/lib/types/TelemetryOptions.js +0 -2
  61. package/lib/types/TelemetryOptions.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"TelemetryClient.js","sourceRoot":"","sources":["../../src/types/TelemetryClient.ts"],"names":[],"mappings":"","sourcesContent":["import type { Span, Tracer } from '@opentelemetry/api';\nimport type { PerformanceRecorder } from '../PerformanceRecorder.js';\nimport type { SpanAttributeValue } from './SpanAttributes.js';\n\nexport interface TelemetryClient {\n /**\n * Root span which measures the duration of the highest level application (ie: CLI)\n */\n rootSpan: Span;\n\n /**\n * Sets a shared attribute that will be added to all spans.\n * @param key - key of the attribute\n * @param value - value of the attribute\n */\n setSharedSpanAttribute(key: string, value: SpanAttributeValue): void;\n\n /**\n * Flushes all telemetry and shuts down the telemetry client.\n */\n shutdown(): Promise<void>;\n\n /**\n * Gets the OpenTelemetry tracer.\n * @returns the OpenTelemetry tracer\n */\n getTracer(): Tracer;\n\n /**\n * Gets the performance recorder.\n */\n performance: PerformanceRecorder;\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"TelemetryOptions.d.ts","sourceRoot":"","sources":["../../src/types/TelemetryOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE9C,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAEpB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=TelemetryOptions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TelemetryOptions.js","sourceRoot":"","sources":["../../src/types/TelemetryOptions.ts"],"names":[],"mappings":"","sourcesContent":["import type { LogLevel } from './LogLevel.js';\n\nexport interface TelemetryOptions {\n /**\n * The connection string for the Application Insights.\n */\n connectionString?: string;\n\n /**\n * The log level for the telemetry client.\n */\n logLevel?: LogLevel;\n\n /**\n * The version of the product. This will be added as a shared attribute to all spans.\n */\n productVersion: string;\n\n /**\n * A string value having a meaning that helps to distinguish a group of services, for example the team name that owns a group of services.\n * Possible values: cloudpack, cloudpack.services, etc.\n */\n serviceNamespace: string;\n\n /**\n * Logic name of the service\n * Possible values: cli, bundler-service, etc.\n */\n serviceName: string;\n\n /**\n * Name of the root span, 'root' will be used as a span name if this property is not set.\n */\n rootSpanName?: string;\n}\n"]}