@tramvai/module-opentelemetry 6.78.0 → 6.79.0
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
|
-
:
|
|
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
|
-
:
|
|
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.
|
|
3
|
+
"version": "6.79.0",
|
|
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.
|
|
33
|
-
"@tramvai/tokens-common": "6.
|
|
34
|
-
"@tramvai/tokens-http-client": "6.
|
|
35
|
-
"@tramvai/tokens-metrics": "6.
|
|
36
|
-
"@tramvai/tokens-render": "6.
|
|
37
|
-
"@tramvai/tokens-router": "6.
|
|
38
|
-
"@tramvai/tokens-server": "6.
|
|
39
|
-
"@tramvai/tokens-server-private": "6.
|
|
32
|
+
"@tramvai/tokens-child-app": "6.79.0",
|
|
33
|
+
"@tramvai/tokens-common": "6.79.0",
|
|
34
|
+
"@tramvai/tokens-http-client": "6.79.0",
|
|
35
|
+
"@tramvai/tokens-metrics": "6.79.0",
|
|
36
|
+
"@tramvai/tokens-render": "6.79.0",
|
|
37
|
+
"@tramvai/tokens-router": "6.79.0",
|
|
38
|
+
"@tramvai/tokens-server": "6.79.0",
|
|
39
|
+
"@tramvai/tokens-server-private": "6.79.0",
|
|
40
40
|
"path-to-regexp": "^0.1.12"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"@tinkoff/dippy": "0.12.6",
|
|
44
|
-
"@tramvai/core": "6.
|
|
44
|
+
"@tramvai/core": "6.79.0",
|
|
45
45
|
"tslib": "^2.4.0"
|
|
46
46
|
}
|
|
47
47
|
}
|