chore(telemetry): govern semantic conventions centrally#449
Conversation
yordis
commented
Jul 20, 2026
- Shared telemetry vocabulary is needed to prevent components from drifting into incompatible names and meanings.
- Portable contracts need to remain independent from runtime instrumentation choices so every component can consume them safely.
- Generated artifacts need automated enforcement so schema changes cannot silently diverge from the reusable package.
PR SummaryLow Risk Overview CI gains a dedicated semantic-conventions job ( Reviewed by Cursor Bugbot for commit 80dde3a. Bugbot is set up for automated code reviews on this repo. Configure here. |
|
Warning Review limit reached
Next review available in: 40 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (12)
WalkthroughAdds a generated C# semantic-conventions package, configures Weaver-based generation for selected service attributes, integrates the constants into logging, and adds local and CI validation plus package packing. ChangesSemantic conventions integration
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant RegistryVersion as registry-version
participant GenerateTask as semconv generate task
participant Weaver
participant SemanticConventions as SemanticConventions package
participant OpenTelemetryLogger
GenerateTask->>RegistryVersion: read v1.43.0
GenerateTask->>Weaver: generate C# constants
Weaver->>SemanticConventions: write AttributeNames.g.cs
OpenTelemetryLogger->>SemanticConventions: read AttributeNames constants
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 3
🧹 Nitpick comments (1)
src/TrogonEventStore.SemanticConventions/TrogonEventStore.SemanticConventions.csproj (1)
14-14: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueConsider using
PackageIconinstead of the deprecatedPackageIconUrl.
PackageIconUrlis deprecated in modern NuGet packages in favor ofPackageIcon, which embeds the image directly into the package.Since you are removing
ouro.pngin theItemGroupbelow, if you intend to use an icon, you should pack it and reference it via<PackageIcon>. If you don't intend to use an icon, you can simply remove this empty element.🛠️ Proposed fix
- <PackageIconUrl></PackageIconUrl>🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@src/TrogonEventStore.SemanticConventions/TrogonEventStore.SemanticConventions.csproj` at line 14, Remove the empty PackageIconUrl element from the project metadata; since ouro.png is also being removed and no replacement icon is indicated, do not add a PackageIcon entry.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/common.yml:
- Around line 34-35: Update the Checkout step’s actions/checkout reference from
the nonexistent v7 to the valid v4 major version, and set persist-credentials to
false in that action configuration.
In `@otel/semconv/registry/manifest.yaml`:
- Line 3: Replace the master-based schema URL in
otel/semconv/registry/manifest.yaml at lines 3-3 with an immutable tag- or
commit-backed reference, and update the corresponding URL in
otel/semconv/schemas/0.1.0 at lines 2-2 to use the exact same reference.
In `@scripts/semconv-generate.sh`:
- Around line 12-22: Update the generation flow around the weaver registry
generate command to write artifacts into a temporary staging directory,
preserving existing *.g.cs files while generation runs. Only after successful
generation should the script remove the old generated files and move the staged
outputs into the configured output directory; clean up the temporary directory
on failure or completion.
---
Nitpick comments:
In
`@src/TrogonEventStore.SemanticConventions/TrogonEventStore.SemanticConventions.csproj`:
- Line 14: Remove the empty PackageIconUrl element from the project metadata;
since ouro.png is also being removed and no replacement icon is indicated, do
not add a PackageIcon entry.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 962335a7-e218-43a3-b224-92b0741f4931
⛔ Files ignored due to path filters (1)
src/TrogonEventStore.SemanticConventions/Generated/AttributeNames.g.csis excluded by!**/generated/**
📒 Files selected for processing (14)
.github/workflows/common.ymlmise.tomlotel/semconv/registry/manifest.yamlotel/semconv/registry/resources.yamlotel/semconv/schemas/0.1.0otel/semconv/templates/registry/csharp/attribute-names.cs.j2otel/semconv/templates/registry/csharp/weaver.yamlscripts/semconv-check.shscripts/semconv-generate.shsrc/EventStore.Core/EventStore.Core.csprojsrc/EventStore.Core/Log/OpenTelemetryLogger.cssrc/EventStore.slnsrc/TrogonEventStore.SemanticConventions/README.mdsrc/TrogonEventStore.SemanticConventions/TrogonEventStore.SemanticConventions.csproj
5803b57 to
061d618
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 061d618. Configure here.
de11379 to
369c221
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/common.yml:
- Line 39: Update the jdx/mise-action@v4.2.1 step in the workflow to disable
caching for release-capable push events by setting its cache option to false.
Preserve the existing action version and workflow behavior.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 749b95f8-653b-44a8-9ace-8a34e90183d5
⛔ Files ignored due to path filters (1)
src/TrogonEventStore.SemanticConventions/Generated/AttributeNames.g.csis excluded by!**/generated/**
📒 Files selected for processing (12)
.config/mise/tasks/semconv/check.config/mise/tasks/semconv/generate.github/workflows/common.ymlmise.tomlotel/semconv/registry-versionotel/semconv/templates/registry/csharp/attribute-names.cs.j2otel/semconv/templates/registry/csharp/weaver.yamlsrc/EventStore.Core/EventStore.Core.csprojsrc/EventStore.Core/Log/OpenTelemetryLogger.cssrc/EventStore.slnsrc/TrogonEventStore.SemanticConventions/README.mdsrc/TrogonEventStore.SemanticConventions/TrogonEventStore.SemanticConventions.csproj
🚧 Files skipped from review as they are similar to previous changes (6)
- src/TrogonEventStore.SemanticConventions/README.md
- otel/semconv/templates/registry/csharp/weaver.yaml
- src/EventStore.Core/EventStore.Core.csproj
- src/TrogonEventStore.SemanticConventions/TrogonEventStore.SemanticConventions.csproj
- src/EventStore.Core/Log/OpenTelemetryLogger.cs
- src/EventStore.sln
Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
369c221 to
80dde3a
Compare
