io.opentelemetry.instrumentation.rocketmqclient.v4_8.ContextAndScope Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of opentelemetry-rocketmq-client-4.8 Show documentation
Show all versions of opentelemetry-rocketmq-client-4.8 Show documentation
Instrumentation of Java libraries using OpenTelemetry.
The newest version!
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.instrumentation.rocketmqclient.v4_8;
import com.google.auto.value.AutoValue;
import io.opentelemetry.context.Context;
import io.opentelemetry.context.Scope;
@AutoValue
abstract class ContextAndScope {
static ContextAndScope create(Context context, Scope scope) {
return new AutoValue_ContextAndScope(context, scope);
}
abstract Context getContext();
abstract Scope getScope();
void close() {
getScope().close();
}
}