@pocket-tools/tracing 1.8.9 → 1.8.11
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/dist/index.js +4 -3
- package/dist/index.mjs +6 -4
- package/package.json +1 -1
- package/.turbo/turbo-build.log +0 -20
- package/.turbo/turbo-semantic-release.log +0 -88
- package/eslint.config.mjs +0 -3
- package/jest.config.js +0 -6
- package/tsconfig.json +0 -9
package/dist/index.js
CHANGED
|
@@ -99,13 +99,14 @@ var batchConfig = {
|
|
|
99
99
|
exportTimeoutMillis: 5e3
|
|
100
100
|
};
|
|
101
101
|
async function nodeSDKBuilder(config) {
|
|
102
|
-
var _a;
|
|
102
|
+
var _a, _b, _c;
|
|
103
103
|
config = { ...tracingDefaults, ...config };
|
|
104
104
|
import_api.diag.setLogger(new import_api.DiagConsoleLogger(), import_api.DiagLogLevel.WARN);
|
|
105
105
|
const _resource = import_resources.Resource.default().merge(
|
|
106
106
|
new import_resources.Resource({
|
|
107
107
|
[import_semantic_conventions.ATTR_SERVICE_NAME]: config.serviceName,
|
|
108
|
-
[import_semantic_conventions.ATTR_SERVICE_VERSION]: config.release
|
|
108
|
+
[import_semantic_conventions.ATTR_SERVICE_VERSION]: config.release,
|
|
109
|
+
[import_semantic_conventions.SEMRESATTRS_DEPLOYMENT_ENVIRONMENT]: (_b = (_a = import_process.default.env.ENVIRONMENT) != null ? _a : import_process.default.env.NODE_ENV) != null ? _b : "unknown"
|
|
109
110
|
})
|
|
110
111
|
);
|
|
111
112
|
const _traceExporter = config.protocol === "HTTP" ? new import_exporter_trace_otlp_http.OTLPTraceExporter({
|
|
@@ -163,7 +164,7 @@ async function nodeSDKBuilder(config) {
|
|
|
163
164
|
}
|
|
164
165
|
})
|
|
165
166
|
];
|
|
166
|
-
((
|
|
167
|
+
((_c = config.additionalInstrumentations) != null ? _c : []).forEach((instrumentation) => {
|
|
167
168
|
instrumentations.push(
|
|
168
169
|
new additionalInstrumentationConstructors[instrumentation]()
|
|
169
170
|
);
|
package/dist/index.mjs
CHANGED
|
@@ -16,7 +16,8 @@ import { PrismaInstrumentation } from "@prisma/instrumentation";
|
|
|
16
16
|
import { Resource } from "@opentelemetry/resources";
|
|
17
17
|
import {
|
|
18
18
|
ATTR_SERVICE_NAME,
|
|
19
|
-
ATTR_SERVICE_VERSION
|
|
19
|
+
ATTR_SERVICE_VERSION,
|
|
20
|
+
SEMRESATTRS_DEPLOYMENT_ENVIRONMENT
|
|
20
21
|
} from "@opentelemetry/semantic-conventions";
|
|
21
22
|
import { SentryPropagator, wrapSamplingDecision } from "@sentry/opentelemetry";
|
|
22
23
|
import { PeriodicExportingMetricReader } from "@opentelemetry/sdk-metrics";
|
|
@@ -79,13 +80,14 @@ var batchConfig = {
|
|
|
79
80
|
exportTimeoutMillis: 5e3
|
|
80
81
|
};
|
|
81
82
|
async function nodeSDKBuilder(config) {
|
|
82
|
-
var _a;
|
|
83
|
+
var _a, _b, _c;
|
|
83
84
|
config = { ...tracingDefaults, ...config };
|
|
84
85
|
diag.setLogger(new DiagConsoleLogger(), DiagLogLevel.WARN);
|
|
85
86
|
const _resource = Resource.default().merge(
|
|
86
87
|
new Resource({
|
|
87
88
|
[ATTR_SERVICE_NAME]: config.serviceName,
|
|
88
|
-
[ATTR_SERVICE_VERSION]: config.release
|
|
89
|
+
[ATTR_SERVICE_VERSION]: config.release,
|
|
90
|
+
[SEMRESATTRS_DEPLOYMENT_ENVIRONMENT]: (_b = (_a = process.env.ENVIRONMENT) != null ? _a : process.env.NODE_ENV) != null ? _b : "unknown"
|
|
89
91
|
})
|
|
90
92
|
);
|
|
91
93
|
const _traceExporter = config.protocol === "HTTP" ? new HTTPOTLPTraceExporter({
|
|
@@ -143,7 +145,7 @@ async function nodeSDKBuilder(config) {
|
|
|
143
145
|
}
|
|
144
146
|
})
|
|
145
147
|
];
|
|
146
|
-
((
|
|
148
|
+
((_c = config.additionalInstrumentations) != null ? _c : []).forEach((instrumentation) => {
|
|
147
149
|
instrumentations.push(
|
|
148
150
|
new additionalInstrumentationConstructors[instrumentation]()
|
|
149
151
|
);
|
package/package.json
CHANGED
package/.turbo/turbo-build.log
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
> @pocket-tools/tracing@0.0.0-development build /home/runner/work/pocket-monorepo/pocket-monorepo/packages/tracing
|
|
3
|
-
> tsup src/index.ts --format cjs,esm --dts
|
|
4
|
-
|
|
5
|
-
[34mCLI[39m Building entry: src/index.ts
|
|
6
|
-
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
7
|
-
[34mCLI[39m tsup v8.3.5
|
|
8
|
-
[34mCLI[39m Target: es2019
|
|
9
|
-
[34mCJS[39m Build start
|
|
10
|
-
[34mESM[39m Build start
|
|
11
|
-
[33mCJS[39m [33mYou have emitDecoratorMetadata enabled but @swc/core was not installed, skipping swc plugin[39m
|
|
12
|
-
[33mESM[39m [33mYou have emitDecoratorMetadata enabled but @swc/core was not installed, skipping swc plugin[39m
|
|
13
|
-
[32mCJS[39m [1mdist/index.js [22m[32m12.85 KB[39m
|
|
14
|
-
[32mCJS[39m ⚡️ Build success in 176ms
|
|
15
|
-
[32mESM[39m [1mdist/index.mjs [22m[32m10.62 KB[39m
|
|
16
|
-
[32mESM[39m ⚡️ Build success in 173ms
|
|
17
|
-
[34mDTS[39m Build start
|
|
18
|
-
[32mDTS[39m ⚡️ Build success in 9231ms
|
|
19
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m557.00 B[39m
|
|
20
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[32m557.00 B[39m
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
> @pocket-tools/tracing@0.0.0-development presemantic-release /home/runner/work/pocket-monorepo/pocket-monorepo/packages/tracing
|
|
3
|
-
> pnpm run build
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
> @pocket-tools/tracing@0.0.0-development build /home/runner/work/pocket-monorepo/pocket-monorepo/packages/tracing
|
|
7
|
-
> tsup src/index.ts --format cjs,esm --dts
|
|
8
|
-
|
|
9
|
-
[34mCLI[39m Building entry: src/index.ts
|
|
10
|
-
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
11
|
-
[34mCLI[39m tsup v8.3.5
|
|
12
|
-
[34mCLI[39m Target: es2019
|
|
13
|
-
[34mCJS[39m Build start
|
|
14
|
-
[34mESM[39m Build start
|
|
15
|
-
[33mCJS[39m [33mYou have emitDecoratorMetadata enabled but @swc/core was not installed, skipping swc plugin[39m
|
|
16
|
-
[33mESM[39m [33mYou have emitDecoratorMetadata enabled but @swc/core was not installed, skipping swc plugin[39m
|
|
17
|
-
[32mCJS[39m [1mdist/index.js [22m[32m12.85 KB[39m
|
|
18
|
-
[32mCJS[39m ⚡️ Build success in 154ms
|
|
19
|
-
[32mESM[39m [1mdist/index.mjs [22m[32m10.62 KB[39m
|
|
20
|
-
[32mESM[39m ⚡️ Build success in 154ms
|
|
21
|
-
[34mDTS[39m Build start
|
|
22
|
-
[32mDTS[39m ⚡️ Build success in 9625ms
|
|
23
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m557.00 B[39m
|
|
24
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[32m557.00 B[39m
|
|
25
|
-
|
|
26
|
-
> @pocket-tools/tracing@0.0.0-development semantic-release /home/runner/work/pocket-monorepo/pocket-monorepo/packages/tracing
|
|
27
|
-
> semantic-release
|
|
28
|
-
|
|
29
|
-
[7:51:26 PM] [semantic-release] › ℹ Running semantic-release version 24.2.0
|
|
30
|
-
[7:51:27 PM] [semantic-release] › ✔ Loaded plugin "verifyConditions" from "@semantic-release/exec"
|
|
31
|
-
[7:51:27 PM] [semantic-release] › ✔ Loaded plugin "verifyConditions" from "@semantic-release/github"
|
|
32
|
-
[7:51:27 PM] [semantic-release] › ✔ Loaded plugin "verifyRelease" from "@semantic-release/exec"
|
|
33
|
-
[7:51:27 PM] [semantic-release] › ✔ Loaded plugin "prepare" from "@semantic-release/exec"
|
|
34
|
-
[7:51:27 PM] [semantic-release] › ✔ Loaded plugin "publish" from "@semantic-release/exec"
|
|
35
|
-
[7:51:27 PM] [semantic-release] › ✔ Loaded plugin "publish" from "@semantic-release/github"
|
|
36
|
-
[7:51:27 PM] [semantic-release] › ✔ Loaded plugin "addChannel" from "@semantic-release/exec"
|
|
37
|
-
[7:51:27 PM] [semantic-release] › ✔ Loaded plugin "addChannel" from "@semantic-release/github"
|
|
38
|
-
[7:51:35 PM] [semantic-release] › ✔ Run automated release from branch main on repository git+https://github.com/Pocket/pocket-monorepo.git
|
|
39
|
-
[7:51:35 PM] [semantic-release] › ✔ Allowed to push to the Git repository
|
|
40
|
-
[7:51:35 PM] [semantic-release] › ℹ Start step "verifyConditions" of plugin "@semantic-release/exec"
|
|
41
|
-
[7:51:35 PM] [semantic-release] › ✔ Completed step "verifyConditions" of plugin "@semantic-release/exec"
|
|
42
|
-
[7:51:35 PM] [semantic-release] › ℹ Start step "verifyConditions" of plugin "@semantic-release/github"
|
|
43
|
-
[7:51:35 PM] [semantic-release] [@semantic-release/github] › ℹ Verify GitHub authentication (https://api.github.com)
|
|
44
|
-
[7:51:36 PM] [semantic-release] › ✔ Completed step "verifyConditions" of plugin "@semantic-release/github"
|
|
45
|
-
[7:51:36 PM] [semantic-release] › ℹ Found git tag @pocket-tools/tracing-v1.8.8 associated with version 1.8.8 on branch main
|
|
46
|
-
[7:51:36 PM] [semantic-release] › ℹ Found 1 commits since last release
|
|
47
|
-
[7:51:36 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
|
|
48
|
-
[7:51:36 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Start step "analyzeCommits" of plugin "@semantic-release/commit-analyzer"
|
|
49
|
-
[7:51:36 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Found 1 commits for package @pocket-tools/tracing since last release
|
|
50
|
-
[7:51:36 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Analyzing commit: fix(deps): update opentelemetry-js monorepo to v0.54.1 (#929)
|
|
51
|
-
|
|
52
|
-
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
|
|
53
|
-
[7:51:36 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ The release type for the commit is patch
|
|
54
|
-
[7:51:36 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Analysis of 1 commits complete: patch release
|
|
55
|
-
[7:51:36 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Completed step "analyzeCommits" of plugin "@semantic-release/commit-analyzer"
|
|
56
|
-
[7:51:36 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
|
|
57
|
-
[7:51:36 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
|
|
58
|
-
[7:51:36 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Plugin "@semantic-release/release-notes-generator" does not provide step "analyzeCommits"
|
|
59
|
-
[7:51:36 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
|
|
60
|
-
[7:51:36 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
|
|
61
|
-
[7:51:36 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Start step "analyzeCommits" of plugin "@semantic-release/exec"
|
|
62
|
-
[7:51:36 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Found 1 commits for package @pocket-tools/tracing since last release
|
|
63
|
-
[7:51:36 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Completed step "analyzeCommits" of plugin "@semantic-release/exec"
|
|
64
|
-
[7:51:36 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
|
|
65
|
-
[7:51:36 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
|
|
66
|
-
[7:51:36 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Plugin "@semantic-release/github" does not provide step "analyzeCommits"
|
|
67
|
-
[7:51:36 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
|
|
68
|
-
[7:51:36 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
|
|
69
|
-
[7:51:36 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ No more plugins
|
|
70
|
-
[7:51:36 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
|
|
71
|
-
[7:51:36 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
|
|
72
|
-
[7:51:36 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ No more plugins
|
|
73
|
-
[7:51:36 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
|
|
74
|
-
[7:51:36 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
|
|
75
|
-
[7:51:36 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ No more plugins
|
|
76
|
-
[7:51:36 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
|
|
77
|
-
[7:51:36 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
|
|
78
|
-
[7:51:36 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ No more plugins
|
|
79
|
-
[7:51:36 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
|
|
80
|
-
[7:51:36 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
|
|
81
|
-
[7:51:36 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ No more plugins
|
|
82
|
-
[7:51:36 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
|
|
83
|
-
[7:51:36 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
|
|
84
|
-
[7:51:36 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ No more plugins
|
|
85
|
-
[7:51:36 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
|
|
86
|
-
[7:51:36 PM] [semantic-release] › ℹ The next release version is 1.8.9
|
|
87
|
-
[7:51:36 PM] [semantic-release] › ℹ Start step "verifyRelease" of plugin "@semantic-release/exec"
|
|
88
|
-
[7:51:36 PM] [semantic-release] › ✔ Completed step "verifyRelease" of plugin "@semantic-release/exec"
|
package/eslint.config.mjs
DELETED
package/jest.config.js
DELETED