We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
I search since few days how to disable http instrumentation but without success.
Do you have an idea to do this ?
I've try to :
instrumentations
new HttpInstrumentation({ enabled: false })
This is my current module configuration
... return { module: TelemetryModule, exports: [TelemetryService], imports: [ OpenTelemetryModule.forRoot({ applicationName: options.applicationName, spanProcessor: new BatchSpanProcessor( getSpanExporter(options.transport), ) as any, resource: new Resource({ [SemanticResourceAttributes.SERVICE_NAME]: options.serviceName, }) as any, traceAutoInjectors: [ ControllerInjector, GuardInjector, EventEmitterInjector, ScheduleInjector, PipeInjector, ResolverInjector, TelemetryInjector, ], metricAutoObservers: [ GqlIncomingRequestCounterMetric, HttpIncomingRequestMetric, ], }), ], providers: [ { provide: TelemetryConstants.TELEMETRY_CONFIGURATION, useValue: options, }, { provide: TelemetryService, useClass: TelemetryOpenTelemetryService, }, { provide: APP_INTERCEPTOR, useClass: HttpFastifyAdapterInterceptor, }, { provide: APP_INTERCEPTOR, useClass: GraphqlInterceptor, }, { provide: APP_INTERCEPTOR, useClass: HttpInterceptor, }, ], };
Thx !
The text was updated successfully, but these errors were encountered:
I suggest upgrade nestjs and library version
Sorry, something went wrong.
No branches or pull requests
Hi,
I search since few days how to disable http instrumentation but without success.
Do you have an idea to do this ?
I've try to :
instrumentations
array in module configurationnew HttpInstrumentation({ enabled: false })
in theinstrumentations
arrayThis is my current module configuration
Thx !
The text was updated successfully, but these errors were encountered: