Class 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 Detail

      • OtelPlugin

        public OtelPlugin()
    • Method Detail

      • counter

        public void counter​(String name,
                            Map<String,​Object> labels,
                            String namespace,
                            String help,
                            String unit,
                            Double value)
        Specified by:
        counter in interface com.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 interface com.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 interface com.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 interface com.intergral.deep.agent.api.plugin.IMetricProcessor
      • createSpan

        public com.intergral.deep.agent.api.plugin.ITraceProvider.ISpan createSpan​(String name)
        Specified by:
        createSpan in interface com.intergral.deep.agent.api.plugin.ITraceProvider
      • currentSpan

        public com.intergral.deep.agent.api.plugin.ITraceProvider.ISpan currentSpan()
        Specified by:
        currentSpan in interface com.intergral.deep.agent.api.plugin.ITraceProvider
      • isActive

        public boolean isActive()
        Specified by:
        isActive in interface com.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 interface com.intergral.deep.agent.api.plugin.ISnapshotDecorator