@pocket-tools/tracing 1.3.13 → 1.3.15
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/.turbo/turbo-build.log +5 -5
- package/.turbo/turbo-semantic-release.log +67 -74
- package/dist/index.js +24 -2
- package/dist/index.mjs +28 -2
- package/package.json +3 -3
package/.turbo/turbo-build.log
CHANGED
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
[34mESM[39m Build start
|
|
11
11
|
[33mCJS[39m [33mYou have emitDecoratorMetadata enabled but @swc/core was not installed, skipping swc plugin[39m
|
|
12
12
|
[33mESM[39m [33mYou have emitDecoratorMetadata enabled but @swc/core was not installed, skipping swc plugin[39m
|
|
13
|
-
[32mESM[39m [1mdist/index.mjs [22m[32m7.
|
|
14
|
-
[32mESM[39m ⚡️ Build success in
|
|
15
|
-
[32mCJS[39m [1mdist/index.js [22m[
|
|
16
|
-
[32mCJS[39m ⚡️ Build success in
|
|
13
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m7.83 KB[39m
|
|
14
|
+
[32mESM[39m ⚡️ Build success in 125ms
|
|
15
|
+
[32mCJS[39m [1mdist/index.js [22m[32m10.39 KB[39m
|
|
16
|
+
[32mCJS[39m ⚡️ Build success in 133ms
|
|
17
17
|
[34mDTS[39m Build start
|
|
18
|
-
[32mDTS[39m ⚡️ Build success in
|
|
18
|
+
[32mDTS[39m ⚡️ Build success in 9558ms
|
|
19
19
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m1.41 KB[39m
|
|
20
20
|
[32mDTS[39m [1mdist/index.d.mts [22m[32m1.41 KB[39m
|
|
@@ -2,80 +2,73 @@
|
|
|
2
2
|
> @pocket-tools/tracing@0.0.0-development semantic-release /home/runner/work/pocket-monorepo/pocket-monorepo/packages/tracing
|
|
3
3
|
> semantic-release
|
|
4
4
|
|
|
5
|
-
[10:
|
|
6
|
-
[10:
|
|
7
|
-
[10:
|
|
8
|
-
[10:
|
|
9
|
-
[10:
|
|
10
|
-
[10:
|
|
11
|
-
[10:
|
|
12
|
-
[10:
|
|
13
|
-
[10:
|
|
14
|
-
[10:
|
|
15
|
-
[10:
|
|
16
|
-
[10:
|
|
17
|
-
[10:
|
|
5
|
+
[10:42:23 PM] [semantic-release] › ℹ Running semantic-release version 24.0.0
|
|
6
|
+
[10:42:25 PM] [semantic-release] › ✔ Loaded plugin "verifyConditions" from "@semantic-release/npm"
|
|
7
|
+
[10:42:25 PM] [semantic-release] › ✔ Loaded plugin "verifyConditions" from "@semantic-release/github"
|
|
8
|
+
[10:42:25 PM] [semantic-release] › ✔ Loaded plugin "prepare" from "@semantic-release/npm"
|
|
9
|
+
[10:42:25 PM] [semantic-release] › ✔ Loaded plugin "publish" from "@semantic-release/npm"
|
|
10
|
+
[10:42:25 PM] [semantic-release] › ✔ Loaded plugin "publish" from "@semantic-release/github"
|
|
11
|
+
[10:42:25 PM] [semantic-release] › ✔ Loaded plugin "addChannel" from "@semantic-release/npm"
|
|
12
|
+
[10:42:25 PM] [semantic-release] › ✔ Loaded plugin "addChannel" from "@semantic-release/github"
|
|
13
|
+
[10:42:29 PM] [semantic-release] › ✔ Run automated release from branch main on repository git+https://github.com/Pocket/pocket-monorepo.git
|
|
14
|
+
[10:42:30 PM] [semantic-release] › ✔ Allowed to push to the Git repository
|
|
15
|
+
[10:42:30 PM] [semantic-release] › ℹ Start step "verifyConditions" of plugin "@semantic-release/npm"
|
|
16
|
+
[10:42:30 PM] [semantic-release] [@semantic-release/npm] › ℹ Verify authentication for registry https://registry.npmjs.org/
|
|
17
|
+
[10:42:30 PM] [semantic-release] [@semantic-release/npm] › ℹ Reading npm config from /home/runner/work/_temp/.npmrc
|
|
18
18
|
pocket-npm
|
|
19
|
-
[10:
|
|
20
|
-
[10:
|
|
21
|
-
[10:
|
|
22
|
-
[10:
|
|
23
|
-
[10:
|
|
24
|
-
[10:
|
|
25
|
-
[10:
|
|
26
|
-
[10:
|
|
27
|
-
[10:
|
|
28
|
-
[10:
|
|
19
|
+
[10:42:31 PM] [semantic-release] › ✔ Completed step "verifyConditions" of plugin "@semantic-release/npm"
|
|
20
|
+
[10:42:31 PM] [semantic-release] › ℹ Start step "verifyConditions" of plugin "@semantic-release/github"
|
|
21
|
+
[10:42:31 PM] [semantic-release] [@semantic-release/github] › ℹ Verify GitHub authentication (https://api.github.com)
|
|
22
|
+
[10:42:31 PM] [semantic-release] › ✔ Completed step "verifyConditions" of plugin "@semantic-release/github"
|
|
23
|
+
[10:42:32 PM] [semantic-release] › ℹ Found git tag @pocket-tools/tracing-v1.3.14 associated with version 1.3.14 on branch main
|
|
24
|
+
[10:42:32 PM] [semantic-release] › ℹ Found 5 commits since last release
|
|
25
|
+
[10:42:32 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
|
|
26
|
+
[10:42:32 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Start step "analyzeCommits" of plugin "@semantic-release/commit-analyzer"
|
|
27
|
+
[10:42:32 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Found 1 commits for package @pocket-tools/tracing since last release
|
|
28
|
+
[10:42:32 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Analyzing commit: fix(otel): fix async resource attribute access issue (#667)
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
https://github.com/open-telemetry/opentelemetry-js/issues/4638
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
[10:
|
|
42
|
-
[10:
|
|
43
|
-
[10:
|
|
44
|
-
[10:
|
|
45
|
-
[10:
|
|
46
|
-
[10:
|
|
47
|
-
[10:
|
|
48
|
-
[10:
|
|
49
|
-
[10:
|
|
50
|
-
[10:
|
|
51
|
-
[10:
|
|
52
|
-
[10:
|
|
53
|
-
[10:
|
|
54
|
-
[10:
|
|
55
|
-
[10:
|
|
56
|
-
[10:
|
|
57
|
-
[10:
|
|
58
|
-
[10:
|
|
59
|
-
[10:
|
|
60
|
-
[10:
|
|
61
|
-
[10:
|
|
62
|
-
[10:
|
|
63
|
-
[10:
|
|
64
|
-
[10:
|
|
65
|
-
[10:
|
|
66
|
-
[10:
|
|
67
|
-
[10:
|
|
68
|
-
[10:
|
|
69
|
-
[10:
|
|
70
|
-
[10:
|
|
71
|
-
[10:
|
|
72
|
-
[10:
|
|
73
|
-
[10:
|
|
74
|
-
[10:
|
|
75
|
-
[10:34:21 PM] [semantic-release] › ✔ Completed step "generateNotes" of plugin "[Function: semantic-release-monorepo]"
|
|
76
|
-
[10:34:21 PM] [semantic-release] › ℹ Start step "generateNotes" of plugin "[Function: semantic-release-monorepo]"
|
|
77
|
-
[10:34:21 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Start step "generateNotes" of plugin "@semantic-release/release-notes-generator"
|
|
78
|
-
[10:34:21 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Found 1 commits for package @pocket-tools/tracing since last release
|
|
79
|
-
[10:34:21 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Completed step "generateNotes" of plugin "@semantic-release/release-notes-generator"
|
|
80
|
-
[10:34:22 PM] [semantic-release] › ✔ Completed step "generateNotes" of plugin "[Function: semantic-release-monorepo]"
|
|
81
|
-
[10:34:22 PM] [semantic-release] › ℹ Start step "generateNotes" of plugin "[Function: semantic-release-monorepo]"
|
|
32
|
+
[POCKET-10371]
|
|
33
|
+
[10:42:32 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ The release type for the commit is patch
|
|
34
|
+
[10:42:32 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Analysis of 1 commits complete: patch release
|
|
35
|
+
[10:42:32 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Completed step "analyzeCommits" of plugin "@semantic-release/commit-analyzer"
|
|
36
|
+
[10:42:32 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
|
|
37
|
+
[10:42:32 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
|
|
38
|
+
[10:42:32 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Plugin "@semantic-release/release-notes-generator" does not provide step "analyzeCommits"
|
|
39
|
+
[10:42:32 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
|
|
40
|
+
[10:42:32 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
|
|
41
|
+
[10:42:32 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Plugin "@semantic-release/npm" does not provide step "analyzeCommits"
|
|
42
|
+
[10:42:32 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
|
|
43
|
+
[10:42:32 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
|
|
44
|
+
[10:42:32 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Plugin "@semantic-release/github" does not provide step "analyzeCommits"
|
|
45
|
+
[10:42:32 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
|
|
46
|
+
[10:42:32 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
|
|
47
|
+
[10:42:32 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ No more plugins
|
|
48
|
+
[10:42:32 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
|
|
49
|
+
[10:42:32 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
|
|
50
|
+
[10:42:32 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ No more plugins
|
|
51
|
+
[10:42:32 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
|
|
52
|
+
[10:42:32 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
|
|
53
|
+
[10:42:32 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ No more plugins
|
|
54
|
+
[10:42:32 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
|
|
55
|
+
[10:42:32 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
|
|
56
|
+
[10:42:32 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ No more plugins
|
|
57
|
+
[10:42:32 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
|
|
58
|
+
[10:42:32 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
|
|
59
|
+
[10:42:32 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ No more plugins
|
|
60
|
+
[10:42:32 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
|
|
61
|
+
[10:42:32 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
|
|
62
|
+
[10:42:32 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ No more plugins
|
|
63
|
+
[10:42:32 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
|
|
64
|
+
[10:42:32 PM] [semantic-release] › ℹ The next release version is 1.3.15
|
|
65
|
+
[10:42:32 PM] [semantic-release] › ℹ Start step "generateNotes" of plugin "[Function: semantic-release-monorepo]"
|
|
66
|
+
[10:42:32 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Plugin "@semantic-release/commit-analyzer" does not provide step "generateNotes"
|
|
67
|
+
[10:42:32 PM] [semantic-release] › ✔ Completed step "generateNotes" of plugin "[Function: semantic-release-monorepo]"
|
|
68
|
+
[10:42:32 PM] [semantic-release] › ℹ Start step "generateNotes" of plugin "[Function: semantic-release-monorepo]"
|
|
69
|
+
[10:42:32 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Start step "generateNotes" of plugin "@semantic-release/release-notes-generator"
|
|
70
|
+
[10:42:32 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Found 1 commits for package @pocket-tools/tracing since last release
|
|
71
|
+
[10:42:32 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Completed step "generateNotes" of plugin "@semantic-release/release-notes-generator"
|
|
72
|
+
[10:42:32 PM] [semantic-release] › ✔ Completed step "generateNotes" of plugin "[Function: semantic-release-monorepo]"
|
|
73
|
+
[10:42:32 PM] [semantic-release] › ℹ Start step "generateNotes" of plugin "[Function: semantic-release-monorepo]"
|
|
74
|
+
[10:42:32 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Plugin "@semantic-release/npm" does not provide step "generateNotes"
|
package/dist/index.js
CHANGED
|
@@ -59,6 +59,7 @@ var import_semantic_conventions = require("@opentelemetry/semantic-conventions")
|
|
|
59
59
|
var import_ExpressLayerType = require("@opentelemetry/instrumentation-express/build/src/enums/ExpressLayerType");
|
|
60
60
|
var import_opentelemetry = require("@sentry/opentelemetry");
|
|
61
61
|
var import_context_async_hooks = require("@opentelemetry/context-async-hooks");
|
|
62
|
+
var import_resources2 = require("@opentelemetry/resources");
|
|
62
63
|
var Sentry = __toESM(require("@sentry/node"));
|
|
63
64
|
var AdditionalInstrumentation = /* @__PURE__ */ ((AdditionalInstrumentation2) => {
|
|
64
65
|
AdditionalInstrumentation2["KNEX"] = "KNEX";
|
|
@@ -72,7 +73,7 @@ var additionalInstrumentationConstructors = {
|
|
|
72
73
|
var tracingDefaults = {
|
|
73
74
|
serviceName: "unknown",
|
|
74
75
|
release: "unknown",
|
|
75
|
-
samplingRatio:
|
|
76
|
+
samplingRatio: 0.01,
|
|
76
77
|
graphQLDepth: 8,
|
|
77
78
|
grpcDefaultPort: 4317,
|
|
78
79
|
httpDefaultPort: 4318,
|
|
@@ -84,6 +85,19 @@ var tracingDefaults = {
|
|
|
84
85
|
var SentryContextManager = (0, import_opentelemetry.wrapContextManagerClass)(
|
|
85
86
|
import_context_async_hooks.AsyncLocalStorageContextManager
|
|
86
87
|
);
|
|
88
|
+
function awaitAttributes(detector) {
|
|
89
|
+
return {
|
|
90
|
+
/**
|
|
91
|
+
* A function that returns a promise that resolves with the attributes
|
|
92
|
+
*/
|
|
93
|
+
async detect(config) {
|
|
94
|
+
var _a;
|
|
95
|
+
const resource = detector.detect(config);
|
|
96
|
+
await ((_a = resource.waitForAsyncAttributes) == null ? void 0 : _a.call(resource));
|
|
97
|
+
return resource;
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
}
|
|
87
101
|
async function nodeSDKBuilder(config) {
|
|
88
102
|
config = { ...tracingDefaults, ...config };
|
|
89
103
|
import_api.diag.setLogger(config.logger, import_api.DiagLogLevel.WARN);
|
|
@@ -142,9 +156,17 @@ async function nodeSDKBuilder(config) {
|
|
|
142
156
|
resource: _resource,
|
|
143
157
|
spanProcessors: _spanProcessors,
|
|
144
158
|
traceExporter: _traceExporter,
|
|
145
|
-
idGenerator: _idGenerator
|
|
159
|
+
idGenerator: _idGenerator,
|
|
160
|
+
// TODO: Remove after issue is fixed
|
|
161
|
+
// https://github.com/open-telemetry/opentelemetry-js/issues/4638
|
|
162
|
+
resourceDetectors: [
|
|
163
|
+
awaitAttributes(import_resources2.envDetectorSync),
|
|
164
|
+
awaitAttributes(import_resources2.hostDetectorSync),
|
|
165
|
+
awaitAttributes(import_resources2.processDetectorSync)
|
|
166
|
+
]
|
|
146
167
|
});
|
|
147
168
|
sdk.start();
|
|
169
|
+
import_api.diag.info("Tracer successfully started");
|
|
148
170
|
import_process.default.on("SIGTERM", () => {
|
|
149
171
|
sdk.shutdown().then(() => import_api.diag.info("Tracing and Metrics terminated")).catch(
|
|
150
172
|
(error) => import_api.diag.error("Error terminating tracing and metrics", error)
|
package/dist/index.mjs
CHANGED
|
@@ -38,6 +38,11 @@ import {
|
|
|
38
38
|
wrapContextManagerClass
|
|
39
39
|
} from "@sentry/opentelemetry";
|
|
40
40
|
import { AsyncLocalStorageContextManager } from "@opentelemetry/context-async-hooks";
|
|
41
|
+
import {
|
|
42
|
+
envDetectorSync,
|
|
43
|
+
hostDetectorSync,
|
|
44
|
+
processDetectorSync
|
|
45
|
+
} from "@opentelemetry/resources";
|
|
41
46
|
import * as Sentry from "@sentry/node";
|
|
42
47
|
var AdditionalInstrumentation = /* @__PURE__ */ ((AdditionalInstrumentation2) => {
|
|
43
48
|
AdditionalInstrumentation2["KNEX"] = "KNEX";
|
|
@@ -51,7 +56,7 @@ var additionalInstrumentationConstructors = {
|
|
|
51
56
|
var tracingDefaults = {
|
|
52
57
|
serviceName: "unknown",
|
|
53
58
|
release: "unknown",
|
|
54
|
-
samplingRatio:
|
|
59
|
+
samplingRatio: 0.01,
|
|
55
60
|
graphQLDepth: 8,
|
|
56
61
|
grpcDefaultPort: 4317,
|
|
57
62
|
httpDefaultPort: 4318,
|
|
@@ -63,6 +68,19 @@ var tracingDefaults = {
|
|
|
63
68
|
var SentryContextManager = wrapContextManagerClass(
|
|
64
69
|
AsyncLocalStorageContextManager
|
|
65
70
|
);
|
|
71
|
+
function awaitAttributes(detector) {
|
|
72
|
+
return {
|
|
73
|
+
/**
|
|
74
|
+
* A function that returns a promise that resolves with the attributes
|
|
75
|
+
*/
|
|
76
|
+
async detect(config) {
|
|
77
|
+
var _a;
|
|
78
|
+
const resource = detector.detect(config);
|
|
79
|
+
await ((_a = resource.waitForAsyncAttributes) == null ? void 0 : _a.call(resource));
|
|
80
|
+
return resource;
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
}
|
|
66
84
|
async function nodeSDKBuilder(config) {
|
|
67
85
|
config = { ...tracingDefaults, ...config };
|
|
68
86
|
diag.setLogger(config.logger, DiagLogLevel.WARN);
|
|
@@ -121,9 +139,17 @@ async function nodeSDKBuilder(config) {
|
|
|
121
139
|
resource: _resource,
|
|
122
140
|
spanProcessors: _spanProcessors,
|
|
123
141
|
traceExporter: _traceExporter,
|
|
124
|
-
idGenerator: _idGenerator
|
|
142
|
+
idGenerator: _idGenerator,
|
|
143
|
+
// TODO: Remove after issue is fixed
|
|
144
|
+
// https://github.com/open-telemetry/opentelemetry-js/issues/4638
|
|
145
|
+
resourceDetectors: [
|
|
146
|
+
awaitAttributes(envDetectorSync),
|
|
147
|
+
awaitAttributes(hostDetectorSync),
|
|
148
|
+
awaitAttributes(processDetectorSync)
|
|
149
|
+
]
|
|
125
150
|
});
|
|
126
151
|
sdk.start();
|
|
152
|
+
diag.info("Tracer successfully started");
|
|
127
153
|
process.on("SIGTERM", () => {
|
|
128
154
|
sdk.shutdown().then(() => diag.info("Tracing and Metrics terminated")).catch(
|
|
129
155
|
(error) => diag.error("Error terminating tracing and metrics", error)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pocket-tools/tracing",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.15",
|
|
4
4
|
"description": "Utilities for tracing",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"tracing"
|
|
@@ -87,8 +87,8 @@
|
|
|
87
87
|
"@opentelemetry/sdk-trace-node": "1.25.1",
|
|
88
88
|
"@opentelemetry/semantic-conventions": "1.25.1",
|
|
89
89
|
"@prisma/instrumentation": "5.17.0",
|
|
90
|
-
"@sentry/node": "8.
|
|
91
|
-
"@sentry/opentelemetry": "8.
|
|
90
|
+
"@sentry/node": "8.18.0",
|
|
91
|
+
"@sentry/opentelemetry": "8.18.0",
|
|
92
92
|
"tslib": "2.6.3"
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {
|