@tramvai/module-opentelemetry 6.63.1 → 6.65.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.
|
@@ -32,11 +32,8 @@ const providers = [
|
|
|
32
32
|
// https://github.com/open-telemetry/semantic-conventions/blob/main/docs/http/http-spans.md#http-client
|
|
33
33
|
return tracer.trace(`${method} ${serviceName}`, { kind: SpanKind.CLIENT }, (span) => {
|
|
34
34
|
// todo: move custom tramvai attrs to constants
|
|
35
|
-
/**
|
|
36
|
-
* - `tramvai.http-client.transport` - internal HTTP client, `node-fetch` at server-side (possible `undici` in future), `fetch` at client-side
|
|
37
|
-
*/
|
|
38
35
|
span.setAttribute('tramvai.scope', 'http-client');
|
|
39
|
-
span.setAttribute('tramvai.http-client.transport', '
|
|
36
|
+
span.setAttribute('tramvai.http-client.transport', 'undici');
|
|
40
37
|
span.setAttribute(ATTR_HTTP_REQUEST_METHOD, method);
|
|
41
38
|
span.setAttribute(ATTR_SERVER_ADDRESS, parsedUrl.hostname);
|
|
42
39
|
span.setAttribute(ATTR_URL_PATH, parsedUrl.pathname);
|
|
@@ -36,11 +36,8 @@ const providers = [
|
|
|
36
36
|
// https://github.com/open-telemetry/semantic-conventions/blob/main/docs/http/http-spans.md#http-client
|
|
37
37
|
return tracer.trace(`${method} ${serviceName}`, { kind: api.SpanKind.CLIENT }, (span) => {
|
|
38
38
|
// todo: move custom tramvai attrs to constants
|
|
39
|
-
/**
|
|
40
|
-
* - `tramvai.http-client.transport` - internal HTTP client, `node-fetch` at server-side (possible `undici` in future), `fetch` at client-side
|
|
41
|
-
*/
|
|
42
39
|
span.setAttribute('tramvai.scope', 'http-client');
|
|
43
|
-
span.setAttribute('tramvai.http-client.transport', '
|
|
40
|
+
span.setAttribute('tramvai.http-client.transport', 'undici');
|
|
44
41
|
span.setAttribute(semanticConventions.ATTR_HTTP_REQUEST_METHOD, method);
|
|
45
42
|
span.setAttribute(semanticConventions.ATTR_SERVER_ADDRESS, parsedUrl.hostname);
|
|
46
43
|
span.setAttribute(semanticConventions.ATTR_URL_PATH, parsedUrl.pathname);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/module-opentelemetry",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.65.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.1",
|
|
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.65.0",
|
|
33
|
+
"@tramvai/tokens-common": "6.65.0",
|
|
34
|
+
"@tramvai/tokens-http-client": "6.65.0",
|
|
35
|
+
"@tramvai/tokens-metrics": "6.65.0",
|
|
36
|
+
"@tramvai/tokens-render": "6.65.0",
|
|
37
|
+
"@tramvai/tokens-router": "6.65.0",
|
|
38
|
+
"@tramvai/tokens-server": "6.65.0",
|
|
39
|
+
"@tramvai/tokens-server-private": "6.65.0",
|
|
40
40
|
"path-to-regexp": "^0.1.12"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"@tinkoff/dippy": "0.12.3",
|
|
44
|
-
"@tramvai/core": "6.
|
|
44
|
+
"@tramvai/core": "6.65.0",
|
|
45
45
|
"tslib": "^2.4.0"
|
|
46
46
|
}
|
|
47
47
|
}
|