@mecanizou/telemetry-hub 1.0.4 → 1.0.5

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.
Files changed (72) hide show
  1. package/.github/workflows/pull_request.yml +32 -32
  2. package/.github/workflows/release.yml +129 -129
  3. package/.prettierignore +4 -4
  4. package/CHANGELOG.md +36 -28
  5. package/DOCS_GUIDE.md +151 -151
  6. package/README.md +248 -248
  7. package/dist/core/__tests__/logger-types.test.js +1 -1
  8. package/dist/core/__tests__/logger.test.js +1 -1
  9. package/dist/core/__tests__/tracer.test.js +1 -1
  10. package/dist/core/index.js +1 -1
  11. package/dist/core/logger-types.js +1 -1
  12. package/dist/core/logger.js +1 -1
  13. package/dist/core/tracer-types.js +1 -1
  14. package/dist/core/tracer.js +1 -1
  15. package/dist/index.js +1 -1
  16. package/dist/sst/__tests__/telemetry.test.js +1 -1
  17. package/dist/sst/index.js +1 -1
  18. package/dist/sst/middy/index.js +1 -1
  19. package/dist/sst/middy/middleware.js +1 -1
  20. package/dist/sst/telemetry.js +1 -1
  21. package/dist/tsed/__tests__/config.test.js +1 -1
  22. package/dist/tsed/__tests__/service.test.js +1 -1
  23. package/dist/tsed/config.js +1 -1
  24. package/dist/tsed/index.js +1 -1
  25. package/dist/tsed/log-telemetry.js +1 -1
  26. package/dist/tsed/service.js +1 -1
  27. package/dist/tsed/sync-log-record-processor.js +1 -1
  28. package/package.json +72 -72
  29. package/release.config.js +23 -23
  30. package/vitest.config.ts +22 -22
  31. package/dist/telemetry/core/__tests__/logger-types.test.d.ts +0 -1
  32. package/dist/telemetry/core/__tests__/logger-types.test.js +0 -325
  33. package/dist/telemetry/core/__tests__/logger.test.d.ts +0 -1
  34. package/dist/telemetry/core/__tests__/logger.test.js +0 -337
  35. package/dist/telemetry/core/__tests__/tracer.test.d.ts +0 -1
  36. package/dist/telemetry/core/__tests__/tracer.test.js +0 -330
  37. package/dist/telemetry/core/index.d.ts +0 -4
  38. package/dist/telemetry/core/index.js +0 -8
  39. package/dist/telemetry/core/logger-types.d.ts +0 -43
  40. package/dist/telemetry/core/logger-types.js +0 -3
  41. package/dist/telemetry/core/logger.d.ts +0 -13
  42. package/dist/telemetry/core/logger.js +0 -123
  43. package/dist/telemetry/core/tracer-types.d.ts +0 -50
  44. package/dist/telemetry/core/tracer-types.js +0 -3
  45. package/dist/telemetry/core/tracer.d.ts +0 -10
  46. package/dist/telemetry/core/tracer.js +0 -114
  47. package/dist/telemetry/index.d.ts +0 -3
  48. package/dist/telemetry/index.js +0 -20
  49. package/dist/telemetry/sst/__tests__/telemetry.test.d.ts +0 -1
  50. package/dist/telemetry/sst/__tests__/telemetry.test.js +0 -138
  51. package/dist/telemetry/sst/index.d.ts +0 -1
  52. package/dist/telemetry/sst/index.js +0 -18
  53. package/dist/telemetry/sst/middy/index.d.ts +0 -1
  54. package/dist/telemetry/sst/middy/index.js +0 -18
  55. package/dist/telemetry/sst/middy/middleware.d.ts +0 -5
  56. package/dist/telemetry/sst/middy/middleware.js +0 -157
  57. package/dist/telemetry/sst/telemetry.d.ts +0 -4
  58. package/dist/telemetry/sst/telemetry.js +0 -121
  59. package/dist/telemetry/tsed/__tests__/config.test.d.ts +0 -1
  60. package/dist/telemetry/tsed/__tests__/config.test.js +0 -146
  61. package/dist/telemetry/tsed/__tests__/service.test.d.ts +0 -1
  62. package/dist/telemetry/tsed/__tests__/service.test.js +0 -63
  63. package/dist/telemetry/tsed/config.d.ts +0 -26
  64. package/dist/telemetry/tsed/config.js +0 -166
  65. package/dist/telemetry/tsed/index.d.ts +0 -4
  66. package/dist/telemetry/tsed/index.js +0 -21
  67. package/dist/telemetry/tsed/log-telemetry.d.ts +0 -1
  68. package/dist/telemetry/tsed/log-telemetry.js +0 -196
  69. package/dist/telemetry/tsed/service.d.ts +0 -26
  70. package/dist/telemetry/tsed/service.js +0 -150
  71. package/dist/telemetry/tsed/sync-log-record-processor.d.ts +0 -11
  72. package/dist/telemetry/tsed/sync-log-record-processor.js +0 -74
