@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 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.9",
3
+ "version": "1.8.11",
4
4
  "description": "Utilities for tracing",
5
5
  "keywords": [
6
6
  "tracing"
@@ -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
- CLI Building entry: src/index.ts
6
- CLI Using tsconfig: tsconfig.json
7
- CLI tsup v8.3.5
8
- CLI Target: es2019
9
- CJS Build start
10
- ESM Build start
11
- CJS You have emitDecoratorMetadata enabled but @swc/core was not installed, skipping swc plugin
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 176ms
15
- ESM dist/index.mjs 10.62 KB
16
- ESM ⚡️ Build success in 173ms
17
- DTS Build start
18
- DTS ⚡️ Build success in 9231ms
19
- DTS dist/index.d.ts 557.00 B
20
- DTS dist/index.d.mts 557.00 B
@@ -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
- CLI Building entry: src/index.ts
10
- CLI Using tsconfig: tsconfig.json
11
- CLI tsup v8.3.5
12
- CLI Target: es2019
13
- CJS Build start
14
- ESM Build start
15
- CJS You have emitDecoratorMetadata enabled but @swc/core was not installed, skipping swc plugin
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 154ms
19
- ESM dist/index.mjs 10.62 KB
20
- ESM ⚡️ Build success in 154ms
21
- DTS Build start
22
- DTS ⚡️ Build success in 9625ms
23
- DTS dist/index.d.ts 557.00 B
24
- DTS dist/index.d.mts 557.00 B
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
@@ -1,3 +0,0 @@
1
- import packages from '@pocket-tools/eslint-config/packages';
2
- import tseslint from 'typescript-eslint';
3
- export default tseslint.config(...packages);
package/jest.config.js DELETED
@@ -1,6 +0,0 @@
1
- module.exports = {
2
- preset: 'ts-jest',
3
- testEnvironment: 'node',
4
- testMatch: ['**/?(*.)+(jest|spec).[jt]s?(x)'],
5
- testPathIgnorePatterns: ['/dist/'],
6
- };
package/tsconfig.json DELETED
@@ -1,9 +0,0 @@
1
- {
2
- "extends": "tsconfig/library.json",
3
- "compilerOptions": {
4
- "outDir": "dist",
5
- "rootDir": "src"
6
- },
7
- "exclude": ["node_modules", "dist", "**/*.spec.ts"],
8
- "include": ["src/**/*.ts", "src/config"]
9
- }