Skip to content

Commit 45bfd32

Browse files
authored
Remove unneeded span status extractor (#12182)
1 parent 84f2724 commit 45bfd32

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

instrumentation/graphql-java/graphql-java-20.0/library/src/main/java/io/opentelemetry/instrumentation/graphql/v20_0/GraphqlInstrumenterFactory.java

-5
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import graphql.schema.DataFetchingEnvironment;
99
import io.opentelemetry.api.OpenTelemetry;
1010
import io.opentelemetry.instrumentation.api.instrumenter.Instrumenter;
11-
import io.opentelemetry.instrumentation.api.instrumenter.SpanStatusExtractor;
1211
import io.opentelemetry.instrumentation.graphql.internal.OpenTelemetryInstrumentationHelper;
1312

1413
final class GraphqlInstrumenterFactory {
@@ -28,10 +27,6 @@ static Instrumenter<DataFetchingEnvironment, Void> createDataFetcherInstrumenter
2827
INSTRUMENTATION_NAME,
2928
environment -> environment.getExecutionStepInfo().getField().getName())
3029
.addAttributesExtractor(new GraphqlDataFetcherAttributesExtractor())
31-
.setSpanStatusExtractor(
32-
(spanStatusBuilder, environment, unused, error) ->
33-
SpanStatusExtractor.getDefault()
34-
.extract(spanStatusBuilder, environment, null, error))
3530
.setEnabled(enabled)
3631
.buildInstrumenter();
3732
}

0 commit comments

Comments
 (0)