ci: add weaver live-check workflow for SDK self-observability metrics#3565
Draft
cijothomas wants to merge 6 commits into
Draft
ci: add weaver live-check workflow for SDK self-observability metrics#3565cijothomas wants to merge 6 commits into
cijothomas wants to merge 6 commits into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3565 +/- ##
=====================================
Coverage 82.9% 82.9%
=====================================
Files 130 130
Lines 27768 27768
=====================================
Hits 23040 23040
Misses 4728 4728 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
- Switch LoggerProvider from OTLP to InMemoryLogExporter so app log records don't reach weaver (they carry app-specific attributes that aren't in the semconv registry). Logs still flow through the BLP, exercising otel.sdk.log.created and otel.sdk.processor.log.processed. - Add 'Print live-check findings' step that parses the JSON report and prints violations as ::error:: annotations directly in the CI log.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Towards #3553.
Adds a
weaver registry live-checkCI workflow that validates SDK self-observability metrics (otel.sdk.log.created,otel.sdk.processor.log.processed, exporter metrics, etc.) against the upstream semantic conventions registry on every PR that touches the SDK or OTLP exporter.Changes
.github/workflows/sdk-self-observability.ymlusing the upstreamweaver-live-check-{start,stop}composite actions (v0.24.0). Validates against semconv v1.42.0.fail-on: violation.examples/self-obs-live-check/— purpose-built binary that creates a LoggerProvider with BatchLogProcessor + OTLP gRPC exporter, emits log records, waits for the periodic metric export, and shuts down cleanly. This exercises the SDK's self-obs metrics end-to-end.Pattern
Follows the same approach as opentelemetry-rust-contrib#613 (tower instrumentation live-check): no in-tree registry, validates directly against the published upstream semconv, uses a dedicated app as the telemetry source.
Not yet a required status check
The workflow runs on PR/push/merge_group but is not in the required checks list. Promote once the gate is proven stable, consistent with the staged rollout used in otel-arrow.