Skip to content

Latest commit

 

History

History
66 lines (41 loc) · 3.5 KB

NEXT_CHANGELOG.md

File metadata and controls

66 lines (41 loc) · 3.5 KB

Changelog for the next release

All notable changes to Router will be documented in this file.

This project adheres to Semantic Versioning.

[x.x.x] (unreleased) - 2022-mm-dd

❗ BREAKING ❗

🚀 Features

Add trace_id in logs to identify all logs related to a specific request Issue #1981)

It automatically adds a trace_id on logs to identify which log is related to a specific request. Also adds apollo_trace_id in response headers to help the client to identify logs for this request.

Example of logs in text:

2022-10-21T15:17:45.562553Z ERROR [trace_id=5e6a6bda8d0dca26e5aec14dafa6d96f] apollo_router::services::subgraph_service: fetch_error="hyper::Error(Connect, ConnectError(\"tcp connect error\", Os { code: 111, kind: ConnectionRefused, message: \"Connection refused\" }))"
2022-10-21T15:17:45.565768Z ERROR [trace_id=5e6a6bda8d0dca26e5aec14dafa6d96f] apollo_router::query_planner::execution: Fetch error: HTTP fetch failed from 'accounts': HTTP fetch failed from 'accounts': error trying to connect: tcp connect error: Connection refused (os error 111)

Example of logs in JSON:

{"timestamp":"2022-10-26T15:39:01.078260Z","level":"ERROR","fetch_error":"hyper::Error(Connect, ConnectError(\"tcp connect error\", Os { code: 111, kind: ConnectionRefused, message: \"Connection refused\" }))","target":"apollo_router::services::subgraph_service","filename":"apollo-router/src/services/subgraph_service.rs","line_number":182,"span":{"name":"subgraph"},"spans":[{"trace_id":"5e6a6bda8d0dca26e5aec14dafa6d96f","name":"request"},{"name":"supergraph"},{"name":"execution"},{"name":"parallel"},{"name":"fetch"},{"name":"subgraph"}]}
{"timestamp":"2022-10-26T15:39:01.080259Z","level":"ERROR","message":"Fetch error: HTTP fetch failed from 'accounts': HTTP fetch failed from 'accounts': error trying to connect: tcp connect error: Connection refused (os error 111)","target":"apollo_router::query_planner::execution","filename":"apollo-router/src/query_planner/execution.rs","line_number":188,"span":{"name":"parallel"},"spans":[{"trace_id":"5e6a6bda8d0dca26e5aec14dafa6d96f","name":"request"},{"name":"supergraph"},{"name":"execution"},{"name":"parallel"}]}

By @bnjjj in apollographql#1982

🐛 Fixes

Fix the rhai SDL print function Issue #2005)

A recent change to the way we provide the SDL to plugins broke the rhai SDL print. This fixes it.

By @fernando-apollo in apollographql#2007

🛠 Maintenance

Split the configuration file management in multiple modules Issue #1790)

The file is becoming large and hard to modify.

By @Geal in apollographql#1996

📚 Documentation