Don't use deprecated class in Grizzly instrumentation
MODIFY
instrumentation/grizzly-2.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/grizzly/GrizzlyStateStorage.java
instrumentation/grizzly-2.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/grizzly/GrizzlyStateStorage.java
package io.opentelemetry.javaagent.instrumentation.grizzly;
-import static io.opentelemetry.instrumentation.api.tracer.HttpServerTracer.CONTEXT_ATTRIBUTE;
-
import io.opentelemetry.context.Context;
import javax.annotation.Nullable;
import org.glassfish.grizzly.filterchain.FilterChainContext;
@@ -15,6 +13,7 @@ import org.glassfish.grizzly.http.HttpRequestPacket;
public final class GrizzlyStateStorage {
private static final String REQUEST_ATTRIBUTE = GrizzlyStateStorage.class.getName() + ".request";
+ private static final String CONTEXT_ATTRIBUTE = GrizzlyStateStorage.class.getName() + ".context";
public static void attachContextAndRequest(
FilterChainContext filterChainContext, Context context, HttpRequestPacket request) {

Don't use deprecated class in Grizzly instrumentation (#4485)