You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/GettingStarted.md
+2
Original file line number
Diff line number
Diff line change
@@ -883,6 +883,8 @@ The `instrument :graphql` method accepts the following parameters. Additional op
883
883
|`with_unified_tracer`|`DD_TRACE_GRAPHQL_WITH_UNIFIED_TRACER`|`Bool`| (Recommended) Enable to instrument with `UnifiedTrace` tracer for `graphql` >= v2.2, **enabling support for Endpoints list** in the Service Catalog. `with_deprecated_tracer` has priority over this. Default is `false`, using `GraphQL::Tracing::DataDogTrace` instead. This option is disabled by default to maintain backwards compatibility, but **will become the default in `datadog` 3.0.0**. |`false`|
884
884
|`with_deprecated_tracer`||`Bool`| (Not recommended) Enable to instrument with deprecated `GraphQL::Tracing::DataDogTracing`. This has priority over `with_unified_tracer`. Default is `false`, using `GraphQL::Tracing::DataDogTrace` instead |`false`|
885
885
|`service_name`||`String`| Service name used for graphql instrumentation |`'ruby-graphql'`|
886
+
|`error_extensions`|`DD_TRACE_GRAPHQL_ERROR_EXTENSIONS`|`Array`| List of extension keys to include in the span event reported for GraphQL queries with errors. |`[]`|
887
+
886
888
887
889
Once an instrumentation strategy is selected (`with_unified_tracer: true`, `with_deprecated_tracer: true`, or *no option set* which defaults to `GraphQL::Tracing::DataDogTrace`), it is not possible to change the instrumentation strategy in the same Ruby process.
888
890
This is especially important for [auto instrumented applications](#rails-or-hanami-applications) because an automatic initial instrumentation is always applied at startup, thus such applications will always instrument GraphQL with the default strategy (`GraphQL::Tracing::DataDogTrace`).
0 commit comments