@adonisjs/otel 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/build/providers/otel_provider.js +1 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ OpenTelemetry integration for AdonisJS with sensible defaults and zero-config se
|
|
|
10
10
|
|
|
11
11
|
## Official Documentation
|
|
12
12
|
|
|
13
|
-
The documentation is available on the [AdonisJS website](https://docs.adonisjs.com/guides/digging-deeper/
|
|
13
|
+
The documentation is available on the [AdonisJS website](https://docs.adonisjs.com/guides/digging-deeper/opentelemetry)
|
|
14
14
|
|
|
15
15
|
## Contributing
|
|
16
16
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { SpanStatusCode } from '@opentelemetry/api';
|
|
2
|
-
import { configProvider } from '@adonisjs/core';
|
|
3
2
|
import { ExceptionHandler } from '@adonisjs/core/http';
|
|
4
3
|
import { getCurrentSpan } from '../src/helpers.js';
|
|
5
4
|
import OtelMiddleware from '../src/middleware/otel_middleware.js';
|
|
@@ -32,8 +31,7 @@ export default class OtelProvider {
|
|
|
32
31
|
*/
|
|
33
32
|
#registerMiddleware() {
|
|
34
33
|
this.app.container.singleton(OtelMiddleware, async () => {
|
|
35
|
-
const
|
|
36
|
-
const config = await configProvider.resolve(this.app, otelConfigProvider);
|
|
34
|
+
const config = this.app.config.get('otel', {});
|
|
37
35
|
return new OtelMiddleware({ userContext: config?.userContext });
|
|
38
36
|
});
|
|
39
37
|
}
|