Swiss AI Hub v0.311.1
Pre-release
Pre-release
Fixed
- 🐛 Reduced OpenTelemetry Data Cardinality: Implemented robust filtering for HTTP server metrics to prevent
unbounded, high-cardinality data (e.g.,http.server.duration,http.server.request.size) from being sent to the
backend. This change significantly reduces observability costs and improves the signal-to-noise ratio of collected
telemetry data by stopping automatic FastAPI/ASGI instrumentation. - ⚡️ Optimized OpenTelemetry HTTP Header Capture: Switched from capturing all HTTP request headers to an explicit,
bounded allowlist (content-type,accept,accept-language) for span attributes. This prevents high-cardinality
attributes likeuser-agentorcookiefrom inflating trace and metric costs. - 🔄 Preserved
http.routeSemantics: Ensured that thehttp.routeOpenTelemetry attribute correctly retains its
bounded route template value, while concrete URL paths are now recorded underurl.path. This prevents metric and
label cardinality explosions caused by de-templatinghttp.route. - 🧪 Added Regression Tests for OTel Optimizations: Introduced new tests to safeguard against the future
re-introduction of high-cardinality OpenTelemetry data issues by verifying HTTP header capture limits and the behavior
of thehttp.routeattribute.