@questpie/observability 3.18.0 → 3.27.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.
Files changed (2) hide show
  1. package/dist/index.mjs +4 -1
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -47,6 +47,9 @@ function toOtelAttributes(attributes) {
47
47
  for (const [key, value] of Object.entries(attributes)) if (value !== void 0) out[key] = value;
48
48
  return out;
49
49
  }
50
+ function toOtelLogAttributes(attributes) {
51
+ return attributes ?? {};
52
+ }
50
53
  function wrapSpan(span) {
51
54
  return {
52
55
  setAttribute(key, value) {
@@ -189,7 +192,7 @@ function otelObservability(options) {
189
192
  severityNumber: SEVERITY[record.level] ?? SeverityNumber.INFO,
190
193
  severityText: record.level.toUpperCase(),
191
194
  body: record.message,
192
- attributes: toOtelAttributes(record.attributes)
195
+ attributes: toOtelLogAttributes(record.attributes)
193
196
  });
194
197
  },
195
198
  async shutdown() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@questpie/observability",
3
- "version": "3.18.0",
3
+ "version": "3.27.0",
4
4
  "description": "OpenTelemetry adapter for QUESTPIE — traces and metrics via OTLP",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -66,6 +66,6 @@
66
66
  "tsdown": "^0.18.3"
67
67
  },
68
68
  "peerDependencies": {
69
- "questpie": "^3.19.0"
69
+ "questpie": "^3.27.0"
70
70
  }
71
71
  }