@pocket-tools/tracing 1.8.8 → 1.8.10

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.
@@ -10,11 +10,11 @@
10
10
  ESM Build start
11
11
  CJS You have emitDecoratorMetadata enabled but @swc/core was not installed, skipping swc plugin
12
12
  ESM You have emitDecoratorMetadata enabled but @swc/core was not installed, skipping swc plugin
13
- CJS dist/index.js 12.85 KB
14
- CJS ⚡️ Build success in 103ms
15
- ESM dist/index.mjs 10.62 KB
16
- ESM ⚡️ Build success in 104ms
13
+ ESM dist/index.mjs 10.80 KB
14
+ ESM ⚡️ Build success in 112ms
15
+ CJS dist/index.js 13.05 KB
16
+ CJS ⚡️ Build success in 120ms
17
17
  DTS Build start
18
- DTS ⚡️ Build success in 9904ms
18
+ DTS ⚡️ Build success in 8163ms
19
19
  DTS dist/index.d.ts 557.00 B
20
20
  DTS dist/index.d.mts 557.00 B
@@ -14,75 +14,73 @@
14
14
  ESM Build start
15
15
  CJS You have emitDecoratorMetadata enabled but @swc/core was not installed, skipping swc plugin
16
16
  ESM You have emitDecoratorMetadata enabled but @swc/core was not installed, skipping swc plugin
17
- CJS dist/index.js 12.85 KB
18
- CJS ⚡️ Build success in 168ms
19
- ESM dist/index.mjs 10.62 KB
20
- ESM ⚡️ Build success in 178ms
17
+ CJS dist/index.js 13.05 KB
18
+ CJS ⚡️ Build success in 228ms
19
+ ESM dist/index.mjs 10.80 KB
20
+ ESM ⚡️ Build success in 230ms
21
21
  DTS Build start
22
- DTS ⚡️ Build success in 10272ms
22
+ DTS ⚡️ Build success in 8369ms
23
23
  DTS dist/index.d.ts 557.00 B
24
24
  DTS dist/index.d.mts 557.00 B
25
25
 
26
26
  > @pocket-tools/tracing@0.0.0-development semantic-release /home/runner/work/pocket-monorepo/pocket-monorepo/packages/tracing
27
27
  > semantic-release
28
28
 
