@tramvai/module-opentelemetry 6.77.3 → 6.78.1

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.
@@ -30,7 +30,8 @@ const providers = [
30
30
  // todo useful because always get `*`, rewrite with tramvai router route?
31
31
  const httpRoute = req.routeOptions?.url
32
32
  ? req.routeOptions.url // since fastify@4.10.0
33
- : req.routerPath;
33
+ : // @ts-ignore
34
+ req.routerPath;
34
35
  const parsedUrl = new URL(`http://localhost${req.url}`);
35
36
  // https://github.com/open-telemetry/semantic-conventions/blob/main/docs/http/http-spans.md#name
36
37
  tracer.startActiveSpan(`${httpMethod} ${httpRoute === '*' ? 'APP' : httpRoute}`,
@@ -39,7 +39,8 @@ const providers = [
39
39
  // todo useful because always get `*`, rewrite with tramvai router route?
40
40
  const httpRoute = req.routeOptions?.url
41
41
  ? req.routeOptions.url // since fastify@4.10.0
42
- : req.routerPath;
42
+ : // @ts-ignore
43
+ req.routerPath;
43
44
  const parsedUrl = new URL(`http://localhost${req.url}`);
44
45
  // https://github.com/open-telemetry/semantic-conventions/blob/main/docs/http/http-spans.md#name
45
46
  tracer.startActiveSpan(`${httpMethod} ${httpRoute === '*' ? 'APP' : httpRoute}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/module-opentelemetry",
3
- "version": "6.77.3",
3
+ "version": "6.78.1",
4
4
  "description": "Интеграция OpenTelemetry",
5
5
  "browser": "lib/browser.js",
6
6
  "main": "lib/server.js",
@@ -29,19 +29,19 @@
29
29
  "@opentelemetry/semantic-conventions": "^1.28.0",
30
30
  "@tinkoff/errors": "0.7.2",
31
31
  "@tinkoff/utils": "^2.1.2",
32
- "@tramvai/tokens-child-app": "6.77.3",
33
- "@tramvai/tokens-common": "6.77.3",
34
- "@tramvai/tokens-http-client": "6.77.3",
35
- "@tramvai/tokens-metrics": "6.77.3",
36
- "@tramvai/tokens-render": "6.77.3",
37
- "@tramvai/tokens-router": "6.77.3",
38
- "@tramvai/tokens-server": "6.77.3",
39
- "@tramvai/tokens-server-private": "6.77.3",
32
+ "@tramvai/tokens-child-app": "6.78.1",
33
+ "@tramvai/tokens-common": "6.78.1",
34
+ "@tramvai/tokens-http-client": "6.78.1",
35
+ "@tramvai/tokens-metrics": "6.78.1",
36
+ "@tramvai/tokens-render": "6.78.1",
37
+ "@tramvai/tokens-router": "6.78.1",
38
+ "@tramvai/tokens-server": "6.78.1",
39
+ "@tramvai/tokens-server-private": "6.78.1",
40
40
  "path-to-regexp": "^0.1.12"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "@tinkoff/dippy": "0.12.6",
44
- "@tramvai/core": "6.77.3",
44
+ "@tramvai/core": "6.78.1",
45
45
  "tslib": "^2.4.0"
46
46
  }
47
47
  }