-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into trevor/unpin-apollo-compiler
- Loading branch information
Showing
137 changed files
with
5,874 additions
and
3,123 deletions.
There are no files selected for viewing
This file contains 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 @@ | ||
### Remove experimental label from apollo usage reporting configs ([#5807](https://github.com/apollographql/router/pull/5807)) | ||
|
||
All known issues related to the new Apollo usage report generation have been resolved so we are renaming some experimental options to be non-experimental. | ||
* `telemetry.apollo.experimental_apollo_metrics_reference_mode` is now `telemetry.apollo.metrics_reference_mode` | ||
* `telemetry.apollo.experimental_apollo_signature_normalization_algorithm` is now `telemetry.apollo.signature_normalization_algorithm` | ||
* `experimental_apollo_metrics_generation_mode` has been removed since the Rust implementation has been the default since v1.49.0 and it is generating reports identical to the router-bridge implementation | ||
|
||
Previous configuration will warn but still work. | ||
|
||
By [@bonnici](https://github.com/bonnici) in https://github.com/apollographql/router/pull/5807 |
This file contains 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 @@ | ||
### Include hostname on heaptrack path, specify pod lifecycle ([Issue #5789](https://github.com/apollographql/router/issues/5789)) | ||
|
||
Use hostname in the heaptrack path to identify an individual container/instance/machine where the router is running. This means the filepath for heaptrack output will change. | ||
|
||
Additionally, allow the specification of restartPolicy on deployment (defaults to `Always` which is kubernetes default) | ||
|
||
By [@cyberhck](https://github.com/cyberhck) in https://github.com/apollographql/router/pull/5850 |
This file contains 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 @@ | ||
### Add OTEL information for operation limits ([PR #5884](https://github.com/apollographql/router/pull/5884)) | ||
|
||
Add OTEL (OpenTelemetry) information for operation limits to docs. | ||
|
||
By [@andrewmcgivery](https://github.com/andrewmcgivery) in https://github.com/apollographql/router/pull/5884 |
This file contains 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,39 @@ | ||
### Add configurability of span attributes in logs ([Issue #5540](https://github.com/apollographql/router/issues/5540)) | ||
|
||
The router supports a new `telemetry.exporters.logging.stdout.format.json.span_attributes` option that enables you to choose a subset of all span attributes to display in your logs. | ||
|
||
When `span_attributes` is specified, the router searches for the first attribute in its input list of span attributes from the root span to the current span and attaches it to the outermost JSON object for the log event. If you set the same attribute name for different spans at different levels, the router chooses the attributes of child spans before the attributes of parent spans. | ||
|
||
|
||
For example, if you have spans that contains `span_attr_1` attribute and you only want to display this span attribute: | ||
|
||
```yaml title="router.yaml" | ||
telemetry: | ||
exporters: | ||
logging: | ||
stdout: | ||
enabled: true | ||
format: | ||
json: | ||
display_span_list: false | ||
span_attributes: | ||
- span_attr_1 | ||
``` | ||
Example output with a list of spans: | ||
```json | ||
{ | ||
"timestamp": "2023-10-30T14:09:34.771388Z", | ||
"level": "INFO", | ||
"fields": { | ||
"event_attr_1": "event_attr_1", | ||
"event_attr_2": "event_attr_2" | ||
}, | ||
"target": "event_target", | ||
"span_attr_1": "span_attr_1" | ||
} | ||
``` | ||
|
||
To learn more, go to [`span_attributes`](https://www.apollographql.com/docs/router/configuration/telemetry/exporters/logging/stdout#span_attributes) docs. | ||
By [@bnjjj](https://github.com/bnjjj) in https://github.com/apollographql/router/pull/5867 |
This file contains 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,20 @@ | ||
### Add ability to alias standard attributes for telemetry ([Issue #5930](https://github.com/apollographql/router/issues/5930)) | ||
|
||
There is an issue when using standard attributes (on cache for example) because on new relic `entity.type` is a reserved attribute name and so it won’t work properly. cf [Learn about New Relic entities](https://docs.newrelic.com/docs/new-relic-solutions/new-relic-one/core-concepts/what-entity-new-relic/#reserved-attributes) Moreover `entity.type` is not consistent with our other graphql attributes (prefixed by `graphql.`). So we rename `entity.type` attribute to `graphql.type.name`. | ||
|
||
In order to make it work and that could also answer other use cases that would be great if we can alias the name of a standard attribute like this: | ||
|
||
```yaml | ||
telemetry: | ||
instrumentation: | ||
spans: | ||
mode: spec_compliant # Docs state this significantly improves performance: https://www.apollographql.com/docs/router/configuration/telemetry/instrumentation/spans#spec_compliant | ||
instruments: | ||
cache: # Cache instruments configuration | ||
apollo.router.operations.entity.cache: # A counter which counts the number of cache hit and miss for subgraph requests | ||
attributes: | ||
graphql.type.name: | ||
alias: entity_type # ENABLED and aliased to entity_type | ||
``` | ||
By [@bnjjj](https://github.com/bnjjj) in https://github.com/apollographql/router/pull/5957 |
This file contains 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 a histogram metric tracking evaluated query plans ([PR #5875](https://github.com/apollographql/router/pull/5875)) | ||
|
||
The `supergraph.query_planning.experimental_plans_limit` option can be used to limit the number of query plans evaluated for a query, to reduce the time spent planning. When reaching that limit, the planner would still return a valid query plan, but maybe the most optimized one. | ||
This adds the `apollo.router.query_planning.plan.evaluated_plans` histogram metric to track the number of evaluated query plans, giving more context to configure this option. | ||
|
||
By [@Geal](https://github.com/Geal) in https://github.com/apollographql/router/pull/5875 |
This file contains 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 @@ | ||
### Support Redis connection pooling ([PR #5942](https://github.com/apollographql/router/pull/5942)) | ||
|
||
This implements Redis connection pooling, for APQ, query planner and entity cache Redis usage. This can improve performance when there is some contention on the Redis connection, or some latency in Redis calls. | ||
|
||
By [@Geal](https://github.com/Geal) in https://github.com/apollographql/router/pull/5942 |
This file contains 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 @@ | ||
### Datadog sampling fix ([PR #5788](https://github.com/apollographql/router/pull/5788)) | ||
|
||
This PR ensures that datadog context is set, this may help with undersampling issues that users are seeing. | ||
|
||
By [@BrynCooke](https://github.com/BrynCooke) & [@bnjjj](https://github.com/bnjjj) in https://github.com/apollographql/router/pull/5788 |
This file contains 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 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.