@@ -1,32 +1,32 @@
1
- name: Pull Request
2
-
3
- on:
4
- pull_request:
5
- branches:
6
- - master
7
- - staging
8
-
9
- jobs:
10
- build:
11
- runs-on: ubuntu-latest
12
- steps:
13
- - name: Checkout code
14
- uses: actions/checkout@v2
15
- - name: Setup Node.js
16
- uses: actions/setup-node@v3
17
- with:
18
- node-version: '18.17.*'
19
- - name: Install npm dependencies
20
- run: npm install
21
- env:
22
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
23
- - name: Build
24
- run: npm run build
25
- - name: Unity Test
26
- run: npm test
27
- if_merged:
28
- if: github.event.pull_request.merged == true
29
- runs-on: ubuntu-latest
30
- steps:
31
- - run: |
32
- echo The PR was merged
1
+ name: Pull Request
2
+
3
+ on:
4
+ pull_request:
5
+ branches:
6
+ - master
7
+ - staging
8
+
9
+ jobs:
10
+ build:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - name: Checkout code
14
+ uses: actions/checkout@v2
15
+ - name: Setup Node.js
16
+ uses: actions/setup-node@v3
17
+ with:
18
+ node-version: "18.17.*"
19
+ - name: Install npm dependencies
20
+ run: npm install
21
+ env:
22
+ NPM_PUBLISH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
23
+ - name: Build
24
+ run: npm run build
25
+ - name: Unity Test
26
+ run: npm test
27
+ if_merged:
28
+ if: github.event.pull_request.merged == true
29
+ runs-on: ubuntu-latest
30
+ steps:
31
+ - run: |
32
+ echo The PR was merged
@@ -1,129 +1,129 @@
1
- name: 🚀 Release
2
-
3
- on:
4
- push:
5
- branches:
6
- - master
7
- - alpha
8
- - beta
9
-
10
- jobs:
11
- release:
12
- runs-on: ubuntu-latest
13
- steps:
14
- - name: Checkout Repository
15
- uses: actions/checkout@master
16
- with:
17
- fetch-depth: 0
18
- persist-credentials: false
19
-
20
- - name: Send Slack init message
21
- uses: 8398a7/action-slack@v3
22
- with:
23
- status: "custom"
24
- custom_payload: |
25
- {
26
- text: "${{ github.event.repository.name }} build initiated",
27
- attachments: [{
28
- color: '#5a9eda',
29
- fields: [
30
- {
31
- title: 'Build initiated',
32
- value: "<https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|${{ github.event.commits[0].message }}>",
33
- short: false,
34
- },
35
- {
36
- title: 'Branch',
37
- value: "${{ github.ref }}",
38
- short: true,
39
- },
40
- {
41
- title: 'Project',
42
- value: "${{ github.event.repository.name }}",
43
- short: true,
44
- },
45
- {
46
- title: 'Commit',
47
- value: "<${{ github.event.commits[0].url }}|${{ github.event.commits[0].id }}>",
48
- short: false,
49
- },
50
- {
51
- title: 'Author',
52
- value: "${{ github.actor }}",
53
- short: false,
54
- }
55
- ],
56
- }]
57
- }
58
- env:
59
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60
- SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
61
- if: always()
62
- - name: Setup Node.js
63
- uses: actions/setup-node@v3
64
- with:
65
- node-version: "24.11.*"
66
-
67
- - name: Install dependencies
68
- run: npm install
69
- env:
70
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
71
- # - name: Run Tests
72
- # run: npm test
73
- - name: Build
74
- run: npm run build
75
-
76
- - name: Semantic Release
77
- if: success()
78
- run: npx semantic-release
79
- env:
80
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
81
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
82
-
83
- - name: Send Slack finish message
84
- uses: 8398a7/action-slack@v3
85
- with:
86
- status: "custom"
87
- custom_payload: |
88
- {
89
- text: '${{ github.event.repository.name }} build ${{ steps.set_build_details.outputs.status }}',
90
- attachments: [{
91
- color: '${{ steps.set_build_details.outputs.color }}',
92
- fields: [
93
- {
94
- title: 'Build ${{ steps.set_build_details.outputs.status }}',
95
- value: "<https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|${{ github.event.commits[0].message }}>",
96
- short: false,
97
- },
98
- {
99
- title: 'Branch',
100
- value: "${{ github.ref }}",
101
- short: true,
102
- },
103
- {
104
- title: 'Project',
105
- value: "${{ github.event.repository.name }}",
106
- short: true,
107
- },
108
- {
109
- title: 'Commit',
110
- value: "<${{ github.event.commits[0].url }}|${{ github.event.commits[0].id }}>",
111
- short: false,
112
- },
113
- {
114
- title: 'Author',
115
- value: "${{ github.actor }}",
116
- short: false,
117
- },
118
- {
119
- title: 'Duration',
120
- value: "${{ steps.set_build_details.outputs.time }}",
121
- short: false,
122
- },
123
- ],
124
- }]
125
- }
126
- env:
127
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
128
- SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
129
- if: always()
1
+ name: 🚀 Release
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ - alpha
8
+ - beta
9
+
10
+ jobs:
11
+ release:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - name: Checkout Repository
15
+ uses: actions/checkout@master
16
+ with:
17
+ fetch-depth: 0
18
+ persist-credentials: false
19
+
20
+ - name: Send Slack init message
21
+ uses: 8398a7/action-slack@v3
22
+ with:
23
+ status: "custom"
24
+ custom_payload: |
25
+ {
26
+ text: "${{ github.event.repository.name }} build initiated",
27
+ attachments: [{
28
+ color: '#5a9eda',
29
+ fields: [
30
+ {
31
+ title: 'Build initiated',
32
+ value: "<https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|${{ github.event.commits[0].message }}>",
33
+ short: false,
34
+ },
35
+ {
36
+ title: 'Branch',
37
+ value: "${{ github.ref }}",
38
+ short: true,
39
+ },
40
+ {
41
+ title: 'Project',
42
+ value: "${{ github.event.repository.name }}",
43
+ short: true,
44
+ },
45
+ {
46
+ title: 'Commit',
47
+ value: "<${{ github.event.commits[0].url }}|${{ github.event.commits[0].id }}>",
48
+ short: false,
49
+ },
50
+ {
51
+ title: 'Author',
52
+ value: "${{ github.actor }}",
53
+ short: false,
54
+ }
55
+ ],
56
+ }]
57
+ }
58
+ env:
59
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60
+ SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
61
+ if: always()
62
+ - name: Setup Node.js
63
+ uses: actions/setup-node@v3
64
+ with:
65
+ node-version: "24.11.*"
66
+
67
+ - name: Install dependencies
68
+ run: npm install
69
+ env:
70
+ NPM_PUBLISH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
71
+ # - name: Run Tests
72
+ # run: npm test
73
+ - name: Build
74
+ run: npm run build
75
+
76
+ - name: Semantic Release
77
+ if: success()
78
+ run: npx semantic-release
79
+ env:
80
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
81
+ NPM_PUBLISH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
82
+
83
+ - name: Send Slack finish message
84
+ uses: 8398a7/action-slack@v3
85
+ with:
86
+ status: "custom"
87
+ custom_payload: |
88
+ {
89
+ text: '${{ github.event.repository.name }} build ${{ steps.set_build_details.outputs.status }}',
90
+ attachments: [{
91
+ color: '${{ steps.set_build_details.outputs.color }}',
92
+ fields: [
93
+ {
94
+ title: 'Build ${{ steps.set_build_details.outputs.status }}',
95
+ value: "<https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|${{ github.event.commits[0].message }}>",
96
+ short: false,
97
+ },
98
+ {
99
+ title: 'Branch',
100
+ value: "${{ github.ref }}",
101
+ short: true,
102
+ },
103
+ {
104
+ title: 'Project',
105
+ value: "${{ github.event.repository.name }}",
106
+ short: true,
107
+ },
108
+ {
109
+ title: 'Commit',
110
+ value: "<${{ github.event.commits[0].url }}|${{ github.event.commits[0].id }}>",
111
+ short: false,
112
+ },
113
+ {
114
+ title: 'Author',
115
+ value: "${{ github.actor }}",
116
+ short: false,
117
+ },
118
+ {
119
+ title: 'Duration',
120
+ value: "${{ steps.set_build_details.outputs.time }}",
121
+ short: false,
122
+ },
123
+ ],
124
+ }]
125
+ }
126
+ env:
127
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
128
+ SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
129
+ if: always()
package/.prettierignore CHANGED
@@ -1,5 +1,5 @@
1
- # Ignore artifacts:
2
- package-lock.json
3
- lib
4
- coverage
1
+ # Ignore artifacts:
2
+ package-lock.json
3
+ lib
4
+ coverage
5
5
  dist
