com.aliyun.openservices.ons.shaded.io.opentelemetry.context.Scope Maven / Gradle / Ivy
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package com.aliyun.openservices.ons.shaded.io.opentelemetry.context;
import com.aliyun.openservices.ons.shaded.io.opentelemetry.context.ThreadLocalContextStorage.NoopScope;
public abstract class Scope {
/**
* Returns a {@link Scope} that does nothing. Represents attaching a {@link Context} when it is
* already attached.
*/
public static Scope noop() {
return NoopScope.INSTANCE;
}
public abstract void close();
}