public class OpenTelemetryMetricsProviderCollection extends ArrayList<OpenTelemetryMetricsProvider> implements OpenTelemetryMetricsProvider<OpenTelemetryMetricsConfigProvider>
modCount| Constructor and Description |
|---|
OpenTelemetryMetricsProviderCollection() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMeteredComponent(String location)
Add a single component location for capturing metrics.
|
void |
captureCustomMetric(MetricBaseNotificationData 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(OpenTelemetryMetricsConfigProvider configProvider,
io.opentelemetry.api.OpenTelemetry openTelemetry)
Initialize provider
|
void |
stop() |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCodeparallelStream, streampublic OpenTelemetryMetricsProviderCollection()
public void initialize(OpenTelemetryMetricsConfigProvider configProvider, io.opentelemetry.api.OpenTelemetry openTelemetry)
OpenTelemetryMetricsProviderinitialize in interface OpenTelemetryMetricsProvider<OpenTelemetryMetricsConfigProvider>configProvider - public void stop()
stop in interface OpenTelemetryMetricsProvider<OpenTelemetryMetricsConfigProvider>public void addMeteredComponent(String location)
OpenTelemetryMetricsProvideraddMeteredComponent in interface OpenTelemetryMetricsProvider<OpenTelemetryMetricsConfigProvider>location - String value of target processorpublic void captureProcessorMetrics(org.mule.runtime.api.component.Component component,
org.mule.runtime.api.message.Error error,
String location,
SpanMeta spanMeta)
OpenTelemetryMetricsProvidercaptureProcessorMetrics in interface OpenTelemetryMetricsProvider<OpenTelemetryMetricsConfigProvider>component - Component instance of the Processorerror - Nullable Error if any associated with the event.location - String of the associated processorspanMeta - SpanMeta for any additional information about related
Spanpublic void captureFlowMetrics(TransactionMeta transactionMeta, String flowName, Exception exception)
OpenTelemetryMetricsProvidercaptureFlowMetrics in interface OpenTelemetryMetricsProvider<OpenTelemetryMetricsConfigProvider>transactionMeta - TransactionMeta for any information about related
transaction span.flowName - String name of the associated flowexception - Nullable Exception if any associated with the eventpublic void captureCustomMetric(MetricBaseNotificationData metricNotification)
OpenTelemetryMetricsProviderMetricBaseNotificationData's
subclass as a notification data, this module
will delegatecaptureCustomMetric in interface OpenTelemetryMetricsProvider<OpenTelemetryMetricsConfigProvider>metricNotification - MetricBaseNotificationData for the metricCopyright © 2024 AVIO Consulting. All rights reserved.