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 Summary
FieldsFields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionOpenTelemetryXray(OpenTelemetry otel, OpenTelemetryHttp otelHttp, OpenTelemetryAnnotations otelAnnotations, OpenTelemetryGrpc openTelemetryGrpc, OpenTelemetryExporterOtlp otelExporter) Creates a new OpenTelemetryXray with the required OpenTelemetry components. -
Method Summary
Modifier and TypeMethodDescription@NonNull String@NonNull StringgetName()The name of the feature.getRecipes(GeneratorContext generatorContext) getTitle()Methods inherited from class AbstractOpenTelemetry
processSelectedFeaturesMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.core.naming.Described
getDescriptionMethods inherited from interface Feature
getOrder, isCommunity, isPreview, isVisible, processSelectedFeaturesMethods inherited from interface OpenRewriteFeature
apply, getFrameworkDocumentation, getThirdPartyDocumentation, processRecipesMethods inherited from interface OpenTelemetryFeature
getCategory, supports
-
Field Details
-
NAME
- See Also:
-
-
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 featureotelHttp- the OpenTelemetry HTTP featureotelAnnotations- the OpenTelemetry annotations featureopenTelemetryGrpc- the OpenTelemetry gRPC featureotelExporter- the OpenTelemetry OTLP exporter feature
-
-
Method Details
-
getName
Description copied from interface:FeatureThe name of the feature. It must be unique.- Specified by:
getNamein interfaceFeature- Specified by:
getNamein interfaceio.micronaut.core.naming.Named- Specified by:
getNamein interfaceOpenTelemetryFeature- Returns:
- the name of the feature
-
getTitle
-
getDescription
- Specified by:
getDescriptionin interfaceio.micronaut.core.naming.Described- Specified by:
getDescriptionin interfaceFeature
-
getRecipes
- Specified by:
getRecipesin interfaceOpenRewriteFeature
-