@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 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/open-telemetry)
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 otelConfigProvider = this.app.config.get('otel', {});
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
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@adonisjs/otel",
3
3
  "description": "OpenTelemetry integration for AdonisJS with sensible defaults and zero-config setup",
4
- "version": "1.2.1",
4
+ "version": "1.2.2",
5
5
  "engines": {
6
6
  "node": ">=20.6.0"
7
7
  },