Skip to content
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

Reconcile dev after release notes adjustment #3700

Merged
merged 2 commits into from
Aug 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
93 changes: 44 additions & 49 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,37 @@ This project adheres to [Semantic Versioning v2.0.0](https://semver.org/spec/v2.

## 🚀 Features

### Expose the `stats_reports_key` hash to plugins. ([Issue #2728](https://github.com/apollographql/router/issues/2728))

This exposes a new key in the `Context`, `apollo_operation_id`, which identifies operation you can find in studio:

```
https://studio.apollographql.com/graph/<your_graph_variant>/variant/<your_graph_variant>/operations?query=<apollo_operation_id>
```

The `apollo_operation_id` context key is exposed during:

- Execution service request
- Subgraph service request
- Subgraph service response
- Execution service response
- Supergraph service response
- Router service response

By [@o0Ignition0o](https://github.com/o0Ignition0o) in https://github.com/apollographql/router/pull/3586

### Add new (unstable) metrics ([PR #3609](https://github.com/apollographql/router/pull/3609))

Many of our existing metrics are poorly and inconsistently named. In addition, they follow Prometheus style rather than Otel style.

This changeset adds some new metrics that will give us a good foundation to build upon.
New metrics are namespaced `apollo.router.operations.*`.

These metrics should be treated as unstable and may change in the future.

By [@BrynCooke](https://github.com/BrynCooke) in https://github.com/apollographql/router/pull/3609


### Expose the number of subgraph fetches in `QueryPlan` ([#3658](https://github.com/apollographql/router/issues/3658))

Add a new `subgraph_fetches` method for the `QueryPlan` type that exposes the number of expected subgraph fetches for a given query plan.
Expand All @@ -16,6 +47,13 @@ By [@nmoutschen](https://github.com/nmoutschen) in https://github.com/apollograp

## 🐛 Fixes

### Flush metrics when Router reloads or shuts down ([Issue #3140](https://github.com/apollographql/router/issues/3140))

When the Router either reloads or shuts down it now flushes metrics.
Push metrics exporters, such as OTLP, would have previously missed some metrics — in particular those related to _reload_ events.

By [@garypen](https://github.com/garypen) in https://github.com/apollographql/router/pull/3143

### Helm: Declare `extraContainers` prior to the router container ([Issue #3632](https://github.com/apollographql/router/issues/3632))

Currently, in our Helm chart, `extraContainers` are declared _after_ the router container. Moving the `extraContainers` _ahead_ of the router container will make it simpler to co-ordinate container startup sequencing and take full advantage of Kubernetes' lifecycle hooks.
Expand Down Expand Up @@ -49,55 +87,6 @@ The Router will no longer log an error in when fetching from Redis and the recor

By [@BrynCooke](https://github.com/BrynCooke) in https://github.com/apollographql/router/pull/3661



# [1.28.0] - 2023-08-24 (Yanked)

> **Warning**
> We have discovered an issue with comment parsing in graphql schema in this release (#3680). We will be releasing a follow up to fix this shortly. For now users should use 1.27.0.


## 🚀 Features

### Expose the `stats_reports_key` hash to plugins. ([Issue #2728](https://github.com/apollographql/router/issues/2728))

This exposes a new key in the `Context`, `apollo_operation_id`, which identifies operation you can find in studio:

```
https://studio.apollographql.com/graph/<your_graph_variant>/variant/<your_graph_variant>/operations?query=<apollo_operation_id>
```

The `apollo_operation_id` context key is exposed during:

- Execution service request
- Subgraph service request
- Subgraph service response
- Execution service response
- Supergraph service response
- Router service response

By [@o0Ignition0o](https://github.com/o0Ignition0o) in https://github.com/apollographql/router/pull/3586

### Add new (unstable) metrics ([PR #3609](https://github.com/apollographql/router/pull/3609))

Many of our existing metrics are poorly and inconsistently named. In addition, they follow Prometheus style rather than Otel style.

This changeset adds some new metrics that will give us a good foundation to build upon.
New metrics are namespaced `apollo.router.operations.*`.

These metrics should be treated as unstable and may change in the future.

By [@BrynCooke](https://github.com/BrynCooke) in https://github.com/apollographql/router/pull/3609

## 🐛 Fixes

### Flush metrics when Router reloads or shuts down ([Issue #3140](https://github.com/apollographql/router/issues/3140))

When the Router either reloads or shuts down it now flushes metrics.
Push metrics exporters, such as OTLP, would have previously missed some metrics — in particular those related to _reload_ events.

By [@garypen](https://github.com/garypen) in https://github.com/apollographql/router/pull/3143

## 🛠 Maintenance

### Upgrade to Rust 1.71.1 ([PR #3536](https://github.com/apollographql/router/pull/3536))
Expand Down Expand Up @@ -151,7 +140,13 @@ As a side effect of this change, Router now re-downloads the PQ manifest when re

By [@glasser](https://github.com/glasser) in https://github.com/apollographql/router/pull/3566

# [1.28.0] - 2023-08-24 (Yanked)

> **Warning**
>
> **See v1.28.1 for the version that replaces this release.**
>
> We yanked v1.28.0 shortly after it was released since we discovered an issue with block-comment parsing in GraphQL *schemas* that resulted in #3680. We have re-released a **fixed** v1.28.1 which takes the place of this release. The entire contents of this change log have been moved to v1.28.0.

# [1.27.0] - 2023-08-18

Expand Down
2 changes: 1 addition & 1 deletion docs/source/customizations/coprocessor.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ flowchart TB;
client --"<b>1.</b> Sends request"--> routerService;
routerService <-."<b>2.</b> Can send request<br/>details to coprocessor<br/>and receive modifications".-> coprocessing;
routerService --"<b>3</b>"--> supergraphService;
supergraphService <-"<b>4.</b> Can send request<br/>details to coprocessor<br/>and receive modifications".-> coprocessing;
supergraphService <-."<b>4.</b> Can send request<br/>details to coprocessor<br/>and receive modifications".-> coprocessing;
supergraphService --"<b>5</b>"--> executionService;
executionService --"<b>6</b>"--> subgraphService;
subgraphService <-."<b>7.</b> Can send request<br/>details to coprocessor<br/>and receive modifications".-> coprocessing;
Expand Down