@zuplo/otel 5.2524.0 → 5.2526.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.
@@ -3,6 +3,7 @@ import { ReadableSpan } from '@opentelemetry/sdk-trace-base';
3
3
  import { Sampler } from '@opentelemetry/sdk-trace-base';
4
4
  import { SpanExporter } from '@opentelemetry/sdk-trace-base';
5
5
  import { SpanProcessor } from '@opentelemetry/sdk-trace-base';
6
+ import { TelemetryPlugin } from '@zuplo/runtime';
6
7
  import { TextMapPropagator } from '@opentelemetry/api';
7
8
 
8
9
  declare type AcceptTraceContextFn = (request: Request) => boolean;
@@ -27,15 +28,6 @@ declare interface LocalTrace {
27
28
  readonly spans: ReadableSpan[];
28
29
  }
29
30
 
30
- declare type LoggingEnvironmentStage = "working-copy" | "preview" | "production" | "local" | "unknown";
31
-
32
- /**
33
- * This type exists mostly because we can't break existing loggers,
34
- * it is probably better to have environment stage and something indicating
35
- * runtime (which more closely resembles what we actually use internally)
36
- */
37
- declare type LoggingEnvironmentType = "edge" | "working-copy" | "local" | "unknown";
38
-
39
31
  /**
40
32
  * OpenTelemetry plugin for Zuplo
41
33
  * @public
@@ -69,16 +61,8 @@ declare interface RequestHandlerConfig {
69
61
  acceptTraceContext?: boolean | AcceptTraceContextFn;
70
62
  }
71
63
 
72
- /* Excluded from this release type: RequestHandlerFunction */
73
-
74
64
  /* Excluded from this release type: RequestHandlerProxy */
75
65
 
76
- /**
77
- * @public
78
- */
79
- declare abstract class RuntimePlugin {
80
- }
81
-
82
66
  declare interface SamplingConfig<HS extends HeadSamplerConf = HeadSamplerConf> {
83
67
  headSampler?: HS;
84
68
  tailSampler?: TailSampleFn;
@@ -94,14 +78,6 @@ declare type TailSampleFn = (traceInfo: LocalTrace) => boolean;
94
78
 
95
79
  /* Excluded from this release type: TelemetryInitializationOptions */
96
80
 
97
- /**
98
- * Base class for determining type of plugin
99
- * @public
100
- */
101
- declare abstract class TelemetryPlugin extends RuntimePlugin {
102
- /* Excluded from this release type: instrument */
103
- }
104
-
105
81
  export declare type TraceConfig = TraceConfigExporter | TraceConfigSpanProcessors;
106
82
 
107
83
  declare interface TraceConfigBase {
@@ -121,13 +97,4 @@ declare interface TraceConfigSpanProcessors extends TraceConfigBase {
121
97
  spanProcessors: SpanProcessor | SpanProcessor[];
122
98
  }
123
99
 
124
- /**
125
- * @public
126
- */
127
- declare interface WaitUntilFunc {
128
- (promise: Promise<any>): void;
129
- }
130
-
131
- /* Excluded from this release type: ZuploEventContext */
132
-
133
100
  export { }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zuplo/otel",
3
3
  "type": "module",
4
- "version": "5.2524.0",
4
+ "version": "5.2526.0",
5
5
  "repository": "https://github.com/zuplo/zuplo",
6
6
  "author": "Zuplo, Inc.",
7
7
  "exports": {