29
- [7:22:54 PM] [semantic-release] › ℹ Running semantic-release version 24.2.0
30
- [7:22:55 PM] [semantic-release] › ✔ Loaded plugin "verifyConditions" from "@semantic-release/exec"
31
- [7:22:55 PM] [semantic-release] › ✔ Loaded plugin "verifyConditions" from "@semantic-release/github"
32
- [7:22:55 PM] [semantic-release] › ✔ Loaded plugin "verifyRelease" from "@semantic-release/exec"
33
- [7:22:55 PM] [semantic-release] › ✔ Loaded plugin "prepare" from "@semantic-release/exec"
34
- [7:22:55 PM] [semantic-release] › ✔ Loaded plugin "publish" from "@semantic-release/exec"
35
- [7:22:55 PM] [semantic-release] › ✔ Loaded plugin "publish" from "@semantic-release/github"
36
- [7:22:55 PM] [semantic-release] › ✔ Loaded plugin "addChannel" from "@semantic-release/exec"
37
- [7:22:55 PM] [semantic-release] › ✔ Loaded plugin "addChannel" from "@semantic-release/github"
38
- [7:23:02 PM] [semantic-release] › ✔ Run automated release from branch main on repository git+https://github.com/Pocket/pocket-monorepo.git
39
- [7:23:03 PM] [semantic-release] › ✔ Allowed to push to the Git repository
40
- [7:23:03 PM] [semantic-release] › ℹ Start step "verifyConditions" of plugin "@semantic-release/exec"
41
- [7:23:03 PM] [semantic-release] › ✔ Completed step "verifyConditions" of plugin "@semantic-release/exec"
42
- [7:23:03 PM] [semantic-release] › ℹ Start step "verifyConditions" of plugin "@semantic-release/github"
43
- [7:23:03 PM] [semantic-release] [@semantic-release/github] › ℹ Verify GitHub authentication (https://api.github.com)
44
- [7:23:04 PM] [semantic-release] › ✔ Completed step "verifyConditions" of plugin "@semantic-release/github"
45
- [7:23:04 PM] [semantic-release] › ℹ Found git tag @pocket-tools/tracing-v1.8.7 associated with version 1.8.7 on branch main
46
- [7:23:04 PM] [semantic-release] › ℹ Found 8 commits since last release
47
- [7:23:04 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
48
- [7:23:04 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Start step "analyzeCommits" of plugin "@semantic-release/commit-analyzer"
49
- [7:23:04 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Found 1 commits for package @pocket-tools/tracing since last release
50
- [7:23:04 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Analyzing commit: fix(deps): update sentry-javascript monorepo to v8.37.1 (#928)
51
-
52
- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
53
- [7:23:04 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ The release type for the commit is patch
54
- [7:23:04 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Analysis of 1 commits complete: patch release
55
- [7:23:04 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Completed step "analyzeCommits" of plugin "@semantic-release/commit-analyzer"
56
- [7:23:04 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
57
- [7:23:04 PM] [semantic-release] › Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
58
- [7:23:04 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Plugin "@semantic-release/release-notes-generator" does not provide step "analyzeCommits"
59
- [7:23:04 PM] [semantic-release] › Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
60
- [7:23:04 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
61
- [7:23:04 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Start step "analyzeCommits" of plugin "@semantic-release/exec"
62
- [7:23:04 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Found 1 commits for package @pocket-tools/tracing since last release
63
- [7:23:04 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Completed step "analyzeCommits" of plugin "@semantic-release/exec"
64
- [7:23:04 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
65
- [7:23:04 PM] [semantic-release] › Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
66
- [7:23:04 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Plugin "@semantic-release/github" does not provide step "analyzeCommits"
67
- [7:23:04 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
68
- [7:23:04 PM] [semantic-release] › Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
69
- [7:23:04 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ No more plugins
70
- [7:23:04 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
71
- [7:23:04 PM] [semantic-release] › Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
72
- [7:23:04 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ No more plugins
73
- [7:23:04 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
74
- [7:23:04 PM] [semantic-release] › Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
75
- [7:23:04 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ No more plugins
76
- [7:23:04 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
77
- [7:23:04 PM] [semantic-release] › Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
78
- [7:23:04 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ No more plugins
79
- [7:23:04 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
80
- [7:23:04 PM] [semantic-release] › Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
81
- [7:23:04 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ No more plugins
82
- [7:23:04 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
83
- [7:23:04 PM] [semantic-release] › Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
84
- [7:23:04 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ No more plugins
85
- [7:23:04 PM] [semantic-release] › Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
86
- [7:23:05 PM] [semantic-release] › The next release version is 1.8.8
87
- [7:23:05 PM] [semantic-release] › ℹ Start step "verifyRelease" of plugin "@semantic-release/exec"
88
- [7:23:05 PM] [semantic-release] › ✔ Completed step "verifyRelease" of plugin "@semantic-release/exec"
29
+ [10:52:16 PM] [semantic-release] › ℹ Running semantic-release version 24.2.0
30
+ [10:52:17 PM] [semantic-release] › ✔ Loaded plugin "verifyConditions" from "@semantic-release/exec"
31
+ [10:52:17 PM] [semantic-release] › ✔ Loaded plugin "verifyConditions" from "@semantic-release/github"
32
+ [10:52:17 PM] [semantic-release] › ✔ Loaded plugin "verifyRelease" from "@semantic-release/exec"
33
+ [10:52:17 PM] [semantic-release] › ✔ Loaded plugin "prepare" from "@semantic-release/exec"
34
+ [10:52:17 PM] [semantic-release] › ✔ Loaded plugin "publish" from "@semantic-release/exec"
35
+ [10:52:17 PM] [semantic-release] › ✔ Loaded plugin "publish" from "@semantic-release/github"
36
+ [10:52:17 PM] [semantic-release] › ✔ Loaded plugin "addChannel" from "@semantic-release/exec"
37
+ [10:52:17 PM] [semantic-release] › ✔ Loaded plugin "addChannel" from "@semantic-release/github"
38
+ [10:52:24 PM] [semantic-release] › ✔ Run automated release from branch main on repository git+https://github.com/Pocket/pocket-monorepo.git
39
+ [10:52:25 PM] [semantic-release] › ✔ Allowed to push to the Git repository
40
+ [10:52:25 PM] [semantic-release] › ℹ Start step "verifyConditions" of plugin "@semantic-release/exec"
41
+ [10:52:25 PM] [semantic-release] › ✔ Completed step "verifyConditions" of plugin "@semantic-release/exec"
42
+ [10:52:25 PM] [semantic-release] › ℹ Start step "verifyConditions" of plugin "@semantic-release/github"
43
+ [10:52:25 PM] [semantic-release] [@semantic-release/github] › ℹ Verify GitHub authentication (https://api.github.com)
44
+ [10:52:25 PM] [semantic-release] › ✔ Completed step "verifyConditions" of plugin "@semantic-release/github"
45
+ [10:52:25 PM] [semantic-release] › ℹ Found git tag @pocket-tools/tracing-v1.8.9 associated with version 1.8.9 on branch main
46
+ [10:52:26 PM] [semantic-release] › ℹ Found 14 commits since last release
47
+ [10:52:26 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
48
+ [10:52:26 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Start step "analyzeCommits" of plugin "@semantic-release/commit-analyzer"
49
+ [10:52:26 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Found 1 commits for package @pocket-tools/tracing since last release
50
+ [10:52:26 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Analyzing commit: fix(otel): adding in the environment to otel (#944)
51
+ [10:52:26 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ The release type for the commit is patch
52
+ [10:52:26 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Analysis of 1 commits complete: patch release
53
+ [10:52:26 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Completed step "analyzeCommits" of plugin "@semantic-release/commit-analyzer"
54
+ [10:52:26 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
55
+ [10:52:26 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
56
+ [10:52:26 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Plugin "@semantic-release/release-notes-generator" does not provide step "analyzeCommits"
57
+ [10:52:26 PM] [semantic-release] › Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
58
+ [10:52:26 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
59
+ [10:52:26 PM] [semantic-release] [[Function: semantic-release-monorepo]] Start step "analyzeCommits" of plugin "@semantic-release/exec"
60
+ [10:52:26 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Found 1 commits for package @pocket-tools/tracing since last release
61
+ [10:52:26 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Completed step "analyzeCommits" of plugin "@semantic-release/exec"
62
+ [10:52:26 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
63
+ [10:52:26 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
64
+ [10:52:26 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Plugin "@semantic-release/github" does not provide step "analyzeCommits"
65
+ [10:52:26 PM] [semantic-release] › Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
66
+ [10:52:26 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
67
+ [10:52:26 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ No more plugins
68
+ [10:52:26 PM] [semantic-release] › Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
69
+ [10:52:26 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
70
+ [10:52:26 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ No more plugins
71
+ [10:52:26 PM] [semantic-release] › Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
72
+ [10:52:26 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
73
+ [10:52:26 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ No more plugins
74
+ [10:52:26 PM] [semantic-release] › Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
75
+ [10:52:26 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
76
+ [10:52:26 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ No more plugins
77
+ [10:52:26 PM] [semantic-release] › Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
78
+ [10:52:26 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
79
+ [10:52:26 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ No more plugins
80
+ [10:52:26 PM] [semantic-release] › Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
81
+ [10:52:26 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
82
+ [10:52:26 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ No more plugins
83
+ [10:52:26 PM] [semantic-release] › Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
84
+ [10:52:26 PM] [semantic-release] › ℹ The next release version is 1.8.10
85
+ [10:52:26 PM] [semantic-release] › Start step "verifyRelease" of plugin "@semantic-release/exec"
86
+ [10:52:26 PM] [semantic-release] › Completed step "verifyRelease" of plugin "@semantic-release/exec"
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
- ((_a = config.additionalInstrumentations) != null ? _a : []).forEach((instrumentation) => {
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
- ((_a = config.additionalInstrumentations) != null ? _a : []).forEach((instrumentation) => {
148
+ ((_c = config.additionalInstrumentations) != null ? _c : []).forEach((instrumentation) => {
147
149
  instrumentations.push(
148
150
  new additionalInstrumentationConstructors[instrumentation]()
149
151
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocket-tools/tracing",
3
- "version": "1.8.8",
3
+ "version": "1.8.10",
4
4
  "description": "Utilities for tracing",
5
5
  "keywords": [
6
6
  "tracing"
@@ -67,19 +67,19 @@
67
67
  "@opentelemetry/auto-instrumentations-node": "0.52.0",
68
68
  "@opentelemetry/context-async-hooks": "1.27.0",
69
69
  "@opentelemetry/core": "1.27.0",
70
- "@opentelemetry/exporter-logs-otlp-grpc": "0.54.0",
71
- "@opentelemetry/exporter-logs-otlp-http": "0.54.0",
72
- "@opentelemetry/exporter-metrics-otlp-grpc": "0.54.0",
73
- "@opentelemetry/exporter-metrics-otlp-http": "0.54.0",
74
- "@opentelemetry/exporter-trace-otlp-grpc": "0.54.0",
75
- "@opentelemetry/exporter-trace-otlp-http": "0.54.0",
70
+ "@opentelemetry/exporter-logs-otlp-grpc": "0.54.1",
71
+ "@opentelemetry/exporter-logs-otlp-http": "0.54.1",
72
+ "@opentelemetry/exporter-metrics-otlp-grpc": "0.54.1",
73
+ "@opentelemetry/exporter-metrics-otlp-http": "0.54.1",
74
+ "@opentelemetry/exporter-trace-otlp-grpc": "0.54.1",
75
+ "@opentelemetry/exporter-trace-otlp-http": "0.54.1",
76
76
  "@opentelemetry/id-generator-aws-xray": "1.2.2",
77
77
  "@opentelemetry/instrumentation-knex": "0.41.0",
78
78
  "@opentelemetry/propagator-aws-xray": "1.26.0",
79
79
  "@opentelemetry/resource-detector-aws": "1.7.0",
80
80
  "@opentelemetry/resources": "1.27.0",
81
81
  "@opentelemetry/sdk-metrics": "1.27.0",
82
- "@opentelemetry/sdk-node": "0.54.0",
82
+ "@opentelemetry/sdk-node": "0.54.1",
83
83
  "@opentelemetry/sdk-trace-base": "1.27.0",
84
84
  "@opentelemetry/sdk-trace-node": "1.27.0",
85
85
  "@opentelemetry/semantic-conventions": "1.27.0",