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 String
Returns the name of the exporter.getRecipes
(GeneratorContext generatorContext) boolean
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.Methods inherited from class io.micronaut.projectgen.micronaut.features.opentelemetry.OpenTelemetryExporterFeature
getDescription, getName, getTitle
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.core.naming.Described
getDescription
Methods inherited from interface io.micronaut.projectgen.core.feature.Feature
getDescription, getOrder, getTitle, isCommunity, isPreview, processSelectedFeatures
Methods inherited from interface io.micronaut.projectgen.core.openrewrite.OpenRewriteFeature
apply, getFrameworkDocumentation, getThirdPartyDocumentation, processRecipes
Methods inherited from interface io.micronaut.projectgen.micronaut.features.opentelemetry.OpenTelemetryFeature
getCategory, supports
-
Constructor Details
-
OpenTelemetryExporterLogging
public OpenTelemetryExporterLogging()
-
-
Method Details
-
exporterName
Description copied from class:OpenTelemetryExporterFeature
Returns the name of the exporter.- Specified by:
exporterName
in classOpenTelemetryExporterFeature
- Returns:
- the exporter name
-
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 interfaceFeature
- Overrides:
isVisible
in classOpenTelemetryExporterFeature
- Returns:
- True if the feature should be able to be selected by the user
-
getRecipes
- Specified by:
getRecipes
in interfaceOpenRewriteFeature
-