Skip to content

Feature/webapi production defaults#46

Merged
nieprzecietny merged 3 commits into
masterfrom
feature/webapi-production-defaults
Jul 8, 2026
Merged

Feature/webapi production defaults#46
nieprzecietny merged 3 commits into
masterfrom
feature/webapi-production-defaults

Conversation

@nieprzecietny

Copy link
Copy Markdown
Member

No description provided.

nieprzecietny and others added 3 commits July 8, 2026 11:36
Introduces a shared package that wires production-ready defaults into an
ASP.NET Core Web API through a single AddTailoredWebApiDefaults /
MapTailoredWebApiDefaults pair:

- OpenTelemetry metrics, tracing and logging exported over OTLP
- Liveness (/alive) and readiness (/health) health checks
- Standard resilience handler and service discovery for HTTP clients

All features bind from the WebApiDefaults configuration section and are
individually toggleable. OTLP is the default exporter (stable); a metrics
hook is provided for opting into a Prometheus scrape endpoint.

Also:
- tests/TailoredApps.Shared.WebApi.Tests: 10 xUnit tests
- Register both projects in the solution (test under the Tests folder)
- release.yml: add a hand-maintained NuGet push step for the new package
- docs/WebApi.md: usage page

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…uction-defaults

# Conflicts:
#	.github/workflows/release.yml
#	TailoredApps.Shared.sln
Adds the required PL and EN library pages per DOCUMENTATION_RULE.md and
wires them into both sites:

- docs/Libraries/WebApi/index.md (PL) and docs-en/Libraries/WebApi/index.md
  (EN): description, install, DI registration, usage, API reference and the
  AI Agent Prompt section
- mkdocs.yml and mkdocs-en.yml nav entries
- docs/index.md and docs-en/index.md library tables
- remove the stale docs/WebApi.md orphan (superseded by the Libraries page)

Both sites pass `mkdocs build --strict`.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@nieprzecietny
nieprzecietny merged commit cdbc324 into master Jul 8, 2026
3 checks passed
@codecov

codecov Bot commented Jul 8, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 75.64103% with 38 lines in your changes missing coverage. Please review.
✅ Project coverage is 57.43%. Comparing base (29a65a1) to head (cc04a33).
⚠️ Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
...d.WebApi/HealthChecks/HealthCheckResponseWriter.cs 12.50% 21 Missing ⚠️
....WebApi/Observability/OpenTelemetryRegistration.cs 85.18% 2 Missing and 6 partials ⚠️
...ed.WebApi/HealthChecks/HealthCheckRequestFilter.cs 0.00% 5 Missing ⚠️
...bApi/HealthChecks/HealthCheckEndpointExtensions.cs 78.57% 2 Missing and 1 partial ⚠️
...oredApps.Shared.WebApi/WebApiDefaultsExtensions.cs 94.11% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #46      +/-   ##
==========================================
+ Coverage   54.62%   57.43%   +2.80%     
==========================================
  Files         101      112      +11     
  Lines        3405     3033     -372     
  Branches      294      324      +30     
==========================================
- Hits         1860     1742     -118     
+ Misses       1464     1202     -262     
- Partials       81       89       +8     

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

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