package/CHANGELOG.md CHANGED
@@ -1,28 +1,36 @@
1
- ## [1.0.4](https://github.com/mecanizou-eco/telemetry-hub/compare/v1.0.3...v1.0.4) (2026-01-13)
2
-
3
-
4
- ### Bug Fixes
5
-
6
- * version ([a2a0060](https://github.com/mecanizou-eco/telemetry-hub/commit/a2a006043cc3520095ee43d9a7e0a966a27b39a1))
7
-
8
- ## [1.0.3](https://github.com/mecanizou-eco/telemetry-hub/compare/v1.0.2...v1.0.3) (2026-01-13)
9
-
10
-
11
- ### Bug Fixes
12
-
13
- * lib versions ([6df5c57](https://github.com/mecanizou-eco/telemetry-hub/commit/6df5c57c5582a0161cca22c3a4706d59f34e4753))
14
-
15
- ## [1.0.2](https://github.com/mecanizou-eco/telemetry-hub/compare/v1.0.1...v1.0.2) (2025-12-08)
16
-
17
-
18
- ### Bug Fixes
19
-
20
- * folder struct ([09a74c9](https://github.com/mecanizou-eco/telemetry-hub/commit/09a74c92b40a84d5422fb942ed0d2fd2234f69cb))
21
- * middleware name ([83205f7](https://github.com/mecanizou-eco/telemetry-hub/commit/83205f7400afb18c85f5b464253ee4b48d0c3344))
22
-
23
- # 1.0.0 (2025-12-04)
24
-
25
-
26
- ### Features
27
-
28
- * add lint-staged ([9e70541](https://github.com/mecanizou-eco/telemetry-hub/commit/9e705418d08d1e2b1ebfc3f2d27b72fac454a77b))
1
+ ## [1.0.5](https://github.com/mecanizou-eco/telemetry-hub/compare/v1.0.4...v1.0.5) (2026-01-13)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * npm token ([11ac8ae](https://github.com/mecanizou-eco/telemetry-hub/commit/11ac8aec6ded9446c58154b5f6cbe1147bc31f49))
7
+ * npm token ([cc2bb81](https://github.com/mecanizou-eco/telemetry-hub/commit/cc2bb815d180d2c8adefc04049f34349dd93aa63))
8
+
9
+ ## [1.0.4](https://github.com/mecanizou-eco/telemetry-hub/compare/v1.0.3...v1.0.4) (2026-01-13)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * version ([a2a0060](https://github.com/mecanizou-eco/telemetry-hub/commit/a2a006043cc3520095ee43d9a7e0a966a27b39a1))
15
+
16
+ ## [1.0.3](https://github.com/mecanizou-eco/telemetry-hub/compare/v1.0.2...v1.0.3) (2026-01-13)
17
+
18
+
19
+ ### Bug Fixes
20
+
21
+ * lib versions ([6df5c57](https://github.com/mecanizou-eco/telemetry-hub/commit/6df5c57c5582a0161cca22c3a4706d59f34e4753))
22
+
23
+ ## [1.0.2](https://github.com/mecanizou-eco/telemetry-hub/compare/v1.0.1...v1.0.2) (2025-12-08)
24
+
25
+
26
+ ### Bug Fixes
27
+
28
+ * folder struct ([09a74c9](https://github.com/mecanizou-eco/telemetry-hub/commit/09a74c92b40a84d5422fb942ed0d2fd2234f69cb))
29
+ * middleware name ([83205f7](https://github.com/mecanizou-eco/telemetry-hub/commit/83205f7400afb18c85f5b464253ee4b48d0c3344))
30
+
31
+ # 1.0.0 (2025-12-04)
32
+
33
+
34
+ ### Features
35
+
36
+ * add lint-staged ([9e70541](https://github.com/mecanizou-eco/telemetry-hub/commit/9e705418d08d1e2b1ebfc3f2d27b72fac454a77b))