Skip to content

Commit

Permalink
GraphQL changes
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyCTHsu committed Feb 27, 2024
1 parent bcc8ab3 commit 79cdd56
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions docs/UpgradeGuide2.md
Original file line number Diff line number Diff line change
Expand Up @@ -347,26 +347,22 @@ end

#### GraphQL

No longer support and patch GraphQL's defined-based schema
Support `graphql-ruby` versions `>= 2.2.6`, which breaking changes were introduced. No longer support and patch GraphQL's defined-based schema.

Support `graphql-ruby` versions `>= 2.2.6`, which breaking changes were introduced.
* `schemas` : Optional (default: `[]`). Providing GraphQL schemas is not required. By default, every schema is instrumented.

The changes are backported to previous `graphql-ruby` versions
* `with_deprecated_tracer` : Optional (default: `false`). Spans are generated by `GraphQL::Tracing::DataDogTrace`. When `true` , spans are generated by deprecated `GraphQL::Tracing::DataDogTracing`

Notes: `GraphQL::Tracing::DataDogTrace` is only available With `graphql-ruby(>= 2.0.19)`. Otherwise, it will fallback to the `GraphQL::Tracing::DataDogTracing`

Notes: The changes are backported to previous `graphql-ruby` versions

| branch | version |
| -------- | ------------------- |
| `1.13.x` | `>= 1.13.21, < 2.0` |
| `2.0.x` | `>= 2.0.28, < 2.1` |
| `2.1.x` | `>= 2.1.11, > 2.2` |

Configuration changes:

`schemas` : Optional (default: `[]`). GraphQL schemas are no longer required to be explicitly provided. By default, every schema is instrumented.

`with_deprecated_tracer` : Optional (default: `false`). Spans are generated by `GraphQL::Tracing::DataDogTrace`. When `true` , spans are generated by deprecated `GraphQL::Tracing::DataDogTracing`

Notes: `GraphQL::Tracing::DataDogTrace` is only available With `graphql-ruby(>= 2.0.19)`. Otherwise, it will fallback to the `GraphQL::Tracing::DataDogTracing`

#### GRPC

Replace options `error_handler`, `server_error_handler` and `client_error_handler` with `on_error`
Expand Down

0 comments on commit 79cdd56

Please sign in to comment.