Skip to content

Add json schema for policy findings, make context optional#1270

Merged
jsuereth merged 4 commits intoopen-telemetry:mainfrom
lmolkova:policy-finding-schema
Mar 9, 2026
Merged

Add json schema for policy findings, make context optional#1270
jsuereth merged 4 commits intoopen-telemetry:mainfrom
lmolkova:policy-finding-schema

Conversation

@lmolkova
Copy link
Member

@lmolkova lmolkova commented Mar 8, 2026

noticed that context is required on PolicyFinding while working on open-telemetry/opentelemetry-weaver-packages#24, but it does not need to be, so fixing that and also adding json schema for it

@lmolkova lmolkova requested a review from a team as a code owner March 8, 2026 23:02
@codecov
Copy link

codecov bot commented Mar 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.0%. Comparing base (312879b) to head (51572cc).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@          Coverage Diff          @@
##            main   #1270   +/-   ##
=====================================
  Coverage   80.9%   81.0%           
=====================================
  Files        111     111           
  Lines       9377    9380    +3     
=====================================
+ Hits        7592    7601    +9     
+ Misses      1785    1779    -6     

☔ 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.

pub struct FindingBuilder {
id: String,
context: JsonValue,
context: Option<JsonValue>,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah - I noticed this but forgot to make a note/issue to fix later. Thanks for fixing this!

@jsuereth jsuereth merged commit 07ae9fa into open-telemetry:main Mar 9, 2026
26 checks passed
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