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

org.opensearch.migrations.trafficcapture.kafkaoffloader.tracing.IRootKafkaOffloaderContext Maven / Gradle / Ivy

There is a newer version: 0.1.0.14
Show newest version
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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy