Class OpenTelemetryXray

java.lang.Object
io.micronaut.projectgen.micronaut.features.opentelemetry.AbstractOpenTelemetry
io.micronaut.projectgen.micronaut.features.opentelemetry.OpenTelemetryXray
All Implemented Interfaces:
io.micronaut.core.naming.Described, io.micronaut.core.naming.Named, io.micronaut.core.order.Ordered, Feature, OpenRewriteFeature, OpenTelemetryFeature

@Requires(property="micronaut.starter.feature.tracing.opentelemetry.xray.enabled", value="true", defaultValue="true") @Singleton public class OpenTelemetryXray extends AbstractOpenTelemetry implements OpenRewriteFeature
Feature that provides OpenTelemetry X-Ray integration for Micronaut applications. This feature adds OpenTelemetry support with X-Ray as the exporter for distributed tracing, including AWS SDK 2.2 instrumentation when available.
  • Field Details

  • Constructor Details

    • OpenTelemetryXray

      public OpenTelemetryXray(OpenTelemetry otel, OpenTelemetryHttp otelHttp, OpenTelemetryAnnotations otelAnnotations, OpenTelemetryGrpc openTelemetryGrpc, OpenTelemetryExporterOtlp otelExporter)
      Creates a new OpenTelemetryXray with the required OpenTelemetry components.
      Parameters:
      otel - the base OpenTelemetry feature
      otelHttp - the OpenTelemetry HTTP feature
      otelAnnotations - the OpenTelemetry annotations feature
      openTelemetryGrpc - the OpenTelemetry gRPC feature
      otelExporter - the OpenTelemetry OTLP exporter feature
  • Method Details

    • 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

      public 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
    • getRecipes

      public List<String> getRecipes(GeneratorContext generatorContext)
      Specified by:
      getRecipes in interface OpenRewriteFeature