@podium/client 5.3.6 → 5.4.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.
- package/CHANGELOG.md +7 -0
- package/lib/http-outgoing.js +12 -0
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [5.4.0](https://github.com/podium-lib/client/compare/v5.3.6...v5.4.0) (2025-08-07)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* forward traceparent and tracestate headers ([#474](https://github.com/podium-lib/client/issues/474)) ([717e880](https://github.com/podium-lib/client/commit/717e8809afcf7a56e17dff602e213578c36937d4))
|
|
7
|
+
|
|
1
8
|
## [5.3.6](https://github.com/podium-lib/client/compare/v5.3.5...v5.3.6) (2025-07-02)
|
|
2
9
|
|
|
3
10
|
|
package/lib/http-outgoing.js
CHANGED
|
@@ -136,6 +136,18 @@ export default class PodletClientHttpOutgoing extends PassThrough {
|
|
|
136
136
|
|
|
137
137
|
this.#headers = {};
|
|
138
138
|
|
|
139
|
+
// We want to automatically forward the traceparent and tracestate
|
|
140
|
+
// HTTP headers as-is (no `podium-` prefix) for the automatic
|
|
141
|
+
// association between OpenTelemetry traces in a distributed system.
|
|
142
|
+
if (this.#incoming?.request?.headers?.['traceparent']) {
|
|
143
|
+
this.#headers['traceparent'] =
|
|
144
|
+
this.#incoming.request.headers['traceparent'];
|
|
145
|
+
}
|
|
146
|
+
if (this.#incoming?.request?.headers?.['tracestate']) {
|
|
147
|
+
this.#headers['tracestate'] =
|
|
148
|
+
this.#incoming.request.headers['tracestate'];
|
|
149
|
+
}
|
|
150
|
+
|
|
139
151
|
// How long the manifest should be cached before refetched
|
|
140
152
|
this.#maxAge = maxAge;
|
|
141
153
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@podium/client",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.4.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -101,29 +101,29 @@
|
|
|
101
101
|
"undici": "6.21.3"
|
|
102
102
|
},
|
|
103
103
|
"devDependencies": {
|
|
104
|
-
"@podium/eslint-config": "1.0.
|
|
104
|
+
"@podium/eslint-config": "1.0.18",
|
|
105
105
|
"@podium/podlet": "5.2.4",
|
|
106
|
-
"@podium/semantic-release-config": "2.0.
|
|
106
|
+
"@podium/semantic-release-config": "2.0.2",
|
|
107
107
|
"@podium/test-utils": "3.0.18",
|
|
108
108
|
"@podium/typescript-config": "1.0.0",
|
|
109
109
|
"@semantic-release/changelog": "6.0.3",
|
|
110
110
|
"@semantic-release/git": "10.0.1",
|
|
111
111
|
"@semantic-release/github": "10.3.5",
|
|
112
|
-
"@semantic-release/npm": "12.0.
|
|
112
|
+
"@semantic-release/npm": "12.0.2",
|
|
113
113
|
"@semantic-release/release-notes-generator": "13.0.0",
|
|
114
114
|
"@sinonjs/fake-timers": "11.3.1",
|
|
115
115
|
"@types/readable-stream": "4.0.21",
|
|
116
116
|
"benchmark": "2.1.4",
|
|
117
|
-
"eslint": "9.
|
|
118
|
-
"eslint-config-prettier": "9.1.
|
|
119
|
-
"eslint-plugin-prettier": "5.
|
|
117
|
+
"eslint": "9.32.0",
|
|
118
|
+
"eslint-config-prettier": "9.1.2",
|
|
119
|
+
"eslint-plugin-prettier": "5.5.3",
|
|
120
120
|
"express": "4.21.2",
|
|
121
121
|
"get-stream": "9.0.1",
|
|
122
122
|
"http-proxy": "1.18.1",
|
|
123
123
|
"is-stream": "4.0.1",
|
|
124
124
|
"npm-run-all2": "6.2.6",
|
|
125
|
-
"prettier": "3.
|
|
126
|
-
"semantic-release": "24.2.
|
|
125
|
+
"prettier": "3.6.2",
|
|
126
|
+
"semantic-release": "24.2.7",
|
|
127
127
|
"tap": "18.8.0",
|
|
128
128
|
"typescript": "5.8.3",
|
|
129
129
|
"why-is-node-running": "3.2.2"
|