@vtex/api 7.3.1-beta.0 → 7.3.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/CHANGELOG.md CHANGED
@@ -7,6 +7,22 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [7.3.1] - 2026-01-06
11
+
12
+ ### Added
13
+ - OpenTelemetry context-based base attributes to DiagnosticsMetrics
14
+
15
+ ### Fixed
16
+ - Merge request context attributes with custom metrics - custom metrics now automatically include request-scoped base attributes (account, route_id, status_code, etc.) using OpenTelemetry Context API
17
+
18
+ ## [7.3.0] - 2025-12-16
19
+ ### Changed
20
+ - Update temporality to delta in metrics client
21
+ - New deploy pipeline with npm publish flow
22
+
23
+ ### Fixed
24
+ - Fix account attribute to diagnostics metrics
25
+
10
26
  ## [7.2.9-beta.1] - 2025-12-12
11
27
  ### Changed
12
28
  - Increase maximum attributes limit for diagnostics metrics
@@ -11,7 +11,7 @@ const constants_1 = require("../constants");
11
11
  *
12
12
  * Total attributes sent = base attributes + custom attributes (up to MAX_CUSTOM_ATTRIBUTES)
13
13
  */
14
- const MAX_CUSTOM_ATTRIBUTES = 5;
14
+ const MAX_CUSTOM_ATTRIBUTES = 7;
15
15
  /**
16
16
  * Context key for storing base attributes in OpenTelemetry context.
17
17
  * These attributes are automatically merged with custom attributes in all metric methods.
@@ -79,6 +79,7 @@ async function timings(ctx, next) {
79
79
  await global.diagnosticsMetrics.runWithBaseAttributes(baseAttributes, executeWithBaseAttributes);
80
80
  }
81
81
  else {
82
+ console.warn('DiagnosticsMetrics not available. HTTP handler metrics not reported.');
82
83
  await executeWithBaseAttributes();
83
84
  }
84
85
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vtex/api",
3
- "version": "7.3.1-beta.0",
3
+ "version": "7.3.1",
4
4
  "description": "VTEX I/O API client",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",