@atrim/instrument-node 0.7.0-b9eaf74-20260108193056 → 0.7.1-dev.14fdea7.20260108220010
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/package.json +1 -1
- package/target/dist/index.cjs +24 -1
- package/target/dist/index.cjs.map +1 -1
- package/target/dist/index.js +24 -1
- package/target/dist/index.js.map +1 -1
- package/target/dist/integrations/effect/auto/index.cjs +203 -9
- package/target/dist/integrations/effect/auto/index.cjs.map +1 -1
- package/target/dist/integrations/effect/auto/index.d.cts +83 -2
- package/target/dist/integrations/effect/auto/index.d.ts +83 -2
- package/target/dist/integrations/effect/auto/index.js +201 -10
- package/target/dist/integrations/effect/auto/index.js.map +1 -1
- package/target/dist/integrations/effect/index.cjs +24 -1
- package/target/dist/integrations/effect/index.cjs.map +1 -1
- package/target/dist/integrations/effect/index.js +24 -1
- package/target/dist/integrations/effect/index.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atrim/instrument-node",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1-dev.14fdea7.20260108220010",
|
|
4
4
|
"description": "OpenTelemetry instrumentation for Node.js with centralized YAML configuration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
package/target/dist/index.cjs
CHANGED
|
@@ -160,6 +160,27 @@ var HttpFilteringConfigSchema = zod.z.object({
|
|
|
160
160
|
include_urls: zod.z.array(zod.z.string()).optional()
|
|
161
161
|
}).optional()
|
|
162
162
|
});
|
|
163
|
+
var ExporterConfigSchema = zod.z.object({
|
|
164
|
+
// Exporter type: 'otlp' | 'console' | 'none'
|
|
165
|
+
// - 'otlp': Export to OTLP endpoint (production)
|
|
166
|
+
// - 'console': Log spans to console (development)
|
|
167
|
+
// - 'none': No export (disable tracing)
|
|
168
|
+
type: zod.z.enum(["otlp", "console", "none"]).default("otlp"),
|
|
169
|
+
// OTLP endpoint URL (for type: otlp)
|
|
170
|
+
// Defaults to OTEL_EXPORTER_OTLP_ENDPOINT env var or http://localhost:4318
|
|
171
|
+
endpoint: zod.z.string().optional(),
|
|
172
|
+
// Span processor type
|
|
173
|
+
// - 'batch': Batch spans for export (production, lower overhead)
|
|
174
|
+
// - 'simple': Export immediately (development, no batching delay)
|
|
175
|
+
processor: zod.z.enum(["batch", "simple"]).default("batch"),
|
|
176
|
+
// Batch processor settings (for processor: batch)
|
|
177
|
+
batch: zod.z.object({
|
|
178
|
+
// Max time to wait before exporting (milliseconds)
|
|
179
|
+
scheduled_delay_millis: zod.z.number().default(1e3),
|
|
180
|
+
// Max batch size
|
|
181
|
+
max_export_batch_size: zod.z.number().default(100)
|
|
182
|
+
}).optional()
|
|
183
|
+
});
|
|
163
184
|
var InstrumentationConfigSchema = zod.z.object({
|
|
164
185
|
version: zod.z.string(),
|
|
165
186
|
instrumentation: zod.z.object({
|
|
@@ -173,10 +194,12 @@ var InstrumentationConfigSchema = zod.z.object({
|
|
|
173
194
|
// Enable/disable Effect tracing entirely
|
|
174
195
|
// When false, EffectInstrumentationLive returns Layer.empty
|
|
175
196
|
enabled: zod.z.boolean().default(true),
|
|
176
|
-
// Exporter mode:
|
|
197
|
+
// Exporter mode (legacy - use exporter.type instead):
|
|
177
198
|
// - "unified": Use global TracerProvider from Node SDK (recommended, enables filtering)
|
|
178
199
|
// - "standalone": Use Effect's own OTLP exporter (bypasses Node SDK filtering)
|
|
179
200
|
exporter: zod.z.enum(["unified", "standalone"]).default("unified"),
|
|
201
|
+
// Exporter configuration (for auto-instrumentation)
|
|
202
|
+
exporter_config: ExporterConfigSchema.optional(),
|
|
180
203
|
auto_extract_metadata: zod.z.boolean(),
|
|
181
204
|
auto_isolation: AutoIsolationConfigSchema.optional(),
|
|
182
205
|
// Auto-instrumentation: automatic tracing of all Effect fibers
|