Class OpenTelemetryExporterFeature

java.lang.Object
io.micronaut.projectgen.micronaut.features.opentelemetry.OpenTelemetryExporterFeature
All Implemented Interfaces:
io.micronaut.core.naming.Described, io.micronaut.core.naming.Named, io.micronaut.core.order.Ordered, Feature, OpenTelemetryFeature
Direct Known Subclasses:
OpenTelemetryExporterGoogleCloudTrace, OpenTelemetryExporterJaeger, OpenTelemetryExporterLogging, OpenTelemetryExporterOtlp, OpenTelemetryExporterZipkin

public abstract class OpenTelemetryExporterFeature extends Object implements OpenTelemetryFeature
Abstract base class for OpenTelemetry exporter features in Micronaut. Provides common functionality for OpenTelemetry exporters with configurable names and descriptions.
  • Constructor Details

    • OpenTelemetryExporterFeature

      public OpenTelemetryExporterFeature()
  • Method Details

    • isVisible

      public boolean isVisible()
      Description copied from interface: Feature
      Some features should not be visible to the user because they are a common parent of other selectable features, or they should always be applied, or any other reason.
      Specified by:
      isVisible in interface Feature
      Returns:
      True if the feature should be able to be selected by the user
    • getName

      @NonNull public @NonNull String getName()
      Description copied from interface: Feature
      The name of the feature. It must be unique.
      Specified by:
      getName in interface Feature
      Specified by:
      getName in interface io.micronaut.core.naming.Named
      Specified by:
      getName in interface OpenTelemetryFeature
      Returns:
      the name of the feature
    • getTitle

      @NonNull public @NonNull String getTitle()
      Specified by:
      getTitle in interface Feature
      Returns:
      The title of the feature
    • getDescription

      @NonNull public @NonNull String getDescription()
      Specified by:
      getDescription in interface io.micronaut.core.naming.Described
      Specified by:
      getDescription in interface Feature
    • exporterName

      @NonNull protected abstract @NonNull String exporterName()
      Returns the name of the exporter.
      Returns:
      the exporter name