Interface OtlpMetricsSender

All Known Implementing Classes:
OtlpHttpMetricsSender

public interface OtlpMetricsSender
This is responsible for sending OTLP protobuf format metrics to a compatible location. Specific implementations can use different transports or clients for sending the metrics.
Since:
1.15.0
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    Immutable representation of a payload of metrics to use with an OtlpMetricsSender.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Send a batch of OTLP Protobuf format metrics to an OTLP receiver.
  • Method Details

    • send

      void send(OtlpMetricsSender.Request request) throws Exception
      Send a batch of OTLP Protobuf format metrics to an OTLP receiver.
      Parameters:
      request - metrics request to publish
      Throws:
      Exception - when there is an exception in sending the metrics; the caller should handle this in some way such as logging the exception