@atrim/instrument-node 0.9.1-dev.6bfb5ec.20260120022327 → 0.10.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.
@@ -2,6 +2,7 @@ import { Data, Context, Effect, Layer } from 'effect';
2
2
  import { NodeSDK } from '@opentelemetry/sdk-node';
3
3
  import { SimpleSpanProcessor, BatchSpanProcessor } from '@opentelemetry/sdk-trace-base';
4
4
  import { getNodeAutoInstrumentations } from '@opentelemetry/auto-instrumentations-node';
5
+ import { FastifyInstrumentation } from '@opentelemetry/instrumentation-fastify';
5
6
  import { trace } from '@opentelemetry/api';
6
7
  import { FileSystem } from '@effect/platform/FileSystem';
7
8
  import * as HttpClient from '@effect/platform/HttpClient';
@@ -1140,13 +1141,13 @@ async function performInitialization(options) {
1140
1141
  "@opentelemetry/instrumentation-undici": undiciConfig,
1141
1142
  // Enable web framework instrumentations
1142
1143
  "@opentelemetry/instrumentation-express": { enabled: true },
1143
- "@opentelemetry/instrumentation-fastify": { enabled: true },
1144
1144
  "@opentelemetry/instrumentation-koa": { enabled: true },
1145
1145
  // Disable noisy instrumentations by default
1146
1146
  "@opentelemetry/instrumentation-fs": { enabled: false },
1147
1147
  "@opentelemetry/instrumentation-dns": { enabled: false }
1148
1148
  })
1149
1149
  );
1150
+ instrumentations.push(new FastifyInstrumentation());
1150
1151
  logger.log(`Auto-instrumentation: ${instrumentations.length} instrumentations enabled`);
1151
1152
  }
1152
1153
  if (options.instrumentations) {