You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds `addOpenTelemetryInstrumentation`, a helper that can be used to
dynamically register OpenTelemetry instrumentation. This helps unblock
work on #11548
The helper itself is quite small:
```ts
export function addOpenTelemetryInstrumentation(
instrumentation: InstrumentationOption | InstrumentationOption[],
): void {
registerInstrumentations({
instrumentations: Array.isArray(instrumentation) ? instrumentation : [instrumentation],
});
}
```
and is designed to accept either a standalone instrumentation or an
array of instrumentations. This gives users a ton of flexibility into
usage!
0 commit comments