package io.quarkus.opentelemetry.runtime.tracing.grpc;

import javax.annotation.Nullable;

import io.grpc.Status;
import io.opentelemetry.api.trace.StatusCode;
import io.opentelemetry.instrumentation.api.instrumenter.SpanStatusBuilder;
import io.opentelemetry.instrumentation.api.instrumenter.SpanStatusExtractor;

class GrpcSpanStatusExtractor implements SpanStatusExtractor<GrpcRequest, Status> {
    @Override
    public void extract(
            final SpanStatusBuilder spanStatusBuilder,
            final GrpcRequest grpcRequest,
            @Nullable final Status status,
            @Nullable final Throwable error) {
        if (status != null && status.isOk()) {
            spanStatusBuilder.setStatus(StatusCode.UNSET);
        } else if (error != null) {
            spanStatusBuilder.setStatus(StatusCode.ERROR);
        } else {
            spanStatusBuilder.setStatus(StatusCode.UNSET);
        }
    }
}

@@ -53,43 +53,8 @@
 c;%0A%0A
-import javax.annotation.Nullable;%0A%0A
 impo
@@ -502,34 +502,24 @@
             
-@Nullable 
 final Status
@@ -543,18 +543,8 @@
     
-@Nullable 
 fina

Remove JSR 305 annotations