Skip to content

v2.0.0-preview.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@apollo-bot2 apollo-bot2 released this 01 Oct 20:46
· 127 commits to dev since this release
79c64a6

Learn more about migrating from 1.x to 2.0.

🚀 Features

Apollo Connectors Public Preview

Apollo Connectors are a new declarative programming model for GraphQL, allowing you to plug your existing REST services directly into your graph.

type Query {
  posts(first: Int): [Post]
    @connect(
      http: { GET: "https://my.api/posts?limit={$args.first}" }
      selection: "$.results { id title body }"
    )
}

Apollo Connectors are available for Enterprise and free GraphOS Trial accounts. Get started with the Connectors Quickstart and visit the "connectors" tag on the community forums to leave feedback during the preview.

Apollo operation usage reporting via OTLP

The router supports reporting operation usage metrics to GraphOS via OpenTelemetry Protocol (OTLP).

Prior to version 1.49.0 of the router, all GraphOS reporting was performed using a private tracing format. In v1.49.0, we introduced support for using OTEL to perform this reporting. In v1.x, this is controlled using the experimental_otlp_tracing_sampler flag, and it's disabled by default.

Now in v2.x, this flag is renamed to otlp_tracing_sampler, and it's enabled by default.

Learn more about configuring usage reporting via OTLP.

📃 Configuration

Metrics reporting defaults

Default values of some GraphOS reporting metrics have been changed from v1.x to the following in v2.x:

  • telemetry.apollo.signature_normalization_algorithm now defaults to enhanced. (In v1.x the default is legacy.)
  • telemetry.apollo.metrics_reference_mode now defaults to extended. (In v1.x the default is standard.)