@platformatic/watt-extra 1.8.3 → 1.9.1

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/lib/watt.js CHANGED
@@ -228,7 +228,10 @@ class Watt {
228
228
  hostname: this.#env.PLT_APP_HOSTNAME || '0.0.0.0',
229
229
  port: this.#env.PLT_METRICS_PORT || 9090,
230
230
  labels,
231
- applicationLabel: this.#instanceConfig?.applicationMetricsLabel ?? 'serviceId'
231
+ applicationLabel: this.#instanceConfig?.applicationMetricsLabel ?? 'serviceId',
232
+ httpCustomLabels: [
233
+ { name: 'callerTelemetryId', header: 'x-plt-telemetry-id', default: '' }
234
+ ]
232
235
  }
233
236
 
234
237
  if (this.#env.PLT_DISABLE_FLAMEGRAPHS !== true) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/watt-extra",
3
- "version": "1.8.3",
3
+ "version": "1.9.1",
4
4
  "description": "The Platformatic runtime manager",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -83,7 +83,10 @@ test('should spawn a service app settings labels for metrics', async (t) => {
83
83
  instanceId: app.instanceId,
84
84
  applicationId,
85
85
  },
86
- applicationLabel: 'serviceId'
86
+ applicationLabel: 'serviceId',
87
+ httpCustomLabels: [
88
+ { name: 'callerTelemetryId', header: 'x-plt-telemetry-id', default: '' }
89
+ ]
87
90
  }
88
91
  assert.deepStrictEqual(metrics, expectedMetrics)
89
92
  })