@atrim/instrument-node 0.5.0-c05e3a1-20251119131235 → 0.5.1-1451fcf-20260105212505
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.
- package/README.md +97 -269
- package/package.json +18 -17
- package/target/dist/index.cjs +209 -117
- package/target/dist/index.cjs.map +1 -1
- package/target/dist/index.d.cts +168 -120
- package/target/dist/index.d.ts +168 -120
- package/target/dist/index.js +202 -116
- package/target/dist/index.js.map +1 -1
- package/target/dist/integrations/effect/index.cjs +287 -129
- package/target/dist/integrations/effect/index.cjs.map +1 -1
- package/target/dist/integrations/effect/index.d.cts +205 -36
- package/target/dist/integrations/effect/index.d.ts +205 -36
- package/target/dist/integrations/effect/index.js +284 -131
- package/target/dist/integrations/effect/index.js.map +1 -1
package/target/dist/index.d.ts
CHANGED
|
@@ -46,130 +46,33 @@ declare function createOtlpExporter(options?: OtlpExporterOptions): OTLPTraceExp
|
|
|
46
46
|
declare function getOtlpEndpoint(options?: OtlpExporterOptions): string;
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* Node.js configuration loader
|
|
50
50
|
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*/
|
|
54
|
-
declare const ConfigError_base: new <A extends Record<string, any> = {}>(args: effect_Types.Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => effect_Cause.YieldableError & {
|
|
55
|
-
readonly _tag: "ConfigError";
|
|
56
|
-
} & Readonly<A>;
|
|
57
|
-
/**
|
|
58
|
-
* Base error for configuration-related failures
|
|
59
|
-
*/
|
|
60
|
-
declare class ConfigError extends ConfigError_base<{
|
|
61
|
-
reason: string;
|
|
62
|
-
cause?: unknown;
|
|
63
|
-
}> {
|
|
64
|
-
}
|
|
65
|
-
declare const ConfigUrlError_base: new <A extends Record<string, any> = {}>(args: effect_Types.Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => effect_Cause.YieldableError & {
|
|
66
|
-
readonly _tag: "ConfigUrlError";
|
|
67
|
-
} & Readonly<A>;
|
|
68
|
-
/**
|
|
69
|
-
* Error when fetching configuration from a URL fails
|
|
70
|
-
*/
|
|
71
|
-
declare class ConfigUrlError extends ConfigUrlError_base<{
|
|
72
|
-
reason: string;
|
|
73
|
-
cause?: unknown;
|
|
74
|
-
}> {
|
|
75
|
-
}
|
|
76
|
-
declare const ConfigValidationError_base: new <A extends Record<string, any> = {}>(args: effect_Types.Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => effect_Cause.YieldableError & {
|
|
77
|
-
readonly _tag: "ConfigValidationError";
|
|
78
|
-
} & Readonly<A>;
|
|
79
|
-
/**
|
|
80
|
-
* Error when configuration validation fails (invalid YAML, schema mismatch)
|
|
81
|
-
*/
|
|
82
|
-
declare class ConfigValidationError extends ConfigValidationError_base<{
|
|
83
|
-
reason: string;
|
|
84
|
-
cause?: unknown;
|
|
85
|
-
}> {
|
|
86
|
-
}
|
|
87
|
-
declare const ConfigFileError_base: new <A extends Record<string, any> = {}>(args: effect_Types.Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => effect_Cause.YieldableError & {
|
|
88
|
-
readonly _tag: "ConfigFileError";
|
|
89
|
-
} & Readonly<A>;
|
|
90
|
-
/**
|
|
91
|
-
* Error when reading configuration from a file fails
|
|
51
|
+
* Provides configuration loading using native Node.js APIs (fs, fetch)
|
|
52
|
+
* This module doesn't require Effect Platform, making it work without Effect installed.
|
|
92
53
|
*/
|
|
93
|
-
declare class ConfigFileError extends ConfigFileError_base<{
|
|
94
|
-
reason: string;
|
|
95
|
-
cause?: unknown;
|
|
96
|
-
}> {
|
|
97
|
-
}
|
|
98
|
-
declare const ServiceDetectionError_base: new <A extends Record<string, any> = {}>(args: effect_Types.Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => effect_Cause.YieldableError & {
|
|
99
|
-
readonly _tag: "ServiceDetectionError";
|
|
100
|
-
} & Readonly<A>;
|
|
101
|
-
/**
|
|
102
|
-
* Error when service detection fails (package.json not found, invalid format)
|
|
103
|
-
*/
|
|
104
|
-
declare class ServiceDetectionError extends ServiceDetectionError_base<{
|
|
105
|
-
reason: string;
|
|
106
|
-
cause?: unknown;
|
|
107
|
-
}> {
|
|
108
|
-
}
|
|
109
|
-
declare const InitializationError_base: new <A extends Record<string, any> = {}>(args: effect_Types.Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => effect_Cause.YieldableError & {
|
|
110
|
-
readonly _tag: "InitializationError";
|
|
111
|
-
} & Readonly<A>;
|
|
112
|
-
/**
|
|
113
|
-
* Error when OpenTelemetry SDK initialization fails
|
|
114
|
-
*/
|
|
115
|
-
declare class InitializationError extends InitializationError_base<{
|
|
116
|
-
reason: string;
|
|
117
|
-
cause?: unknown;
|
|
118
|
-
}> {
|
|
119
|
-
}
|
|
120
|
-
declare const ExportError_base: new <A extends Record<string, any> = {}>(args: effect_Types.Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => effect_Cause.YieldableError & {
|
|
121
|
-
readonly _tag: "ExportError";
|
|
122
|
-
} & Readonly<A>;
|
|
123
|
-
/**
|
|
124
|
-
* Error when span export fails (e.g., ECONNREFUSED to collector)
|
|
125
|
-
*/
|
|
126
|
-
declare class ExportError extends ExportError_base<{
|
|
127
|
-
reason: string;
|
|
128
|
-
cause?: unknown;
|
|
129
|
-
}> {
|
|
130
|
-
}
|
|
131
|
-
declare const ShutdownError_base: new <A extends Record<string, any> = {}>(args: effect_Types.Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => effect_Cause.YieldableError & {
|
|
132
|
-
readonly _tag: "ShutdownError";
|
|
133
|
-
} & Readonly<A>;
|
|
134
|
-
/**
|
|
135
|
-
* Error when shutting down the SDK fails
|
|
136
|
-
*/
|
|
137
|
-
declare class ShutdownError extends ShutdownError_base<{
|
|
138
|
-
reason: string;
|
|
139
|
-
cause?: unknown;
|
|
140
|
-
}> {
|
|
141
|
-
}
|
|
142
54
|
|
|
143
55
|
/**
|
|
144
|
-
*
|
|
145
|
-
*
|
|
146
|
-
* Provides FileSystem and HttpClient layers for the core ConfigLoader service
|
|
147
|
-
*/
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* Reset the cached loader (for testing purposes)
|
|
151
|
-
* @internal
|
|
152
|
-
*/
|
|
153
|
-
declare function _resetConfigLoaderCache(): void;
|
|
154
|
-
/**
|
|
155
|
-
* Load configuration from URI (Promise-based convenience API)
|
|
156
|
-
*
|
|
157
|
-
* Automatically provides Node.js platform layers (FileSystem + HttpClient)
|
|
56
|
+
* Load configuration from URI (file path or URL)
|
|
158
57
|
*
|
|
159
58
|
* @param uri - Configuration URI (file://, http://, https://, or relative path)
|
|
160
|
-
* @param options - Optional loading options (e.g., to disable caching)
|
|
161
59
|
* @returns Promise that resolves to validated configuration
|
|
162
60
|
*/
|
|
163
|
-
declare function loadConfig(uri: string,
|
|
61
|
+
declare function loadConfig(uri: string, _options?: {
|
|
164
62
|
cacheTimeout?: number;
|
|
165
63
|
}): Promise<InstrumentationConfig>;
|
|
166
64
|
/**
|
|
167
|
-
* Load configuration from inline content
|
|
65
|
+
* Load configuration from inline content
|
|
168
66
|
*
|
|
169
67
|
* @param content - YAML string, JSON string, or plain object
|
|
170
68
|
* @returns Promise that resolves to validated configuration
|
|
171
69
|
*/
|
|
172
70
|
declare function loadConfigFromInline(content: string | unknown): Promise<InstrumentationConfig>;
|
|
71
|
+
/**
|
|
72
|
+
* Reset the config loader cache (no-op for native implementation)
|
|
73
|
+
* @internal
|
|
74
|
+
*/
|
|
75
|
+
declare function _resetConfigLoaderCache(): void;
|
|
173
76
|
/**
|
|
174
77
|
* Legacy options interface for backward compatibility
|
|
175
78
|
*/
|
|
@@ -305,6 +208,101 @@ declare function shutdownSdk(): Promise<void>;
|
|
|
305
208
|
*/
|
|
306
209
|
declare function resetSdk(): void;
|
|
307
210
|
|
|
211
|
+
/**
|
|
212
|
+
* Typed error hierarchy for @atrim/instrumentation
|
|
213
|
+
*
|
|
214
|
+
* These errors use Effect's Data.TaggedError for typed error handling
|
|
215
|
+
* with proper discriminated unions.
|
|
216
|
+
*/
|
|
217
|
+
declare const ConfigError_base: new <A extends Record<string, any> = {}>(args: effect_Types.Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => effect_Cause.YieldableError & {
|
|
218
|
+
readonly _tag: "ConfigError";
|
|
219
|
+
} & Readonly<A>;
|
|
220
|
+
/**
|
|
221
|
+
* Base error for configuration-related failures
|
|
222
|
+
*/
|
|
223
|
+
declare class ConfigError extends ConfigError_base<{
|
|
224
|
+
reason: string;
|
|
225
|
+
cause?: unknown;
|
|
226
|
+
}> {
|
|
227
|
+
}
|
|
228
|
+
declare const ConfigUrlError_base: new <A extends Record<string, any> = {}>(args: effect_Types.Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => effect_Cause.YieldableError & {
|
|
229
|
+
readonly _tag: "ConfigUrlError";
|
|
230
|
+
} & Readonly<A>;
|
|
231
|
+
/**
|
|
232
|
+
* Error when fetching configuration from a URL fails
|
|
233
|
+
*/
|
|
234
|
+
declare class ConfigUrlError extends ConfigUrlError_base<{
|
|
235
|
+
reason: string;
|
|
236
|
+
cause?: unknown;
|
|
237
|
+
}> {
|
|
238
|
+
}
|
|
239
|
+
declare const ConfigValidationError_base: new <A extends Record<string, any> = {}>(args: effect_Types.Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => effect_Cause.YieldableError & {
|
|
240
|
+
readonly _tag: "ConfigValidationError";
|
|
241
|
+
} & Readonly<A>;
|
|
242
|
+
/**
|
|
243
|
+
* Error when configuration validation fails (invalid YAML, schema mismatch)
|
|
244
|
+
*/
|
|
245
|
+
declare class ConfigValidationError extends ConfigValidationError_base<{
|
|
246
|
+
reason: string;
|
|
247
|
+
cause?: unknown;
|
|
248
|
+
}> {
|
|
249
|
+
}
|
|
250
|
+
declare const ConfigFileError_base: new <A extends Record<string, any> = {}>(args: effect_Types.Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => effect_Cause.YieldableError & {
|
|
251
|
+
readonly _tag: "ConfigFileError";
|
|
252
|
+
} & Readonly<A>;
|
|
253
|
+
/**
|
|
254
|
+
* Error when reading configuration from a file fails
|
|
255
|
+
*/
|
|
256
|
+
declare class ConfigFileError extends ConfigFileError_base<{
|
|
257
|
+
reason: string;
|
|
258
|
+
cause?: unknown;
|
|
259
|
+
}> {
|
|
260
|
+
}
|
|
261
|
+
declare const ServiceDetectionError_base: new <A extends Record<string, any> = {}>(args: effect_Types.Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => effect_Cause.YieldableError & {
|
|
262
|
+
readonly _tag: "ServiceDetectionError";
|
|
263
|
+
} & Readonly<A>;
|
|
264
|
+
/**
|
|
265
|
+
* Error when service detection fails (package.json not found, invalid format)
|
|
266
|
+
*/
|
|
267
|
+
declare class ServiceDetectionError extends ServiceDetectionError_base<{
|
|
268
|
+
reason: string;
|
|
269
|
+
cause?: unknown;
|
|
270
|
+
}> {
|
|
271
|
+
}
|
|
272
|
+
declare const InitializationError_base: new <A extends Record<string, any> = {}>(args: effect_Types.Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => effect_Cause.YieldableError & {
|
|
273
|
+
readonly _tag: "InitializationError";
|
|
274
|
+
} & Readonly<A>;
|
|
275
|
+
/**
|
|
276
|
+
* Error when OpenTelemetry SDK initialization fails
|
|
277
|
+
*/
|
|
278
|
+
declare class InitializationError extends InitializationError_base<{
|
|
279
|
+
reason: string;
|
|
280
|
+
cause?: unknown;
|
|
281
|
+
}> {
|
|
282
|
+
}
|
|
283
|
+
declare const ExportError_base: new <A extends Record<string, any> = {}>(args: effect_Types.Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => effect_Cause.YieldableError & {
|
|
284
|
+
readonly _tag: "ExportError";
|
|
285
|
+
} & Readonly<A>;
|
|
286
|
+
/**
|
|
287
|
+
* Error when span export fails (e.g., ECONNREFUSED to collector)
|
|
288
|
+
*/
|
|
289
|
+
declare class ExportError extends ExportError_base<{
|
|
290
|
+
reason: string;
|
|
291
|
+
cause?: unknown;
|
|
292
|
+
}> {
|
|
293
|
+
}
|
|
294
|
+
declare const ShutdownError_base: new <A extends Record<string, any> = {}>(args: effect_Types.Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => effect_Cause.YieldableError & {
|
|
295
|
+
readonly _tag: "ShutdownError";
|
|
296
|
+
} & Readonly<A>;
|
|
297
|
+
/**
|
|
298
|
+
* Error when shutting down the SDK fails
|
|
299
|
+
*/
|
|
300
|
+
declare class ShutdownError extends ShutdownError_base<{
|
|
301
|
+
reason: string;
|
|
302
|
+
cause?: unknown;
|
|
303
|
+
}> {
|
|
304
|
+
}
|
|
305
|
+
|
|
308
306
|
/**
|
|
309
307
|
* Public API for standard OpenTelemetry usage
|
|
310
308
|
*
|
|
@@ -398,6 +396,17 @@ declare function resetSdk(): void;
|
|
|
398
396
|
* })
|
|
399
397
|
* ```
|
|
400
398
|
*/
|
|
399
|
+
declare function initializeInstrumentation(options?: SdkInitializationOptions): Promise<NodeSDK | null>;
|
|
400
|
+
/**
|
|
401
|
+
* Legacy initialization function for pattern-only mode
|
|
402
|
+
*
|
|
403
|
+
* This function only initializes pattern matching without setting up the NodeSDK.
|
|
404
|
+
* Use this if you want to manually configure OpenTelemetry while still using
|
|
405
|
+
* pattern-based filtering.
|
|
406
|
+
*
|
|
407
|
+
* @deprecated Use initializeInstrumentation() instead for complete setup
|
|
408
|
+
*/
|
|
409
|
+
declare function initializePatternMatchingOnly(options?: SdkInitializationOptions): Promise<void>;
|
|
401
410
|
/**
|
|
402
411
|
* Initialize OpenTelemetry instrumentation (Effect version)
|
|
403
412
|
*
|
|
@@ -410,14 +419,15 @@ declare function resetSdk(): void;
|
|
|
410
419
|
* @example
|
|
411
420
|
* ```typescript
|
|
412
421
|
* import { Effect } from 'effect'
|
|
413
|
-
* import {
|
|
422
|
+
* import { initializeInstrumentationEffect } from '@atrim/instrumentation'
|
|
423
|
+
*
|
|
424
|
+
* // Basic usage
|
|
425
|
+
* const program = initializeInstrumentationEffect()
|
|
414
426
|
*
|
|
415
|
-
* // Zero-config initialization (recommended)
|
|
416
|
-
* const program = initializeInstrumentation()
|
|
417
427
|
* await Effect.runPromise(program)
|
|
418
428
|
*
|
|
419
429
|
* // With error handling
|
|
420
|
-
* const program =
|
|
430
|
+
* const program = initializeInstrumentationEffect().pipe(
|
|
421
431
|
* Effect.catchTag('ConfigError', (error) => {
|
|
422
432
|
* console.error('Config error:', error.reason)
|
|
423
433
|
* return Effect.succeed(null)
|
|
@@ -428,16 +438,18 @@ declare function resetSdk(): void;
|
|
|
428
438
|
* })
|
|
429
439
|
* )
|
|
430
440
|
*
|
|
431
|
-
*
|
|
432
|
-
*
|
|
441
|
+
* await Effect.runPromise(program)
|
|
442
|
+
*
|
|
443
|
+
* // With custom options
|
|
444
|
+
* const program = initializeInstrumentationEffect({
|
|
433
445
|
* otlp: { endpoint: 'https://otel.company.com:4318' },
|
|
434
446
|
* serviceName: 'my-service'
|
|
435
447
|
* })
|
|
436
448
|
* ```
|
|
437
449
|
*/
|
|
438
|
-
declare const
|
|
450
|
+
declare const initializeInstrumentationEffect: (options?: SdkInitializationOptions) => Effect.Effect<NodeSDK | null, InitializationError | ConfigError>;
|
|
439
451
|
/**
|
|
440
|
-
* Initialize pattern matching only
|
|
452
|
+
* Initialize pattern matching only (Effect version)
|
|
441
453
|
*
|
|
442
454
|
* Use this if you want manual OpenTelemetry setup with pattern filtering.
|
|
443
455
|
*
|
|
@@ -447,9 +459,9 @@ declare const initializeInstrumentation: (options?: SdkInitializationOptions) =>
|
|
|
447
459
|
* @example
|
|
448
460
|
* ```typescript
|
|
449
461
|
* import { Effect } from 'effect'
|
|
450
|
-
* import {
|
|
462
|
+
* import { initializePatternMatchingOnlyEffect } from '@atrim/instrumentation'
|
|
451
463
|
*
|
|
452
|
-
* const program =
|
|
464
|
+
* const program = initializePatternMatchingOnlyEffect({
|
|
453
465
|
* configPath: './instrumentation.yaml'
|
|
454
466
|
* }).pipe(
|
|
455
467
|
* Effect.catchAll((error) => {
|
|
@@ -461,7 +473,7 @@ declare const initializeInstrumentation: (options?: SdkInitializationOptions) =>
|
|
|
461
473
|
* await Effect.runPromise(program)
|
|
462
474
|
* ```
|
|
463
475
|
*/
|
|
464
|
-
declare const
|
|
476
|
+
declare const initializePatternMatchingOnlyEffect: (options?: SdkInitializationOptions) => Effect.Effect<void, ConfigError>;
|
|
465
477
|
|
|
466
478
|
/**
|
|
467
479
|
* Service Detection Utilities
|
|
@@ -508,6 +520,25 @@ declare const getServiceVersion: Effect.Effect<string | undefined, never>;
|
|
|
508
520
|
* Never fails - returns default ServiceInfo if detection fails
|
|
509
521
|
*/
|
|
510
522
|
declare const getServiceInfoWithFallback: Effect.Effect<ServiceInfo, never>;
|
|
523
|
+
/**
|
|
524
|
+
* Detect service name and version (Promise version)
|
|
525
|
+
*
|
|
526
|
+
* @deprecated Use `detectServiceInfo` Effect API for better error handling
|
|
527
|
+
* @returns Promise that resolves to ServiceInfo with fallback
|
|
528
|
+
*/
|
|
529
|
+
declare function detectServiceInfoAsync(): Promise<ServiceInfo>;
|
|
530
|
+
/**
|
|
531
|
+
* Get service name with fallback (Promise version)
|
|
532
|
+
*
|
|
533
|
+
* @deprecated Use `getServiceName` Effect API
|
|
534
|
+
*/
|
|
535
|
+
declare function getServiceNameAsync(): Promise<string>;
|
|
536
|
+
/**
|
|
537
|
+
* Get service version if available (Promise version)
|
|
538
|
+
*
|
|
539
|
+
* @deprecated Use `getServiceVersion` Effect API
|
|
540
|
+
*/
|
|
541
|
+
declare function getServiceVersionAsync(): Promise<string | undefined>;
|
|
511
542
|
|
|
512
543
|
/**
|
|
513
544
|
* OpenTelemetry SpanProcessor for pattern-based filtering
|
|
@@ -515,6 +546,10 @@ declare const getServiceInfoWithFallback: Effect.Effect<ServiceInfo, never>;
|
|
|
515
546
|
* This processor filters spans based on configured patterns before they are exported.
|
|
516
547
|
* It wraps another processor (typically BatchSpanProcessor) and only forwards spans
|
|
517
548
|
* that match the instrumentation patterns.
|
|
549
|
+
*
|
|
550
|
+
* Filtering is applied at two levels:
|
|
551
|
+
* 1. Span name patterns (instrument_patterns / ignore_patterns)
|
|
552
|
+
* 2. HTTP path patterns (http.ignore_incoming_paths) - for HTTP spans
|
|
518
553
|
*/
|
|
519
554
|
|
|
520
555
|
/**
|
|
@@ -537,6 +572,7 @@ declare const getServiceInfoWithFallback: Effect.Effect<ServiceInfo, never>;
|
|
|
537
572
|
declare class PatternSpanProcessor implements SpanProcessor {
|
|
538
573
|
private matcher;
|
|
539
574
|
private wrappedProcessor;
|
|
575
|
+
private httpIgnorePatterns;
|
|
540
576
|
constructor(config: InstrumentationConfig, wrappedProcessor: SpanProcessor);
|
|
541
577
|
/**
|
|
542
578
|
* Called when a span is started
|
|
@@ -549,8 +585,20 @@ declare class PatternSpanProcessor implements SpanProcessor {
|
|
|
549
585
|
* Called when a span is ended
|
|
550
586
|
*
|
|
551
587
|
* This is where we make the final decision on whether to export the span.
|
|
588
|
+
* We check both span name patterns and HTTP path patterns.
|
|
552
589
|
*/
|
|
553
590
|
onEnd(span: ReadableSpan): void;
|
|
591
|
+
/**
|
|
592
|
+
* Check if span should be ignored based on HTTP path attributes
|
|
593
|
+
*
|
|
594
|
+
* This checks the span's url.path, http.route, or http.target attributes
|
|
595
|
+
* against the configured http.ignore_incoming_paths patterns.
|
|
596
|
+
*
|
|
597
|
+
* This enables filtering of Effect HTTP spans (and any other HTTP spans)
|
|
598
|
+
* based on path patterns, which is essential for filtering out OTLP
|
|
599
|
+
* endpoint requests like /v1/traces, /v1/logs, /v1/metrics.
|
|
600
|
+
*/
|
|
601
|
+
private shouldIgnoreHttpSpan;
|
|
554
602
|
/**
|
|
555
603
|
* Shutdown the processor
|
|
556
604
|
*/
|
|
@@ -620,4 +668,4 @@ declare function annotateCacheOperation(span: Span$1, operation: 'get' | 'set' |
|
|
|
620
668
|
*/
|
|
621
669
|
declare function suppressShutdownErrors(): void;
|
|
622
670
|
|
|
623
|
-
export { ConfigError, ConfigFileError, type ConfigLoaderOptions, ConfigUrlError, ConfigValidationError, ExportError, InitializationError, type OtlpExporterOptions, PatternSpanProcessor, type SdkInitializationOptions, ServiceDetectionError, type ServiceInfo, ShutdownError, annotateCacheOperation, annotateDbQuery, annotateHttpRequest, _resetConfigLoaderCache as clearConfigCache, createOtlpExporter, detectServiceInfo, getOtlpEndpoint, getSdkInstance, getServiceInfoWithFallback, getServiceName, getServiceVersion, initializeInstrumentation, initializePatternMatchingOnly, loadConfig, loadConfigFromInline, loadConfigWithOptions, markSpanError, markSpanSuccess, recordException, resetSdk, setSpanAttributes, shutdownSdk, suppressShutdownErrors };
|
|
671
|
+
export { ConfigError, ConfigFileError, type ConfigLoaderOptions, ConfigUrlError, ConfigValidationError, ExportError, InitializationError, type OtlpExporterOptions, PatternSpanProcessor, type SdkInitializationOptions, ServiceDetectionError, type ServiceInfo, ShutdownError, annotateCacheOperation, annotateDbQuery, annotateHttpRequest, _resetConfigLoaderCache as clearConfigCache, createOtlpExporter, detectServiceInfoAsync as detectServiceInfo, detectServiceInfo as detectServiceInfoEffect, getOtlpEndpoint, getSdkInstance, getServiceInfoWithFallback, getServiceNameAsync as getServiceName, getServiceName as getServiceNameEffect, getServiceVersionAsync as getServiceVersion, getServiceVersion as getServiceVersionEffect, initializeInstrumentation, initializeInstrumentationEffect, initializePatternMatchingOnly, initializePatternMatchingOnlyEffect, loadConfig, loadConfigFromInline, loadConfigWithOptions, markSpanError, markSpanSuccess, recordException, resetSdk, setSpanAttributes, shutdownSdk, suppressShutdownErrors };
|