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
MetricAutoObserver
forRootAsync
Hi, thanks for making this amazing library.
It was working perfectly when I register module using the 'forRoot' but if I change to 'forRootAsync', it doesn't. Anyone knows the reason for this?
Here's the code I used.
OpenTelemetryModule.forRootAsync({ imports: [], useFactory: () => ({ applicationName: "helloworld", metricAutoObservers: [ HttpRequestDurationSeconds.build({ // unit is milliseconds, 0.1 seconds ~ 8 seconds. boundaries: [100, 300, 500, 1000, 2000, 4000, 8000], }), ActiveHandlesMetric, ], metricExporter: new PrometheusExporter({ endpoint: "metrics", port: 9464, }), metricInterval: 1000, }), }),
Thanks in advance!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi, thanks for making this amazing library.
It was working perfectly when I register module using the 'forRoot' but if I change to 'forRootAsync', it doesn't. Anyone knows the reason for this?
Here's the code I used.
Thanks in advance!
The text was updated successfully, but these errors were encountered: