org.opensearch.migrations.trafficcapture.kafkaoffloader.tracing.IRootKafkaOffloaderContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of captureKafkaOffloader Show documentation
Show all versions of captureKafkaOffloader Show documentation
Everything opensearch migrations
package org.opensearch.migrations.trafficcapture.kafkaoffloader.tracing;
import org.opensearch.migrations.tracing.IInstrumentConstructor;
import org.opensearch.migrations.tracing.commoncontexts.IConnectionContext;
public interface IRootKafkaOffloaderContext extends IInstrumentConstructor {
KafkaRecordContext.MetricInstruments getKafkaOffloadingInstruments();
default KafkaRecordContext createKafkaRecordContext(
IConnectionContext telemetryContext,
String topicNameForTraffic,
String recordId,
int length
) {
return new KafkaRecordContext(this, telemetryContext, topicNameForTraffic, recordId, length);
}
}