-
Notifications
You must be signed in to change notification settings - Fork 340
release: v1.59.0 #6438
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
release: v1.59.0 #6438
Changes from 137 commits
Commits
Show all changes
140 commits
Select commit
Hold shift + click to select a range
93050d4
FLEET-19 Update filter and add new dependencies
jonathanrainer 107d37d
FLEET-19 Add initial take on Fleet Detection Plugin
jonathanrainer fefd8a4
FLEET-19 Fixing CI with new schema generation
jonathanrainer f600f29
FLEET-19 Use correct metrics form
jonathanrainer aaa789d
FLEET-19 Implement new `activate` hook
jonathanrainer e3e5c24
FLEET-19 Move to gauges
jonathanrainer 4bd425c
FLEET-19 Turn off Fleet Detection if APOLLO_TELEMETRY_DISABLED is det…
jonathanrainer 245aad6
FLEET-19 Add CHANGELOG Entry
jonathanrainer c1ec7c7
FLEET-19 Get rid of unwraps
jonathanrainer 1730506
This commit docs a few things
533aae7
plugins/fleet_detector: add schema and persisted_queries gauges
loshz c3f75ce
add comments
loshz 64adb53
add gauge store options
loshz 56a49b2
Merge branch '1.58.0' into dev
abernix 62b4a75
Context test rewriter assertion (#6319)
TylerBloom 78a3cfc
fix gauge attributes list
loshz 7be0703
fix lint issues
loshz dc0426c
chore(federation): add unit tests and documentation for conditions ha…
goto-bus-stop 9a8c734
add SchemaState
loshz 5c5a604
fix stream map closure
loshz 894e429
fix deref addrof
loshz 214b2e4
docs: router setup for Datadog (#6008)
shorgi 6037663
fix(telemetry): fix supergraph query selector (#6324)
bnjjj 00640a8
plugin: add launch_id
loshz 9842d32
fix type cast
loshz 1d469a1
fix plugin types
loshz e73e94f
Allow non-trivial root __typename-only queries when introspection is …
SimonSapin 207f3b6
add launch_id to schema
loshz 1c85fa8
fix(federation): avoid constantly recomputing conditions (#6326)
goto-bus-stop 5d25d92
Fix YAML reference URL link in values.yaml (#6277)
lambertjosh 5b1f7e2
compile, please
loshz 5cda200
Fix typo in persisted query metric attribute (#6332)
goto-bus-stop 953ff07
remove launch_id from PluginInit serde
loshz 4cfabaf
chore(federation): Improved serialization impls (#6337)
TylerBloom d32a957
Enable test to look for invalid federation imports. (#6340)
clenfest a3fba23
Reconcile `dev` after merge to `main` for v1.58.0 (#6352)
abernix b7320f6
fix(dual-query-planner): sort directives before comparison in semanti…
duckki c5e1246
Fix the query hashing algorithm (#6205)
Geal fd2974b
chore(deps): update dependency slack to v4.15.0 (#5681)
renovate[bot] 81b3d12
chore(deps): update dependency typescript to v5.7.2 (#5851)
renovate[bot] 92e6847
tests: Fix snapshots after #6205 was merged (#6367)
IvanGoncharov 900f305
chore(deps): update cimg/redis docker tag to v7.4.1 (#6364)
renovate[bot] cca0cd4
chore(deps): update dependency gh to v2.6.0 (#6365)
renovate[bot] c8124eb
chore(deps): update actions/checkout digest to 11bd719 (#6363)
renovate[bot] 7c29b84
chore(deps): update peter-evans/create-pull-request action to v7 (#6366)
renovate[bot] 7eb9b0b
chore(deps): update openzipkin/zipkin docker tag to v3.4.2 (#6371)
renovate[bot] 268aa99
plugins/fleet_detector: add instance gauge
nmoutschen 53da9c8
chore(fleet_detector): store magic number as const
nmoutschen d7c8d72
plugins/fleet_detector: add instance gauge (#6374)
nmoutschen 9a8eef3
Merge branch 'dev' into jr/task/FLEET-19
jonathanrainer 8f9c975
FLEET-19 Update CHANGELOG
jonathanrainer f640805
FLEET-19 Fix environment variable gate
jonathanrainer f2ee42b
FLEET-19 Update deny list for public metrics
jonathanrainer e8cf512
Add Fleet Detection Plugin (#6151)
jonathanrainer a9e83aa
add new selector for retry (#6351)
bnjjj 59d8cc9
docs(telemetry): add missing subgraph selector (#6327)
bnjjj 89795a7
Migrate monotonic counter metrics to `u64_counter!` (#6350)
goto-bus-stop dcb192c
add better migration for deprecated metric apollo_router_http_request…
bnjjj 21d78cc
plugins/fleet_detector: detect if the Router was deployed using the o…
nmoutschen 0b3cdb7
chore: fix comments
nmoutschen 85f99f1
remove fix for experimental_retry (#6392)
bnjjj 89da9dc
Merge branch 'dev' into loshz/FLEET-22
loshz 430c4e4
add changeset
loshz f8c7e3c
feat: connect launch ID
nmoutschen 21f46ea
Merge branch 'loshz/FLEET-22' into nicolas/FLEET-22
nmoutschen aa6317e
feat: connect launch ID (#6394)
nmoutschen 3c78759
Merge branch 'loshz/FLEET-22' of github.com:apollographql/router into…
loshz 188e8de
update changeset
loshz c5e43ea
fix from type
loshz ec62b5c
fix schema source from
loshz 2a1492f
update hashbrown dep for compliance (#6395)
lrlna a792192
Merge branch 'dev' into loshz/FLEET-22
loshz 297678d
Fix coprocessor empty body panic
958acf3
Merge branch 'dev' into bryn/coprocessor-empty-body-panic
BrynCooke ce37c70
Drop experimental reuse fragments optimization from RS QP (#6354)
dariuszkuc 47f7528
rename metric
loshz 770d790
Merge branch 'dev' into loshz/FLEET-22
loshz 0d649c3
chore(deps): update dependency slack to v5 (#6370)
renovate[bot] 0ce2cf1
fix(deps): update dependency express to v4.20.0 [security] (#6021)
renovate[bot] cfbe80f
chore(deps): update openzipkin/zipkin docker tag to v3.4.3 (#6405)
renovate[bot] c4a24d3
[FOUN-575] persisted queries have client names
glasser d40678f
Get client name for more places; tests
glasser 6bfdef9
checkpoint
glasser e3fb191
remove old test
glasser 09f7715
undo no-longer-necessary changes
glasser 2b0befa
Fix unit tests
glasser 9506cd6
carg fmt
glasser f0d53cd
lint
glasser 3b4e9ca
unit tests
glasser 92172c9
Docs and changeset
glasser 54e79ca
update link in docs
glasser 8b1fe2a
[ROUTER-890] Ability to skip safelisting enforcement via plugin
glasser 18eae6e
Merge branch 'dev' into abernix/reconcile-dev-after-1.58.1
abernix 78b9b16
Update schemaAwareHash in snapshot tests after merging main into dev
SimonSapin 88e7bb1
Fix coprocessor empty body panic (#6398)
BrynCooke 215ca5f
Reconcile dev after merge to main for v1.58.1 (#6412)
IvanGoncharov d169b2f
Remove catch_unwind wrapper around the rust query planner (#6397)
lrlna 799da70
Cleanup unused bypass QP functionality (#6399)
dariuszkuc eb2bca6
persisted queries have client names (#6198)
BrynCooke 9ef8296
fix build after merges (#6413)
dariuszkuc a201cf5
Distributed query plan cache keys include the Router version number (…
SimonSapin 3296078
refactor(dual-query-planner): moved semantic diff out into its own mo…
duckki b998167
Use the new query planner by default (#6360)
SimonSapin 6ef4187
plugins/fleet_detector: detect if the Router was deployed using the o…
nmoutschen 0906863
Merge branch 'dev' into loshz/FLEET-22
loshz 69ca289
plugins/fleet_detector: add schema and persisted_queries gauges (#6283)
loshz b42ead6
[ROUTER-890] Ability to skip safelisting enforcement via plugin (#6403)
BrynCooke c2745a9
plugins/fleet_detector: detect request/response sizes
nmoutschen e735ebf
Merge branch 'dev' into nicolas/FLEET-20
nmoutschen 7d93ccc
Make changes to address new RUSTSEC details
e7d1e28
Add doc comment to `services::external` (#6345)
goto-bus-stop 663082c
Merge branch 'dev' into garypen/prevent-deny-complaints
7955b24
Try to fix the Cargo.lock file
e928145
Make changes to address new RUSTSEC details (#6417)
3c62d57
docs: combine client awareness and enforcement docs (#6414)
Meschreiber cf7a42d
Ensure cost directives are picked up when not explicitly imported (#6…
tninesling 89432b6
Improve error messaging when QP encounters unmergeable fields (#6420)
sachindshinde 12cca19
Merge branch 'dev' into nicolas/FLEET-20
nmoutschen 5d87513
chore: address feedback
nmoutschen 3334513
Merge branch 'nicolas/FLEET-20' of github.com:apollographql/router in…
nmoutschen 5f72471
fix cargo about (#6423)
bnjjj f6ede7f
tests: add unit tests to fleet_detector
nmoutschen e5a7fc0
Merge branch 'dev' into nicolas/FLEET-20
nmoutschen 666ccf7
chore: update subgraph.name attribute name
nmoutschen 48a1405
Merge branch 'nicolas/FLEET-20' of github.com:apollographql/router in…
nmoutschen fa3ec22
plugins/fleet_detector: detect request/response sizes (#6415)
nmoutschen bb61985
chore(federation): Improve backwards compatibility of `FederationErro…
TylerBloom 96289d4
Update `ensure!` macro to return its error (#6432)
sachindshinde f844b4e
fix(federation): convert query graph node's type for fetch dependency…
duckki 6b43a2f
Miscellaneous type-conditioned fetching fixes (#6434)
sachindshinde 15b72a4
fix(semantic-diff): fixed false mismatches with type conditioned fetc…
duckki d9336e4
refactor(semantic-diff): changed some wording in path tests (#6436)
duckki 2caf265
prep release: v1.59.0-rc.0
bnjjj 3969e07
General availability of native query planner - docs and changelog (#6…
lrlna 99b57b0
Apply suggestions from code review
bnjjj f8bb276
Apply suggestions from code review
BrynCooke 5a2b33c
Apply suggestions from code review
BrynCooke ef1a282
Delete .changesets/docs_fix_helm_yaml_config_link.md
BrynCooke d15894e
Update .changesets/breaking_drop_reuse_fragment.md
BrynCooke bd8ea14
prep release: v1.59.0
BrynCooke File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| ### Drop experimental reuse fragment query optimization option ([PR #6353](https://github.com/apollographql/router/pull/6353)) | ||
|
BrynCooke marked this conversation as resolved.
Outdated
|
||
|
|
||
| Drop support for the experimental reuse fragment query optimization. This implementation was not only very slow but also very buggy due to its complexity. | ||
|
|
||
| Auto generation of fragments is a much simpler (and faster) algorithm that in most cases produces better results. Fragment auto generation is the default optimization since v1.58 release. | ||
|
|
||
| By [@dariuszkuc](https://github.com/dariuszkuc) in https://github.com/apollographql/router/pull/6353 | ||
9 changes: 9 additions & 0 deletions
9
.changesets/breaking_glasser_pq_metric_attribute_consistency.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| ### More consistent attributes on `apollo.router.operations.persisted_queries` metric ([PR #6403](https://github.com/apollographql/router/pull/6403)) | ||
|
|
||
| Version 1.28.1 added several *unstable* metrics, including `apollo.router.operations.persisted_queries`. | ||
|
|
||
| When an operation is rejected, Router includes a `persisted_queries.safelist.rejected.unknown` attribute on the metric. Previously, this attribute had the value `true` if the operation is logged (via `log_unknown`), and `false` if the operation is not logged. (The attribute is not included at all if the operation is not rejected.) This appears to have been a mistake, as you can also tell whether it is logged via the `persisted_queries.logged` attribute. | ||
|
|
||
| Router now only sets this attribute to true, and never to false. This may be a breaking change for your use of metrics; note that these metrics should be treated as unstable and may change in the future. | ||
|
BrynCooke marked this conversation as resolved.
Outdated
|
||
|
|
||
| By [@glasser](https://github.com/glasser) in https://github.com/apollographql/router/pull/6403 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| ### Add version number to distributed query plan cache keys ([PR #6406](https://github.com/apollographql/router/pull/6406)) | ||
|
|
||
| The router now includes its version number in the cache keys of distributed cache entries. Given that a new router release may change how query plans are generated or represented, including the router version in a cache key enables the router to use separate cache entries for different versions. | ||
|
|
||
| If you have enabled [distributed query plan caching](https://www.apollographql.com/docs/router/configuration/distributed-caching/#distributed-query-plan-caching), expect additional processing for your cache to update for this router release. | ||
|
|
||
|
|
||
| By [@SimonSapin](https://github.com/SimonSapin) in https://github.com/apollographql/router/pull/6406 |
|
BrynCooke marked this conversation as resolved.
Outdated
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| ### docs: Updates the router YAML config reference URL ([PR #6277](https://github.com/apollographql/router/pull/6277)) | ||
|
|
||
| Updates the router YAML config URL in the Helm chart values.yaml file to the new location | ||
|
|
||
| By [@lambertjosh](https://github.com/lambertjosh) in https://github.com/apollographql/router/pull/6277 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| ### Add fleet awareness schema metric ([PR #6283](https://github.com/apollographql/router/pull/6283)) | ||
|
|
||
|
|
||
| The router now supports the `apollo.router.instance.schema` metric for its `fleet_detector` plugin. It has two attributes: `schema_hash` and `launch_id`. | ||
|
|
||
| By [@loshz](https://github.com/loshz) and [@nmoutschen](https://github.com/nmoutschen) in https://github.com/apollographql/router/pull/6283 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| ### Support client name for persisted query lists ([PR #6198](https://github.com/apollographql/router/pull/6198)) | ||
|
|
||
| The persisted query manifest fetched from Apollo Uplink can now contain a `clientName` field in each operation. Two operations with the same `id` but different `clientName` are considered to be distinct operations, and they may have distinct bodies. | ||
|
|
||
| The router resolves the client name by taking the first from the following that exists: | ||
| - Reading the `apollo_persisted_queries::client_name` context key that may be set by a `router_service` plugin | ||
| - Reading the HTTP header named by `telemetry.apollo.client_name_header`, which defaults to `apollographql-client-name` | ||
|
|
||
|
|
||
| If a client name can be resolved for a request, the router first tries to find a persisted query with the specified ID and the resolved client name. | ||
|
|
||
| If there is no operation with that ID and client name, or if a client name cannot be resolved, the router tries to find a persisted query with the specified ID and no client name specified. This means that existing PQ lists that don't contain client names will continue to work. | ||
|
|
||
| To learn more, go to [persisted queries](https://www.apollographql.com/docs/graphos/routing/security/persisted-queries#apollo_persisted_queriesclient_name) docs. | ||
|
|
||
| By [@glasser](https://github.com/glasser) in https://github.com/apollographql/router/pull/6198 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| ### Ability to skip persisted query list safelisting enforcement via plugin ([PR #6403](https://github.com/apollographql/router/pull/6403)) | ||
|
|
||
| If safelisting is enabled, a `router_service` plugin can skip enforcement of the safelist (including the `require_id` check) by adding the key `apollo_persisted_queries::safelist::skip_enforcement` with value `true` to the request context. | ||
|
|
||
| > Note: this doesn't affect the logging of unknown operations by the `persisted_queries.log_unknown` option. | ||
|
|
||
| In cases where an operation would have been denied but is allowed due to the context key existing, the attribute `persisted_queries.safelist.enforcement_skipped` is set on the `apollo.router.operations.persisted_queries` metric with value `true`. | ||
|
|
||
| By [@glasser](https://github.com/glasser) in https://github.com/apollographql/router/pull/6403 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| ### Add fleet awareness plugin ([PR #6151](https://github.com/apollographql/router/pull/6151)) | ||
|
|
||
| A new `fleet_awareness` plugin has been added that reports telemetry to Apollo about the configuration and deployment of the router. | ||
|
|
||
| The reported telemetry include CPU and memory usage, CPU frequency, and other deployment characteristics such as operating system and cloud provider. For more details, along with a full list of data captured and how to opt out, go to our | ||
| [data privacy policy](https://www.apollographql.com/docs/graphos/reference/data-privacy). | ||
|
|
||
|
|
||
| By [@jonathanrainer](https://github.com/jonathanrainer), [@nmoutschen](https://github.com/nmoutschen), [@loshz](https://github.com/loshz) | ||
| in https://github.com/apollographql/router/pull/6151 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| ### General availability of native query planner | ||
|
|
||
| The router's native, Rust-based, query planner is now [generally available](https://www.apollographql.com/docs/graphos/reference/feature-launch-stages#general-availability) and enabled by default. | ||
|
|
||
| The native query planner achieves better performance for a variety of graphs. In our tests, we observe: | ||
|
|
||
| * 10x median improvement in query planning time (observed via `apollo.router.query_planning.plan.duration`) | ||
| * 2.9x improvement in router’s CPU utilization | ||
| * 2.2x improvement in router’s memory usage | ||
|
|
||
| > Note: you can expect generated plans and subgraph operations in the native | ||
| query planner to have slight differences when compared to the legacy, JavaScript-based query planner. We've ascertained these differences to be semantically insignificant, based on comparing ~2.5 million known unique user operations in GraphOS as well as | ||
| comparing ~630 million operations across actual router deployments in shadow | ||
| mode for a four month duration. | ||
|
|
||
| The native query planner supports Federation v2 supergraphs. If you are using Federation v1 today, see our [migration guide](https://www.apollographql.com/docs/graphos/reference/migration/to-federation-version-2) on how to update your composition build step and subgraph changes are typically not needed. | ||
|
|
||
| The legacy, JavaScript, query planner is deprecated in this release, but you can still switch | ||
| back to it if you are still using Federation v1 supergraph: | ||
|
|
||
| ``` | ||
| experimental_query_planner_mode: legacy | ||
| ``` | ||
|
|
||
| > Note: The subgraph operations generated by the query planner are not | ||
| guaranteed consistent release over release. We strongly recommend against | ||
| relying on the shape of planned subgraph operations, as new router features and | ||
| optimizations will continuously affect it. | ||
|
|
||
| By [@sachindshinde](https://github.com/sachindshinde), | ||
| [@goto-bus-stop](https://github.com/goto-bus-stop), | ||
| [@duckki](https://github.com/duckki), | ||
| [@TylerBloom](https://github.com/TylerBloom), | ||
| [@SimonSapin](https://github.com/SimonSapin), | ||
| [@dariuszkuc](https://github.com/dariuszkuc), | ||
| [@lrlna](https://github.com/lrlna), [@clenfest](https://github.com/clenfest), | ||
| and [@o0Ignition0o](https://github.com/o0Ignition0o). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| ### Fix coprocessor empty body object panic ([PR #6398](https://github.com/apollographql/router/pull/6398)) | ||
|
|
||
| Previously, the router would panic if a coprocessor responds with an empty body object at the supergraph stage: | ||
|
|
||
| ```json | ||
| { | ||
| ... // other fields | ||
| "body": {} // empty object | ||
| } | ||
| ``` | ||
|
|
||
| This has been fixed in this release. | ||
|
|
||
| > Note: the previous issue didn't affect coprocessors that responded with formed responses. | ||
|
|
||
| By [@BrynCooke](https://github.com/BrynCooke) in https://github.com/apollographql/router/pull/6398 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| ### Fix telemetry instrumentation using supergraph query selector ([PR #6324](https://github.com/apollographql/router/pull/6324)) | ||
|
|
||
| Previously, router telemetry instrumentation that used query selectors could log errors with messages such as `this is a bug and should not happen`. | ||
|
|
||
| These errors have now been fixed, and configurations with query selectors such as the following work properly: | ||
|
|
||
| ```yaml title=router.yaml | ||
| telemetry: | ||
| exporters: | ||
| metrics: | ||
| common: | ||
| views: | ||
| # Define a custom view because operation limits are different than the default latency-oriented view of OpenTelemetry | ||
| - name: oplimits.* | ||
| aggregation: | ||
| histogram: | ||
| buckets: | ||
| - 0 | ||
| - 5 | ||
| - 10 | ||
| - 25 | ||
| - 50 | ||
| - 100 | ||
| - 500 | ||
| - 1000 | ||
| instrumentation: | ||
| instruments: | ||
| supergraph: | ||
| oplimits.aliases: | ||
| value: | ||
| query: aliases | ||
| type: histogram | ||
| unit: number | ||
| description: "Aliases for an operation" | ||
| oplimits.depth: | ||
| value: | ||
| query: depth | ||
| type: histogram | ||
| unit: number | ||
| description: "Depth for an operation" | ||
| oplimits.height: | ||
| value: | ||
| query: height | ||
| type: histogram | ||
| unit: number | ||
| description: "Height for an operation" | ||
| oplimits.root_fields: | ||
| value: | ||
| query: root_fields | ||
| type: histogram | ||
| unit: number | ||
| description: "Root fields for an operation" | ||
| ``` | ||
|
|
||
| By [@bnjjj](https://github.com/bnjjj) in https://github.com/apollographql/router/pull/6324 |
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| ### Fix and test experimental_retry ([PR #6338](https://github.com/apollographql/router/pull/6338)) | ||
|
|
||
| Fix the behavior of `experimental_retry` and make sure both the feature and metrics are working. | ||
| An entry in the context was also added, which would be useful later to implement a new standard attribute and selector for advanced telemetry. | ||
|
|
||
| By [@bnjjj](https://github.com/bnjjj) in https://github.com/apollographql/router/pull/6338 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| ### Fix query hashing algorithm ([PR #6205](https://github.com/apollographql/router/pull/6205)) | ||
|
|
||
| > [!IMPORTANT] | ||
| > If you have enabled [distributed query plan caching](https://www.apollographql.com/docs/router/configuration/distributed-caching/#distributed-query-plan-caching), updates to the query planner in this release will result in query plan caches being regenerated rather than reused. On account of this, you should anticipate additional cache regeneration cost when updating to this router version while the new query plans come into service. | ||
|
|
||
| The router includes a schema-aware query hashing algorithm designed to return the same hash across schema updates if the query remains unaffected. This update enhances the algorithm by addressing various corner cases to improve its reliability and consistency. | ||
|
|
||
| By [@Geal](https://github.com/Geal) in https://github.com/apollographql/router/pull/6205 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| ### Fix typo in persisted query metric attribute ([PR #6332](https://github.com/apollographql/router/pull/6332)) | ||
|
|
||
| The `apollo.router.operations.persisted_queries` metric reports an attribute when a persisted query was not found. | ||
| Previously, the attribute name was `persisted_quieries.not_found`, with one `i` too many. Now it's `persisted_queries.not_found`. | ||
|
|
||
| By [@goto-bus-stop](https://github.com/goto-bus-stop) in https://github.com/apollographql/router/pull/6332 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| ### Ensure cost directives are picked up when not explicitly imported ([PR #6328](https://github.com/apollographql/router/pull/6328)) | ||
|
|
||
| With the recent composition changes, importing `@cost` results in a supergraph schema with the cost specification import at the top. The `@cost` directive itself is not explicitly imported, as it's expected to be available as the default export from the cost link. In contrast, uses of `@listSize` to translate to an explicit import in the supergraph. | ||
|
|
||
| Old SDL link | ||
|
|
||
| ``` | ||
| @link( | ||
| url: "https://specs.apollo.dev/cost/v0.1" | ||
| import: ["@cost", "@listSize"] | ||
| ) | ||
| ``` | ||
|
|
||
| New SDL link | ||
|
|
||
| ``` | ||
| @link(url: "https://specs.apollo.dev/cost/v0.1", import: ["@listSize"]) | ||
| ``` | ||
|
|
||
| Instead of using the directive names from the import list in the link, the directive names now come from `SpecDefinition::directive_name_in_schema`, which is equivalent to the change we made on the composition side. | ||
|
|
||
| By [@tninesling](https://github.com/tninesling) in https://github.com/apollographql/router/pull/6328 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
|
|
||
| ### Remove catch_unwind wrapper around the native query planner ([PR #6397](https://github.com/apollographql/router/pull/6397)) | ||
|
|
||
| As part of internal maintenance of the query planner, the | ||
| `catch_unwind` wrapper around the native query planner has been removed. This wrapper served as an extra safeguard for potential panics the native planner could produce. The | ||
| native query planner however no longer has any code paths that could panic. We have also | ||
| not witnessed a panic in the last four months, having processed 560 million real | ||
| user operations through the native planner. | ||
|
|
||
| This maintenance work also removes backtrace capture for federation errors, which | ||
| was used for debugging and is no longer necessary as we have the confidence in | ||
| the native planner's implementation. | ||
|
|
||
| By [@lrlna](https://github.com/lrlna) in https://github.com/apollographql/router/pull/6397 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| ### Deprecate various metrics ([PR #6350](https://github.com/apollographql/router/pull/6350)) | ||
|
|
||
| Several metrics have been deprecated in this release, in favor of OpenTelemetry-compatible alternatives: | ||
|
|
||
| - `apollo_router_deduplicated_subscriptions_total` - use the `apollo.router.operations.subscriptions` metric's `subscriptions.deduplicated` attribute. | ||
| - `apollo_authentication_failure_count` - use the `apollo.router.operations.authentication.jwt` metric's `authentication.jwt.failed` attribute. | ||
| - `apollo_authentication_success_count` - use the `apollo.router.operations.authentication.jwt` metric instead. If the `authentication.jwt.failed` attribute is *absent* or `false`, the authentication succeeded. | ||
| - `apollo_require_authentication_failure_count` - use the `http.server.request.duration` metric's `http.response.status_code` attribute. Requests with authentication failures have HTTP status code 401. | ||
| - `apollo_router_timeout` - this metric conflates timed-out requests from client to the router, and requests from the router to subgraphs. Timed-out requests have HTTP status code 504. Use the `http.response.status_code` attribute on the `http.server.request.duration` metric to identify timed-out router requests, and the same attribute on the `http.client.request.duration` metric to identify timed-out subgraph requests. | ||
|
|
||
| The deprecated metrics will continue to work in the 1.x release line. | ||
|
|
||
| By [@goto-bus-stop](https://github.com/goto-bus-stop) in https://github.com/apollographql/router/pull/6350 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.