Skip to content

Fix OpenTelemetry SchemaURL conflicts#642

Merged
raphael merged 1 commit intomainfrom
fix/remove-resource-schemaurl
Feb 5, 2026
Merged

Fix OpenTelemetry SchemaURL conflicts#642
raphael merged 1 commit intomainfrom
fix/remove-resource-schemaurl

Conversation

@raphael
Copy link
Copy Markdown
Member

@raphael raphael commented Feb 5, 2026

Summary

  • Stop setting a resource schema URL in clue.NewConfig by using resource.NewSchemaless.

Rationale

resource.Default() (from the OTel SDK) and clue's service resource were using different schema URLs, which can cause the SDK to fail fast with a conflicting schema URL error during resource.Merge. Building the service resource schemaless avoids schema conflicts while keeping the semantic attributes.

Test plan

  • go test ./...

Build the service resource without setting a schema URL so it can merge cleanly
with the SDK default resource.
@raphael raphael merged commit 0baf40c into main Feb 5, 2026
5 checks passed
@raphael raphael deleted the fix/remove-resource-schemaurl branch February 5, 2026 04:35
@codecov
Copy link
Copy Markdown

codecov bot commented Feb 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.95%. Comparing base (898dc7f) to head (662b307).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #642      +/-   ##
==========================================
- Coverage   86.95%   86.95%   -0.01%     
==========================================
  Files          39       39              
  Lines        2009     2008       -1     
==========================================
- Hits         1747     1746       -1     
  Misses        238      238              
  Partials       24       24              
Flag Coverage Δ
micro 86.95% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

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.

1 participant