All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.openservices.ons.shaded.io.opentelemetry.context.Scope Maven / Gradle / Ivy

There is a newer version: 2.0.7.Final
Show newest version
/*
 * 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();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy