Package io.micrometer.registry.otlp
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 ClassesModifier and TypeInterfaceDescriptionstatic classImmutable representation of a payload of metrics to use with anOtlpMetricsSender. -
Method Summary
Modifier and TypeMethodDescriptionvoidsend(OtlpMetricsSender.Request request) Send a batch of OTLP Protobuf format metrics to an OTLP receiver.
-
Method Details
-
send
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
-