public interface OpenTelemetryMetricsProvider<T extends OpenTelemetryMetricsConfigProvider>
| Modifier and Type | Method and Description |
|---|---|
void |
addMeteredComponent(String location)
Add a single component location for capturing metrics.
|
<N extends MetricBaseNotificationData<N>> |
captureCustomMetric(N metricNotification)
For any notifications raised with
MetricBaseNotificationData's
subclass as a notification data, this module
will delegate |
void |
captureFlowMetrics(TransactionMeta transactionMeta,
String flowName,
Exception exception)
This method is called when processing start or end of a Mule flow.
|
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.
|
void |
initialize(T configProvider,
io.opentelemetry.api.OpenTelemetry openTelemetry)
Initialize provider
|
void |
stop() |
void initialize(T configProvider, io.opentelemetry.api.OpenTelemetry openTelemetry)
configProvider - void stop()
void addMeteredComponent(String location)
location - String value of target processorvoid captureProcessorMetrics(org.mule.runtime.api.component.Component component,
org.mule.runtime.api.message.Error error,
String location,
SpanMeta spanMeta)
void captureFlowMetrics(TransactionMeta transactionMeta, String flowName, Exception exception)
transactionMeta - TransactionMeta for any information about related
transaction span.flowName - String name of the associated flowexception - Nullable Exception if any associated with the event<N extends MetricBaseNotificationData<N>> void captureCustomMetric(N metricNotification)
MetricBaseNotificationData's
subclass as a notification data, this module
will delegateN - Sub-class of MetricBaseNotificationDatametricNotification - MetricBaseNotificationData for the metricCopyright © 2024 AVIO Consulting. All rights reserved.