@inference-net/otel-cf-workers 2.0.0 → 2.0.1
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/dist/index.d.ts +2 -0
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -244,6 +244,7 @@ export declare interface LogsConfig {
|
|
|
244
244
|
transports?: LogTransport[];
|
|
245
245
|
batching?: BatchConfig;
|
|
246
246
|
instrumentation?: LogsInstrumentationOptions;
|
|
247
|
+
level?: 'trace' | 'debug' | 'info' | 'warn' | 'error' | 'fatal';
|
|
247
248
|
}
|
|
248
249
|
|
|
249
250
|
export declare interface LogsInstrumentationOptions {
|
|
@@ -354,6 +355,7 @@ export declare type ResolveConfigFn<Env = any> = (env: Env, trigger: Trigger) =>
|
|
|
354
355
|
export declare interface ResolvedLogsConfig {
|
|
355
356
|
processors: LogRecordProcessor[];
|
|
356
357
|
instrumentation: LogsInstrumentationOptions;
|
|
358
|
+
level: 'trace' | 'debug' | 'info' | 'warn' | 'error' | 'fatal';
|
|
357
359
|
}
|
|
358
360
|
|
|
359
361
|
export declare interface ResolvedTraceConfig extends TraceConfigBase {
|
package/dist/index.js
CHANGED
|
@@ -96,7 +96,7 @@ function passthroughGet(target, prop, thisArg) {
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
const PACKAGE_VERSION = "2.0.
|
|
99
|
+
const PACKAGE_VERSION = "2.0.1";
|
|
100
100
|
const PACKAGE_NAME = "@inference-net/otel-cf-workers";
|
|
101
101
|
const ATTR_CLOUDFLARE_COLO = "cloudflare.colo";
|
|
102
102
|
const ATTR_CLOUDFLARE_RAY_ID = "cloudflare.ray_id";
|
|
@@ -596,7 +596,8 @@ function parseLogsConfig(supplied) {
|
|
|
596
596
|
processors,
|
|
597
597
|
instrumentation: {
|
|
598
598
|
instrumentConsole: supplied.instrumentation?.instrumentConsole ?? false
|
|
599
|
-
}
|
|
599
|
+
},
|
|
600
|
+
level: supplied.level ?? "info"
|
|
600
601
|
};
|
|
601
602
|
}
|
|
602
603
|
|