@ms-cloudpack/telemetry 0.6.3 → 0.8.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.
@@ -6,8 +6,8 @@ const __filename = topLevelUrl.fileURLToPath(import.meta.url);
6
6
  const __dirname = topLevelPath.dirname(__filename);
7
7
  import {
8
8
  NoOpTelemetryClient
9
- } from "./chunk-M7NO6I7R.js";
10
- import "./chunk-KAD6FC6G.js";
9
+ } from "./chunk-6ZXUGFN2.js";
10
+ import "./chunk-NCK3Y7B7.js";
11
11
  export {
12
12
  NoOpTelemetryClient
13
13
  };
@@ -5,27 +5,20 @@ const require = topLevelCreateRequire(import.meta.url);
5
5
  const __filename = topLevelUrl.fileURLToPath(import.meta.url);
6
6
  const __dirname = topLevelPath.dirname(__filename);
7
7
  import {
8
- PerformanceRecorder,
9
- __name,
10
- init_esm,
11
- trace
12
- } from "./chunk-KAD6FC6G.js";
8
+ BaseTelemetryClient,
9
+ __name
10
+ } from "./chunk-NCK3Y7B7.js";
13
11
 
14
- // src/NoOp/NoOpTelemetryClient.ts
15
- init_esm();
16
- var _NoOpTelemetryClient = class _NoOpTelemetryClient {
12
+ // src/NoOpTelemetryClient.ts
13
+ var _NoOpTelemetryClient = class _NoOpTelemetryClient extends BaseTelemetryClient {
17
14
  constructor() {
18
- this.rootSpan = this.getTracer().startSpan("no-op");
19
- this.performance = new PerformanceRecorder(this.rootSpan);
20
- }
21
- setSharedSpanAttribute() {
22
- return this;
23
- }
24
- shutdown() {
25
- return Promise.resolve();
26
- }
27
- getTracer() {
28
- return trace.getTracer("no-op");
15
+ super({
16
+ productVersion: "no-op",
17
+ serviceName: "no-op",
18
+ rootSpanName: "no-op",
19
+ serviceNamespace: "no-op",
20
+ logLevel: "NONE"
21
+ });
29
22
  }
30
23
  };
31
24
  __name(_NoOpTelemetryClient, "NoOpTelemetryClient");