Skip to content

Swiss AI Hub v0.311.1

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 16 Jul 03:00

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 like user-agent or cookie from inflating trace and metric costs.
  • 🔄 Preserved http.route Semantics: Ensured that the http.route OpenTelemetry attribute correctly retains its
    bounded route template value, while concrete URL paths are now recorded under url.path. This prevents metric and
    label cardinality explosions caused by de-templating http.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 the http.route attribute.