Package com.intergral.deep.plugin
Class OtelPlugin
- java.lang.Object
-
- com.intergral.deep.plugin.OtelPlugin
-
- All Implemented Interfaces:
com.intergral.deep.agent.api.plugin.IMetricProcessor
,com.intergral.deep.agent.api.plugin.ISnapshotDecorator
,com.intergral.deep.agent.api.plugin.ITraceProvider
,com.intergral.deep.agent.api.spi.IConditional
,com.intergral.deep.agent.api.spi.IDeepPlugin
,com.intergral.deep.agent.api.spi.Ordered
public class OtelPlugin extends Object implements com.intergral.deep.agent.api.spi.IDeepPlugin, com.intergral.deep.agent.api.plugin.ITraceProvider, com.intergral.deep.agent.api.plugin.IMetricProcessor, com.intergral.deep.agent.api.spi.IConditional, com.intergral.deep.agent.api.plugin.ISnapshotDecorator
This plugin provides a connection between Deep and Otel. Allowing:- Metrics to be processed via Otel
- Traces to be created using Otel
-
-
Constructor Summary
Constructors Constructor Description OtelPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
counter(String name, Map<String,Object> labels, String namespace, String help, String unit, Double value)
com.intergral.deep.agent.api.plugin.ITraceProvider.ISpan
createSpan(String name)
com.intergral.deep.agent.api.plugin.ITraceProvider.ISpan
currentSpan()
com.intergral.deep.agent.api.resource.Resource
decorate(com.intergral.deep.agent.api.settings.ISettings settings, com.intergral.deep.agent.api.plugin.ISnapshotContext snapshot)
void
gauge(String name, Map<String,Object> labels, String namespace, String help, String unit, Double value)
void
histogram(String name, Map<String,Object> labels, String namespace, String help, String unit, Double value)
boolean
isActive()
void
summary(String name, Map<String,Object> labels, String namespace, String help, String unit, Double value)
-
-
-
Method Detail
-
counter
public void counter(String name, Map<String,Object> labels, String namespace, String help, String unit, Double value)
- Specified by:
counter
in interfacecom.intergral.deep.agent.api.plugin.IMetricProcessor
-
gauge
public void gauge(String name, Map<String,Object> labels, String namespace, String help, String unit, Double value)
- Specified by:
gauge
in interfacecom.intergral.deep.agent.api.plugin.IMetricProcessor
-
histogram
public void histogram(String name, Map<String,Object> labels, String namespace, String help, String unit, Double value)
- Specified by:
histogram
in interfacecom.intergral.deep.agent.api.plugin.IMetricProcessor
-
summary
public void summary(String name, Map<String,Object> labels, String namespace, String help, String unit, Double value)
- Specified by:
summary
in interfacecom.intergral.deep.agent.api.plugin.IMetricProcessor
-
createSpan
public com.intergral.deep.agent.api.plugin.ITraceProvider.ISpan createSpan(String name)
- Specified by:
createSpan
in interfacecom.intergral.deep.agent.api.plugin.ITraceProvider
-
currentSpan
public com.intergral.deep.agent.api.plugin.ITraceProvider.ISpan currentSpan()
- Specified by:
currentSpan
in interfacecom.intergral.deep.agent.api.plugin.ITraceProvider
-
isActive
public boolean isActive()
- Specified by:
isActive
in interfacecom.intergral.deep.agent.api.spi.IConditional
-
decorate
public com.intergral.deep.agent.api.resource.Resource decorate(com.intergral.deep.agent.api.settings.ISettings settings, com.intergral.deep.agent.api.plugin.ISnapshotContext snapshot)
- Specified by:
decorate
in interfacecom.intergral.deep.agent.api.plugin.ISnapshotDecorator
-
-