Nestjs-OpenTelemetry icon indicating copy to clipboard operation
Nestjs-OpenTelemetry copied to clipboard

ERROR [ExceptionHandler] Nest can't resolve dependencies of the SDK_INJECTORS (OPEN_TELEMETRY_SDK_CONFIG, ?)

Open mapb1990 opened this issue 1 year ago • 2 comments

The follow error is thrown when start nestjs app:

[Nest] 16239  - 07/18/2023, 3:15:28 PM   ERROR [ExceptionHandler] Nest can't resolve dependencies of the SDK_INJECTORS (OPEN_TELEMETRY_SDK_CONFIG, ?). Please make sure that the argument ModuleRef at index [1] is available in the OpenTelemetryModule context.

Potential solutions:
- Is OpenTelemetryModule a valid NestJS module?
- If ModuleRef is a provider, is it part of the current OpenTelemetryModule?
- If ModuleRef is exported from a separate @Module, is that module imported within OpenTelemetryModule?
  @Module({
    imports: [ /* the Module containing ModuleRef */ ]
  })


Error: Nest can't resolve dependencies of the SDK_INJECTORS (OPEN_TELEMETRY_SDK_CONFIG, ?). Please make sure that the argument ModuleRef at index [1] is available in the OpenTelemetryModule context.

Potential solutions:
- Is OpenTelemetryModule a valid NestJS module?
- If ModuleRef is a provider, is it part of the current OpenTelemetryModule?
- If ModuleRef is exported from a separate @Module, is that module imported within OpenTelemetryModule?
  @Module({
    imports: [ /* the Module containing ModuleRef */ ]
  })

I'm using NestJS v10.

mapb1990 avatar Jul 18 '23 14:07 mapb1990

this package is not support nest v10 You can use my version: https://github.com/Yuuki-Sakura/nestjs-open-telemetry

Yuuki-Sakura avatar Jul 20 '23 02:07 Yuuki-Sakura

same, @Yuuki-Sakura your package is 47 commits behind?

iamkhalidbashir avatar Aug 16 '23 18:08 iamkhalidbashir