@pocket-tools/tracing 1.7.10 → 1.8.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 9.74 KB
14
- ESM ⚡️ Build success in 121ms
15
13
  CJS dist/index.js 11.93 KB
16
- CJS ⚡️ Build success in 123ms
14
+ CJS ⚡️ Build success in 129ms
15
+ ESM dist/index.mjs 9.74 KB
16
+ ESM ⚡️ Build success in 130ms
17
17
  DTS Build start
18
- DTS ⚡️ Build success in 9343ms
18
+ DTS ⚡️ Build success in 8198ms
19
19
  DTS dist/index.d.ts 557.00 B
20
20
  DTS dist/index.d.mts 557.00 B
@@ -15,74 +15,77 @@
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
17
  CJS dist/index.js 11.93 KB
18
- CJS ⚡️ Build success in 97ms
18
+ CJS ⚡️ Build success in 184ms
19
19
  ESM dist/index.mjs 9.74 KB
20
- ESM ⚡️ Build success in 101ms
20
+ ESM ⚡️ Build success in 184ms
21
21
  DTS Build start
22
- DTS ⚡️ Build success in 9251ms
22
+ DTS ⚡️ Build success in 7950ms
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
- [8:23:10 PM] [semantic-release] › ℹ Running semantic-release version 24.1.0
30
- [8:23:12 PM] [semantic-release] › ✔ Loaded plugin "verifyConditions" from "@semantic-release/exec"
31
- [8:23:12 PM] [semantic-release] › ✔ Loaded plugin "verifyConditions" from "@semantic-release/github"
32
- [8:23:12 PM] [semantic-release] › ✔ Loaded plugin "verifyRelease" from "@semantic-release/exec"
33
- [8:23:12 PM] [semantic-release] › ✔ Loaded plugin "prepare" from "@semantic-release/exec"
34
- [8:23:12 PM] [semantic-release] › ✔ Loaded plugin "publish" from "@semantic-release/exec"
35
- [8:23:12 PM] [semantic-release] › ✔ Loaded plugin "publish" from "@semantic-release/github"
36
- [8:23:12 PM] [semantic-release] › ✔ Loaded plugin "addChannel" from "@semantic-release/exec"
37
- [8:23:12 PM] [semantic-release] › ✔ Loaded plugin "addChannel" from "@semantic-release/github"
38
- [8:23:18 PM] [semantic-release] › ✔ Run automated release from branch main on repository git+https://github.com/Pocket/pocket-monorepo.git
39
- [8:23:18 PM] [semantic-release] › ✔ Allowed to push to the Git repository
40
- [8:23:18 PM] [semantic-release] › ℹ Start step "verifyConditions" of plugin "@semantic-release/exec"
41
- [8:23:18 PM] [semantic-release] › ✔ Completed step "verifyConditions" of plugin "@semantic-release/exec"
42
- [8:23:18 PM] [semantic-release] › ℹ Start step "verifyConditions" of plugin "@semantic-release/github"
43
- [8:23:18 PM] [semantic-release] [@semantic-release/github] › ℹ Verify GitHub authentication (https://api.github.com)
44
- [8:23:18 PM] [semantic-release] › ✔ Completed step "verifyConditions" of plugin "@semantic-release/github"
45
- [8:23:18 PM] [semantic-release] › ℹ Found git tag @pocket-tools/tracing-v1.7.9 associated with version 1.7.9 on branch main
46
- [8:23:18 PM] [semantic-release] › ℹ Found 3 commits since last release
47
- [8:23:18 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
48
- [8:23:18 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Start step "analyzeCommits" of plugin "@semantic-release/commit-analyzer"
49
- [8:23:18 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Found 1 commits for package @pocket-tools/tracing since last release
50
- [8:23:18 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Analyzing commit: fix(deps): update dependency @opentelemetry/auto-instrumentations-node to v0.50.2 (#855)
29
+ [10:56:35 PM] [semantic-release] › ℹ Running semantic-release version 24.1.0
30
+ [10:56:36 PM] [semantic-release] › ✔ Loaded plugin "verifyConditions" from "@semantic-release/exec"
31
+ [10:56:36 PM] [semantic-release] › ✔ Loaded plugin "verifyConditions" from "@semantic-release/github"
32
+ [10:56:36 PM] [semantic-release] › ✔ Loaded plugin "verifyRelease" from "@semantic-release/exec"
33
+ [10:56:36 PM] [semantic-release] › ✔ Loaded plugin "prepare" from "@semantic-release/exec"
34
+ [10:56:36 PM] [semantic-release] › ✔ Loaded plugin "publish" from "@semantic-release/exec"
35
+ [10:56:36 PM] [semantic-release] › ✔ Loaded plugin "publish" from "@semantic-release/github"
36
+ [10:56:36 PM] [semantic-release] › ✔ Loaded plugin "addChannel" from "@semantic-release/exec"
37
+ [10:56:36 PM] [semantic-release] › ✔ Loaded plugin "addChannel" from "@semantic-release/github"
38
+ [10:56:41 PM] [semantic-release] › ✔ Run automated release from branch main on repository git+https://github.com/Pocket/pocket-monorepo.git
39
+ [10:56:41 PM] [semantic-release] › ✔ Allowed to push to the Git repository
40
+ [10:56:41 PM] [semantic-release] › ℹ Start step "verifyConditions" of plugin "@semantic-release/exec"
41
+ [10:56:41 PM] [semantic-release] › ✔ Completed step "verifyConditions" of plugin "@semantic-release/exec"
42
+ [10:56:41 PM] [semantic-release] › ℹ Start step "verifyConditions" of plugin "@semantic-release/github"
43
+ [10:56:41 PM] [semantic-release] [@semantic-release/github] › ℹ Verify GitHub authentication (https://api.github.com)
44
+ [10:56:41 PM] [semantic-release] › ✔ Completed step "verifyConditions" of plugin "@semantic-release/github"
45
+ [10:56:41 PM] [semantic-release] › ℹ Found git tag @pocket-tools/tracing-v1.7.10 associated with version 1.7.10 on branch main
46
+ [10:56:41 PM] [semantic-release] › ℹ Found 2 commits since last release
47
+ [10:56:41 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
48
+ [10:56:41 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Start step "analyzeCommits" of plugin "@semantic-release/commit-analyzer"
49
+ [10:56:42 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Found 1 commits for package @pocket-tools/tracing since last release
50
+ [10:56:42 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Analyzing commit: feat(observability): group traces for background processes in ADD (#858)
51
51
 
52
- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
53
- [8:23:18 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ The release type for the commit is patch
54
- [8:23:18 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Analysis of 1 commits complete: patch release
55
- [8:23:18 PM] [semantic-release] [[Function: semantic-release-monorepo]] ℹ Completed step "analyzeCommits" of plugin "@semantic-release/commit-analyzer"
56
- [8:23:18 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
57
- [8:23:18 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
58
- [8:23:18 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Plugin "@semantic-release/release-notes-generator" does not provide step "analyzeCommits"
59
- [8:23:18 PM] [semantic-release] › Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
60
- [8:23:18 PM] [semantic-release] › Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
61
- [8:23:18 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Start step "analyzeCommits" of plugin "@semantic-release/exec"
62
- [8:23:18 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Found 1 commits for package @pocket-tools/tracing since last release
63
- [8:23:18 PM] [semantic-release] [[Function: semantic-release-monorepo]] Completed step "analyzeCommits" of plugin "@semantic-release/exec"
64
- [8:23:18 PM] [semantic-release] › Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
65
- [8:23:18 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
66
- [8:23:18 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Plugin "@semantic-release/github" does not provide step "analyzeCommits"
67
- [8:23:18 PM] [semantic-release] › Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
68
- [8:23:18 PM] [semantic-release] › Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
69
- [8:23:18 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ No more plugins
70
- [8:23:18 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
71
- [8:23:18 PM] [semantic-release] › Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
72
- [8:23:18 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ No more plugins
73
- [8:23:18 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
74
- [8:23:18 PM] [semantic-release] › Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
75
- [8:23:18 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ No more plugins
76
- [8:23:18 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
77
- [8:23:18 PM] [semantic-release] › Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
78
- [8:23:18 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ No more plugins
79
- [8:23:18 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
80
- [8:23:18 PM] [semantic-release] › Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
81
- [8:23:18 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ No more plugins
82
- [8:23:18 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
83
- [8:23:18 PM] [semantic-release] › Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
84
- [8:23:18 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ No more plugins
85
- [8:23:18 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
86
- [8:23:18 PM] [semantic-release] › The next release version is 1.7.10
87
- [8:23:18 PM] [semantic-release] › ℹ Start step "verifyRelease" of plugin "@semantic-release/exec"
88
- [8:23:18 PM] [semantic-release] › Completed step "verifyRelease" of plugin "@semantic-release/exec"
52
+ Update documentation in tracing package on how to
53
+ do local overrides for 100% sampling of traces.
54
+
55
+ Add launch scripts for attaching and launching
56
+ the ADD service.
57
+ [10:56:42 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ The release type for the commit is minor
58
+ [10:56:42 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Analysis of 1 commits complete: minor release
59
+ [10:56:42 PM] [semantic-release] [[Function: semantic-release-monorepo]] Completed step "analyzeCommits" of plugin "@semantic-release/commit-analyzer"
60
+ [10:56:42 PM] [semantic-release] › Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
61
+ [10:56:42 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
62
+ [10:56:42 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Plugin "@semantic-release/release-notes-generator" does not provide step "analyzeCommits"
63
+ [10:56:42 PM] [semantic-release] › Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
64
+ [10:56:42 PM] [semantic-release] › Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
65
+ [10:56:42 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Start step "analyzeCommits" of plugin "@semantic-release/exec"
66
+ [10:56:42 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Found 1 commits for package @pocket-tools/tracing since last release
67
+ [10:56:42 PM] [semantic-release] [[Function: semantic-release-monorepo]] Completed step "analyzeCommits" of plugin "@semantic-release/exec"
68
+ [10:56:42 PM] [semantic-release] › Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
69
+ [10:56:42 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
70
+ [10:56:42 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ Plugin "@semantic-release/github" does not provide step "analyzeCommits"
71
+ [10:56:42 PM] [semantic-release] › Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
72
+ [10:56:42 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
73
+ [10:56:42 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ No more plugins
74
+ [10:56:42 PM] [semantic-release] › Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
75
+ [10:56:42 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
76
+ [10:56:42 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ No more plugins
77
+ [10:56:42 PM] [semantic-release] › Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
78
+ [10:56:42 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
79
+ [10:56:42 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ No more plugins
80
+ [10:56:42 PM] [semantic-release] › Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
81
+ [10:56:42 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
82
+ [10:56:42 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ No more plugins
83
+ [10:56:42 PM] [semantic-release] › Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
84
+ [10:56:42 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
85
+ [10:56:42 PM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ No more plugins
86
+ [10:56:42 PM] [semantic-release] › Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
87
+ [10:56:42 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
88
+ [10:56:42 PM] [semantic-release] [[Function: semantic-release-monorepo]] No more plugins
89
+ [10:56:42 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
90
+ [10:56:42 PM] [semantic-release] › ℹ The next release version is 1.8.0
91
+ [10:56:42 PM] [semantic-release] › ℹ Start step "verifyRelease" of plugin "@semantic-release/exec"
package/README.md CHANGED
@@ -1,3 +1,36 @@
1
1
  # Tracing
2
2
 
3
3
  We use this package to implement tracing within our servers. Requires Sentry as our trace propogator.
4
+
5
+ # Local/Test Setup
6
+
7
+ We use a feature flag to control the percentage of traces which we sample and send to our collector.
8
+
9
+ When running locally, you can construct a mock Unleash client which mimics this feature flag:
10
+
11
+ ```
12
+ const unleash = mockUnleash([
13
+ {
14
+ name: 'perm.backend.sentry-trace-sampler-rate',
15
+ enabled: true,
16
+ strategies: [
17
+ {
18
+ name: 'default',
19
+ constraints: [],
20
+ parameters: {
21
+ rollout: '100',
22
+ stickiness: 'default',
23
+ groupId: 'perm.backend.sentry-trace-sampler-rate',
24
+ },
25
+ variants: [
26
+ {
27
+ name: 'samplePercent',
28
+ weight: 1000,
29
+ payload: { type: PayloadType.NUMBER, value: '1.0' },
30
+ },
31
+ ],
32
+ },
33
+ ],
34
+ },
35
+ ]).unleash;
36
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocket-tools/tracing",
3
- "version": "1.7.10",
3
+ "version": "1.8.0",
4
4
  "description": "Utilities for tracing",
5
5
  "keywords": [
6
6
  "tracing"