Skip to content

Commit eac1c49

Browse files
authored
graphql 22 update instrumentation (#3974)
* replace deprecated SimpleInstrumentation with SimplePerformantInstrumentation * dump api * add readme
1 parent 30f169f commit eac1c49

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
- To enable the auto configuration of it, please set `-Dotel.java.global-autoconfigure.enabled=true` on the `java` command, when starting your application.
1010
- You may also want to set `OTEL_LOGS_EXPORTER=none;OTEL_METRICS_EXPORTER=none;OTEL_TRACES_EXPORTER=none` env vars to not have the log flooded with error messages regarding OpenTelemetry features we don't use.
1111

12+
### Fixes
13+
- Replace deprecated `SimpleInstrumentation` with `SimplePerformantInstrumentation` for graphql 22 ([#3974](https://github.com/getsentry/sentry-java/pull/3974))
14+
1215
## 8.0.0-rc.2
1316

1417
### Fixes

sentry-graphql-22/api/sentry-graphql-22.api

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ public final class io/sentry/graphql22/BuildConfig {
33
public static final field VERSION_NAME Ljava/lang/String;
44
}
55

6-
public final class io/sentry/graphql22/SentryInstrumentation : graphql/execution/instrumentation/SimpleInstrumentation {
6+
public final class io/sentry/graphql22/SentryInstrumentation : graphql/execution/instrumentation/SimplePerformantInstrumentation {
77
public static final field SENTRY_EXCEPTIONS_CONTEXT_KEY Ljava/lang/String;
88
public static final field SENTRY_SCOPES_CONTEXT_KEY Ljava/lang/String;
99
public fun <init> (Lio/sentry/graphql/SentryGraphqlInstrumentation$BeforeSpanCallback;Lio/sentry/graphql/SentrySubscriptionHandler;Lio/sentry/graphql/ExceptionReporter;Ljava/util/List;)V

sentry-graphql-22/src/main/java/io/sentry/graphql22/SentryInstrumentation.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@
1919
import org.jetbrains.annotations.Nullable;
2020
import org.jetbrains.annotations.TestOnly;
2121

22-
@SuppressWarnings("deprecation")
2322
public final class SentryInstrumentation
24-
extends graphql.execution.instrumentation.SimpleInstrumentation {
23+
extends graphql.execution.instrumentation.SimplePerformantInstrumentation {
2524

2625
/**
2726
* @deprecated please use {@link SentryGraphqlInstrumentation#SENTRY_SCOPES_CONTEXT_KEY}
@@ -144,7 +143,7 @@ public SentryInstrumentation(
144143
}
145144

146145
@Override
147-
@SuppressWarnings({"FutureReturnValueIgnored", "deprecation"})
146+
@SuppressWarnings({"FutureReturnValueIgnored"})
148147
public @NotNull DataFetcher<?> instrumentDataFetcher(
149148
final @NotNull DataFetcher<?> dataFetcher,
150149
final @NotNull InstrumentationFieldFetchParameters parameters,

0 commit comments

Comments
 (0)