Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
switch type
  • Loading branch information
AbhiPrasad committed Jun 6, 2024
commit 661d0ede72b7d5cebde987599403ff31864c20ac
4 changes: 2 additions & 2 deletions packages/opentelemetry/src/instrumentation.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import type { InstrumentationOption } from '@opentelemetry/instrumentation';
import type { Instrumentation } from '@opentelemetry/instrumentation';
import { registerInstrumentations } from '@opentelemetry/instrumentation';

/**
* This method takes an OpenTelemetry instrumentation or
* array of instrumentations and registers them with OpenTelemetry.
*/
export function addOpenTelemetryInstrumentation(...instrumentations: InstrumentationOption[]): void {
export function addOpenTelemetryInstrumentation(...instrumentations: Instrumentation[]): void {
registerInstrumentations({
instrumentations,
});
Expand Down