io.opentelemetry.instrumentation.kafka.internal.KafkaConsumerContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of opentelemetry-kafka-clients-common Show documentation
Show all versions of opentelemetry-kafka-clients-common 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.kafka.internal;
import com.google.auto.value.AutoValue;
import io.opentelemetry.context.Context;
import javax.annotation.Nullable;
/**
* This class is internal and is hence not for public use. Its APIs are unstable and can change at
* any time.
*/
@AutoValue
public abstract class KafkaConsumerContext {
static KafkaConsumerContext create(
@Nullable Context context, @Nullable String consumerGroup, @Nullable String clientId) {
return new AutoValue_KafkaConsumerContext(context, consumerGroup, clientId);
}
@Nullable
public abstract Context getContext();
@Nullable
abstract String getConsumerGroup();
@Nullable
abstract String getClientId();
}