@pocket-tools/tracing 1.5.0 → 1.6.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.
@@ -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
- ESM dist/index.mjs 4.85 KB
14
- ESM ⚡️ Build success in 129ms
15
- CJS dist/index.js 7.01 KB
16
- CJS ⚡️ Build success in 134ms
13
+ CJS dist/index.js 6.46 KB
14
+ CJS ⚡️ Build success in 142ms
15
+ ESM dist/index.mjs 4.36 KB
16
+ ESM ⚡️ Build success in 152ms
17
17
  DTS Build start
18
- DTS ⚡️ Build success in 9098ms
18
+ DTS ⚡️ Build success in 9242ms
19
19
  DTS dist/index.d.ts 652.00 B
20
20
  DTS dist/index.d.mts 652.00 B
@@ -14,96 +14,79 @@
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 7.01 KB
18
- CJS ⚡️ Build success in 143ms
19
- ESM dist/index.mjs 4.85 KB
20
- ESM ⚡️ Build success in 151ms
17
+ ESM dist/index.mjs 4.36 KB
18
+ ESM ⚡️ Build success in 119ms
19
+ CJS dist/index.js 6.46 KB
20
+ CJS ⚡️ Build success in 119ms
21
21
  DTS Build start
22
- DTS ⚡️ Build success in 6739ms
22
+ DTS ⚡️ Build success in 6821ms
23
23
  DTS dist/index.d.ts 652.00 B
24
24
  DTS dist/index.d.mts 652.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
- [5:02:12 PM] [semantic-release] › ℹ Running semantic-release version 24.1.0
30
- [5:02:13 PM] [semantic-release] › ✔ Loaded plugin "verifyConditions" from "@semantic-release/npm"
31
- [5:02:13 PM] [semantic-release] › ✔ Loaded plugin "verifyConditions" from "@semantic-release/github"
32
- [5:02:13 PM] [semantic-release] › ✔ Loaded plugin "prepare" from "@semantic-release/npm"
33
- [5:02:13 PM] [semantic-release] › ✔ Loaded plugin "publish" from "@semantic-release/npm"
34
- [5:02:13 PM] [semantic-release] › ✔ Loaded plugin "publish" from "@semantic-release/github"
35
- [5:02:13 PM] [semantic-release] › ✔ Loaded plugin "addChannel" from "@semantic-release/npm"
36
- [5:02:13 PM] [semantic-release] › ✔ Loaded plugin "addChannel" from "@semantic-release/github"
37
- [5:02:16 PM] [semantic-release] › ✔ Run automated release from branch main on repository git+https://github.com/Pocket/pocket-monorepo.git
38
- [5:02:16 PM] [semantic-release] › ✔ Allowed to push to the Git repository
39
- [5:02:16 PM] [semantic-release] › ℹ Start step "verifyConditions" of plugin "@semantic-release/npm"
40
- [5:02:16 PM] [semantic-release] [@semantic-release/npm] › ℹ Verify authentication for registry https://registry.npmjs.org/
41
- [5:02:16 PM] [semantic-release] [@semantic-release/npm] › ℹ Wrote NPM_TOKEN to /tmp/49a729215fc1cb1ff393d0668244db73/.npmrc
29
+ [6:51:32 PM] [semantic-release] › ℹ Running semantic-release version 24.1.0
30
+ [6:51:33 PM] [semantic-release] › ✔ Loaded plugin "verifyConditions" from "@semantic-release/npm"
31
+ [6:51:33 PM] [semantic-release] › ✔ Loaded plugin "verifyConditions" from "@semantic-release/github"
32
+ [6:51:33 PM] [semantic-release] › ✔ Loaded plugin "prepare" from "@semantic-release/npm"
33
+ [6:51:33 PM] [semantic-release] › ✔ Loaded plugin "publish" from "@semantic-release/npm"
34
+ [6:51:33 PM] [semantic-release] › ✔ Loaded plugin "publish" from "@semantic-release/github"
35
+ [6:51:33 PM] [semantic-release] › ✔ Loaded plugin "addChannel" from "@semantic-release/npm"
36
+ [6:51:33 PM] [semantic-release] › ✔ Loaded plugin "addChannel" from "@semantic-release/github"
37
+ [6:51:35 PM] [semantic-release] › ✔ Run automated release from branch main on repository git+https://github.com/Pocket/pocket-monorepo.git
38
+ [6:51:35 PM] [semantic-release] › ✔ Allowed to push to the Git repository
39
+ [6:51:35 PM] [semantic-release] › ℹ Start step "verifyConditions" of plugin "@semantic-release/npm"
40
+ [6:51:35 PM] [semantic-release] [@semantic-release/npm] › ℹ Verify authentication for registry https://registry.npmjs.org/
41
+ [6:51:35 PM] [semantic-release] [@semantic-release/npm] › ℹ Wrote NPM_TOKEN to /tmp/1a238100d0f8a4f91c347cef98b3615a/.npmrc
42
42
  pocket-npm
