Instrumentation supplémentaire

The content of this page may be outdated and some links may be invalid. A newer version of this page exists in English.

More information ...

To see the changes to the English page since this page was last updated: visit GitHub compare 3d179dbe..2d89b60b and search for content/en/docs/zero-code/java/spring-boot-starter/additional-instrumentations.md.

Le Spring Boot starter OpenTelemetry fournit une instrumentation prête à l’emploi que vous pouvez augmenter avec des instrumentations supplémentaires.

Instrumentation Log4j2

Vous devez ajouter l’appender OpenTelemetry à votre fichier log4j2.xml :

<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="WARN" packages="io.opentelemetry.instrumentation.log4j.appender.v2_17">
    <Appenders>
        <OpenTelemetry name="OpenTelemetryAppender"/>
    </Appenders>
    <Loggers>
        <Root>
            <AppenderRef ref="OpenTelemetryAppender" level="All"/>
        </Root>
    </Loggers>
</Configuration>

Vous pouvez trouver plus d’options de configuration pour l’appender OpenTelemetry dans la bibliothèque d’instrumentation Log4j.

Propriété systèmeTypeDéfautDescription
otel.instrumentation.log4j-appender.enabledBooleantrueActive la configuration de l’appender Log4j OpenTelemetry avec une instance OpenTelemetry.

Bibliothèques d’instrumentation

Vous pouvez configurer d’autres instrumentations en utilisant les bibliothèques d’instrumentation OpenTelemetry.


Dernière modification June 4, 2026: i18n: update drifted status (#10167) (1f686d5f)