github apollographql/router v1.18.0

latest releases: v2.0.0-preview.1, v1.57.1, v1.57.1-rc.0...
18 months ago

🚀 Features

Introduced new metric which tracks query planning time

We've introduced a apollo_router_query_planning_time histogram which captures time spent in the query planning phase. This is documented along with our other metrics in the documentation.

By @Geal in #2974

🐛 Fixes

Small gzip'd responses no longer cause a panic

A regression introduced in v1.17.0 — again related to compression — has been resolved. This occurred when small responses used invalid buffer management, causing a panic.

By @dbanty in #3047

HTTP status codes are now returned in SubrequestHttpError as intended

When contextually available, the HTTP status code is included within SubrequestHttpError. This provides plugins the ability to access the status code directly. Previously, only string parsing of the reason could be used to determine the status code.

This corrects a previous contribution which added the status code, but neglected to serialize it properly into the extensions in the response which are made available to plugins. Thank you to the same contributor for the correction!

By @scottdouglas1989 in #3005

📚 Documentation

Indicate that apollo_router_cache_size is a count of cache entries

This follows-up PR #2607 which added apollo_router_cache_size. It adds apollo_router_cache_size to the documentation and indicates that this is the number of cache entries (that is, a count).

By @abernix in #3044

Don't miss a new router release

NewReleases is sending notifications on new releases.