Skip to content

feat(observability): improvements - #63

Merged
psachmann merged 3 commits into
mainfrom
feat/observability-improvements
Aug 10, 2026
Merged

feat(observability): improvements#63
psachmann merged 3 commits into
mainfrom
feat/observability-improvements

Conversation

@psachmann

Copy link
Copy Markdown
Owner

No description provided.

psachmann and others added 2 commits July 26, 2026 19:43
…nd fetch triggers

Metrics were tagged with the full QueryKey, which embeds per-entity args and
produces unbounded cardinality in production; retry counts and cancellation
status were documented but never implemented. Splits metrics onto a
low-cardinality query.name/mutation.name tag (full key stays on spans/logs,
with an opt-in IncludeQueryKeyInMetrics escape hatch), adds retry-attempt
counters, cancellation status, cache entry/eviction metrics, and a trigger
tag distinguishing manual/invalidate/interval/stale/prefetch fetches.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@codecov

codecov Bot commented Jul 26, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 92.57143% with 13 lines in your changes missing coverage. Please review.
✅ Project coverage is 94.27%. Comparing base (5f1d1fc) to head (526bd76).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
src/DotNetQuery.Core/Internals/Query.cs 85.71% 0 Missing and 7 partials ⚠️
src/DotNetQuery.Core/Internals/Mutation.cs 73.91% 0 Missing and 6 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #63      +/-   ##
==========================================
- Coverage   94.98%   94.27%   -0.72%     
==========================================
  Files          21       22       +1     
  Lines         877      995     +118     
  Branches      150      179      +29     
==========================================
+ Hits          833      938     +105     
  Misses         21       21              
- Partials       23       36      +13     

☔ View full report in Codecov by Harness.
📢 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.

@psachmann psachmann self-assigned this Aug 7, 2026
@psachmann psachmann added the enhancement New feature or request label Aug 7, 2026
@psachmann psachmann added this to the v2.0 milestone Aug 7, 2026
Codecov flagged patch coverage at 88.0% (target 90%). Cross-referenced
merged cobertura reports against the PR diff and added targeted tests for
the untested branches: mutation/query retry-count telemetry on the failure
path, QueryObserver/Query.MetricName resolution (explicit Name, key-part
fallback, empty-key fallback), and the FetchTrigger.ToTagValue default arm.
Patch coverage is now 92.57% locally against the same diff.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@psachmann
psachmann merged commit 44be2ed into main Aug 10, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant