Skip to content

Include unit in inferred schema even if empty#1284

Merged
jsuereth merged 1 commit intoopen-telemetry:mainfrom
ArthurSens:fix-missing-unit-infer
Mar 13, 2026
Merged

Include unit in inferred schema even if empty#1284
jsuereth merged 1 commit intoopen-telemetry:mainfrom
ArthurSens:fix-missing-unit-infer

Conversation

@ArthurSens
Copy link
Member

After testing this end-to-end with live-check, I've noticed a bug where I first infer a schema from an OTLP message that doesn't include units, and the generated schema would fail live-check because units are a required field.

Manually adding the unit field to the generated schema fixed the problem, so I'm adding this fix to the infer command.

Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>
@ArthurSens ArthurSens requested a review from a team as a code owner March 13, 2026 16:09
@codecov
Copy link

codecov bot commented Mar 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.3%. Comparing base (8b2eadb) to head (cf6a99c).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@          Coverage Diff          @@
##            main   #1284   +/-   ##
=====================================
  Coverage   81.3%   81.3%           
=====================================
  Files        111     111           
  Lines       9377    9377           
=====================================
  Hits        7624    7624           
  Misses      1753    1753           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jsuereth jsuereth merged commit d69e8b3 into open-telemetry:main Mar 13, 2026
26 checks passed
@ArthurSens ArthurSens deleted the fix-missing-unit-infer branch March 13, 2026 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants