Interface OpenTelemetryMetricsProvider<T extends OpenTelemetryMetricsConfigProvider>
-
- All Known Implementing Classes:
OpenTelemetryMetricsProviderCollection
public interface OpenTelemetryMetricsProvider<T extends OpenTelemetryMetricsConfigProvider>Service interface for Metrics providers
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddMeteredComponent(String location)Add a single component location for capturing metrics.<N extends MetricBaseNotificationData<N>>
voidcaptureCustomMetric(N metricNotification)For any notifications raised withMetricBaseNotificationData's subclass as a notification data, this module will delegatevoidcaptureFlowMetrics(TransactionMeta transactionMeta, String flowName, Exception exception)This method is called when processing start or end of a Mule flow.voidcaptureProcessorMetrics(org.mule.runtime.api.component.Component component, org.mule.runtime.api.message.Error error, String location, SpanMeta spanMeta)This method is called for capturing Mule Processor event metrics such as start or end of the execution.voidinitialize(T configProvider, io.opentelemetry.api.OpenTelemetry openTelemetry)Initialize providervoidstop()
-
-
-
Method Detail
-
initialize
void initialize(T configProvider, io.opentelemetry.api.OpenTelemetry openTelemetry)
Initialize provider- Parameters:
configProvider-
-
stop
void stop()
-
addMeteredComponent
void addMeteredComponent(String location)
Add a single component location for capturing metrics.- Parameters:
location-Stringvalue of target processor
-
captureProcessorMetrics
void captureProcessorMetrics(org.mule.runtime.api.component.Component component, org.mule.runtime.api.message.Error error, String location, SpanMeta spanMeta)This method is called for capturing Mule Processor event metrics such as start or end of the execution. Implement this method for capture any processor metrics.
-
captureFlowMetrics
void captureFlowMetrics(TransactionMeta transactionMeta, String flowName, Exception exception)
This method is called when processing start or end of a Mule flow. Implement this method to capture any flow metrics.- Parameters:
transactionMeta-TransactionMetafor any information about related transaction span.flowName-Stringname of the associated flowexception- NullableExceptionif any associated with the event
-
captureCustomMetric
<N extends MetricBaseNotificationData<N>> void captureCustomMetric(N metricNotification)
For any notifications raised withMetricBaseNotificationData's subclass as a notification data, this module will delegate- Type Parameters:
N- Sub-class ofMetricBaseNotificationData- Parameters:
metricNotification-MetricBaseNotificationDatafor the metric
-
-