
com.undefinedlabs.scope.scopemanager.DistributedContextScopeUtils Maven / Gradle / Ivy
package com.undefinedlabs.scope.scopemanager;
import com.undefinedlabs.scope.context.ImmutableContext;
import io.opentracing.Scope;
public enum DistributedContextScopeUtils {
INSTANCE;
static final ImmutableContext.Key CONTEXT_SPAN_KEY =
ImmutableContext.key("scopetracing-trace-scope-key");
public static ImmutableContext withValue(ImmutableContext context, Scope scope) {
return context.withValue(CONTEXT_SPAN_KEY, scope);
}
public static Scope getValue(ImmutableContext context) {
return CONTEXT_SPAN_KEY.get(context);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy