Class OpenTelemetryExporterLogging
java.lang.Object
io.micronaut.projectgen.micronaut.features.opentelemetry.OpenTelemetryExporterFeature
io.micronaut.projectgen.micronaut.features.opentelemetry.OpenTelemetryExporterLogging
- 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.exporter.logging.enabled",
value="true",
defaultValue="true")
@Singleton
public class OpenTelemetryExporterLogging
extends OpenTelemetryExporterFeature
implements OpenRewriteFeature
Feature that provides OpenTelemetry logging exporter support for Micronaut applications.
This feature adds the necessary configuration and recipes for exporting traces to logs.
-
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NonNull StringReturns the name of the exporter.getRecipes(GeneratorContext generatorContext) booleanSome 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.Methods inherited from class io.micronaut.projectgen.micronaut.features.opentelemetry.OpenTelemetryExporterFeature
getDescription, getName, getTitleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.core.naming.Described
getDescriptionMethods inherited from interface io.micronaut.projectgen.core.feature.Feature
getDescription, getOrder, getTitle, isCommunity, isPreview, processSelectedFeaturesMethods inherited from interface io.micronaut.projectgen.core.openrewrite.OpenRewriteFeature
apply, getFrameworkDocumentation, getThirdPartyDocumentation, processRecipesMethods inherited from interface io.micronaut.projectgen.micronaut.features.opentelemetry.OpenTelemetryFeature
getCategory, supports
-
Constructor Details
-
OpenTelemetryExporterLogging
public OpenTelemetryExporterLogging()
-
-
Method Details
-
exporterName
Description copied from class:OpenTelemetryExporterFeatureReturns the name of the exporter.- Specified by:
exporterNamein classOpenTelemetryExporterFeature- Returns:
- the exporter name
-
isVisible
public boolean isVisible()Description copied from interface:FeatureSome 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:
isVisiblein interfaceFeature- Overrides:
isVisiblein classOpenTelemetryExporterFeature- Returns:
- True if the feature should be able to be selected by the user
-
getRecipes
- Specified by:
getRecipesin interfaceOpenRewriteFeature
-