43
- [5:02:17 PM] [semantic-release] › ✔ Completed step "verifyConditions" of plugin "@semantic-release/npm"
44
- [5:02:17 PM] [semantic-release] › ℹ Start step "verifyConditions" of plugin "@semantic-release/github"
45
- [5:02:17 PM] [semantic-release] [@semantic-release/github] › ℹ Verify GitHub authentication (https://api.github.com)
46
- [5:02:17 PM] [semantic-release] › ✔ Completed step "verifyConditions" of plugin "@semantic-release/github"
47
- [5:02:17 PM] [semantic-release] › ℹ Found git tag @pocket-tools/tracing-v1.4.9 associated with version 1.4.9 on branch main
48
- [5:02:17 PM] [semantic-release] › ℹ Found 1 commits since last release
49
- [5:02:17 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
50
- [5:02:17 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Start step "analyzeCommits" of plugin "@semantic-release/commit-analyzer"
51
- [5:02:17 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Found 1 commits for package @pocket-tools/tracing since last release
52
- [5:02:17 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Analyzing commit: feat(otel): adding in basic tracing via otel (#794)
43
+ [6:51:36 PM] [semantic-release] › ✔ Completed step "verifyConditions" of plugin "@semantic-release/npm"
44
+ [6:51:36 PM] [semantic-release] › ℹ Start step "verifyConditions" of plugin "@semantic-release/github"
45
+ [6:51:36 PM] [semantic-release] [@semantic-release/github] › ℹ Verify GitHub authentication (https://api.github.com)
46
+ [6:51:36 PM] [semantic-release] › ✔ Completed step "verifyConditions" of plugin "@semantic-release/github"
47
+ [6:51:36 PM] [semantic-release] › ℹ Found git tag @pocket-tools/tracing-v1.5.1 associated with version 1.5.1 on branch main
48
+ [6:51:36 PM] [semantic-release] › ℹ Found 1 commits since last release
49
+ [6:51:36 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
50
+ [6:51:36 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Start step "analyzeCommits" of plugin "@semantic-release/commit-analyzer"
51
+ [6:51:36 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Found 1 commits for package @pocket-tools/tracing since last release
52
+ [6:51:36 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Analyzing commit: feat(otel): adding in basic tracing via otel (#798)
53
53
 
54
- * feat(otel): adding in basic tracing via otel
54
+ * Revert "Revert "feat(otel): adding in basic tracing via otel (#794)" (#797)"
55
55
 
56
- * fix(otel): adding in otel propogation
56
+ This reverts commit 59af83e42d62de7d3ef3563a8a633fff83408317.
57
57
 
58
- * fix(otel): moving to the otel
59
-
60
- * fix(otel): send otel to gcp
61
-
62
- * fix(keys): import full key
63
-
64
- * fix(secret): moving to a secret without -
65
-
66
- * fix(otel): building a simple custom otel container
67
-
68
- * fix(tracing): ignore well-known
69
-
70
- * fix(tracing): ignore well-known
71
-
72
- * fix(otel): updating metric exporter
73
-
74
- * feat(costs): adding in query costs
75
-
76
- * fix(otel): adding in new otel exporter to all
77
-
78
- * fix(docker): adding in docker image building
79
- [5:02:17 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ The release type for the commit is minor
80
- [5:02:17 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Analysis of 1 commits complete: minor release
81
- [5:02:17 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Completed step "analyzeCommits" of plugin "@semantic-release/commit-analyzer"
82
- [5:02:17 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
83
- [5:02:17 PM] [semantic-release] › Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
84
- [5:02:17 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Plugin "@semantic-release/release-notes-generator" does not provide step "analyzeCommits"
85
- [5:02:17 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
86
- [5:02:17 PM] [semantic-release] › Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
87
- [5:02:17 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Plugin "@semantic-release/npm" does not provide step "analyzeCommits"
88
- [5:02:17 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
89
- [5:02:17 PM] [semantic-release] › Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
90
- [5:02:17 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Plugin "@semantic-release/github" does not provide step "analyzeCommits"
91
- [5:02:17 PM] [semantic-release] › Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
92
- [5:02:17 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
93
- [5:02:17 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ No more plugins
94
- [5:02:17 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
95
- [5:02:17 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
96
- [5:02:17 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ No more plugins
97
- [5:02:17 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
98
- [5:02:17 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
99
- [5:02:17 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ No more plugins
100
- [5:02:17 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
101
- [5:02:17 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
102
- [5:02:17 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ No more plugins
103
- [5:02:17 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
104
- [5:02:17 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
105
- [5:02:17 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ No more plugins
106
- [5:02:17 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
107
- [5:02:17 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
108
- [5:02:17 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ No more plugins
109
- [5:02:17 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
58
+ * feat(metrics): disabling metrics for now
59
+ [6:51:36 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ The release type for the commit is minor
60
+ [6:51:36 PM] [semantic-release] [[Function: semantic-release-monorepo]] ℹ Analysis of 1 commits complete: minor release
61
+ [6:51:36 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Completed step "analyzeCommits" of plugin "@semantic-release/commit-analyzer"
62
+ [6:51:36 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
63
+ [6:51:36 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
64
+ [6:51:36 PM] [semantic-release] [[Function: semantic-release-monorepo]] ℹ Plugin "@semantic-release/release-notes-generator" does not provide step "analyzeCommits"
65
+ [6:51:36 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
66
+ [6:51:36 PM] [semantic-release] ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
67
+ [6:51:36 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Plugin "@semantic-release/npm" does not provide step "analyzeCommits"
68
+ [6:51:36 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
69
+ [6:51:36 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
70
+ [6:51:36 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Plugin "@semantic-release/github" does not provide step "analyzeCommits"
71
+ [6:51:36 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
72
+ [6:51:36 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
73
+ [6:51:36 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ No more plugins
74
+ [6:51:36 PM] [semantic-release] ✔ Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
75
+ [6:51:36 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
76
+ [6:51:36 PM] [semantic-release] [[Function: semantic-release-monorepo]] ℹ No more plugins
77
+ [6:51:36 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
78
+ [6:51:36 PM] [semantic-release] ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
79
+ [6:51:36 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ No more plugins
80
+ [6:51:36 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
81
+ [6:51:36 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
82
+ [6:51:36 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ No more plugins
83
+ [6:51:36 PM] [semantic-release] › Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
84
+ [6:51:36 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
85
+ [6:51:36 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ No more plugins
86
+ [6:51:36 PM] [semantic-release] › Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
87
+ [6:51:36 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
88
+ [6:51:36 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ No more plugins
89
+ [6:51:36 PM] [semantic-release] › Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
90
+ [6:51:36 PM] [semantic-release] › ℹ The next release version is 1.6.0
91
+ [6:51:36 PM] [semantic-release] › Start step "generateNotes" of plugin "[Function: semantic-release-monorepo]"
92
+ [6:51:36 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Plugin "@semantic-release/commit-analyzer" does not provide step "generateNotes"
package/dist/index.js CHANGED
@@ -44,8 +44,6 @@ var import_instrumentation = require("@prisma/instrumentation");
44
44
  var import_resources = require("@opentelemetry/resources");
45
45
  var import_semantic_conventions = require("@opentelemetry/semantic-conventions");
46
46
  var import_opentelemetry = require("@sentry/opentelemetry");
47
- var import_sdk_metrics = require("@opentelemetry/sdk-metrics");
48
- var import_exporter_metrics_otlp_grpc = require("@opentelemetry/exporter-metrics-otlp-grpc");
49
47
  var import_auto_instrumentations_node = require("@opentelemetry/auto-instrumentations-node");
50
48
  var import_resources2 = require("@opentelemetry/resources");
51
49
  var Sentry = __toESM(require("@sentry/node"));
@@ -99,13 +97,6 @@ async function nodeSDKBuilder(config) {
99
97
  //collector url
100
98
  url: `http://${config.host}:${config.grpcDefaultPort}`
101
99
  });
102
- const _metricReader = new import_sdk_metrics.PeriodicExportingMetricReader({
103
- exporter: new import_exporter_metrics_otlp_grpc.OTLPMetricExporter({
104
- url: `http://${config.host}:${config.grpcDefaultPort}`
105
- }),
106
- exportIntervalMillis: 1e4
107
- // once every 10 seconds, GCP supports 1 every 5 seconds for custom metrics https://cloud.google.com/monitoring/quotas#custom_metrics_quotas
108
- });
109
100
  const instrumentations = [
110
101
  (0, import_auto_instrumentations_node.getNodeAutoInstrumentations)({
111
102
  "@opentelemetry/instrumentation-fs": {
@@ -142,7 +133,7 @@ async function nodeSDKBuilder(config) {
142
133
  idGenerator: new import_id_generator_aws_xray.AWSXRayIdGenerator(),
143
134
  spanProcessors: [new import_sdk_trace_base.BatchSpanProcessor(_traceExporter)],
144
135
  traceExporter: _traceExporter,
145
- metricReader: _metricReader,
136
+ // metricReader: _metricReader,
146
137
  // TODO: Remove after issue is fixed
147
138
  // https://github.com/open-telemetry/opentelemetry-js/issues/4638
148
139
  resourceDetectors: [
package/dist/index.mjs CHANGED
@@ -15,8 +15,6 @@ import {
15
15
  ATTR_SERVICE_VERSION
16
16
  } from "@opentelemetry/semantic-conventions";
17
17
  import { SentrySampler } from "@sentry/opentelemetry";
18
- import { PeriodicExportingMetricReader } from "@opentelemetry/sdk-metrics";
19
- import { OTLPMetricExporter } from "@opentelemetry/exporter-metrics-otlp-grpc";
20
18
  import { getNodeAutoInstrumentations } from "@opentelemetry/auto-instrumentations-node";
21
19
  import {
22
20
  envDetectorSync,
@@ -77,13 +75,6 @@ async function nodeSDKBuilder(config) {
77
75
  //collector url
78
76
  url: `http://${config.host}:${config.grpcDefaultPort}`
79
77
  });
80
- const _metricReader = new PeriodicExportingMetricReader({
81
- exporter: new OTLPMetricExporter({
82
- url: `http://${config.host}:${config.grpcDefaultPort}`
83
- }),
84
- exportIntervalMillis: 1e4
85
- // once every 10 seconds, GCP supports 1 every 5 seconds for custom metrics https://cloud.google.com/monitoring/quotas#custom_metrics_quotas
86
- });
87
78
  const instrumentations = [
88
79
  getNodeAutoInstrumentations({
89
80
  "@opentelemetry/instrumentation-fs": {
@@ -120,7 +111,7 @@ async function nodeSDKBuilder(config) {
120
111
  idGenerator: new AWSXRayIdGenerator(),
121
112
  spanProcessors: [new BatchSpanProcessor(_traceExporter)],
122
113
  traceExporter: _traceExporter,
123
- metricReader: _metricReader,
114
+ // metricReader: _metricReader,
124
115
  // TODO: Remove after issue is fixed
125
116
  // https://github.com/open-telemetry/opentelemetry-js/issues/4638
126
117
  resourceDetectors: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocket-tools/tracing",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "description": "Utilities for tracing",
5
5
  "keywords": [
6
6
  "tracing"