grpc smoke test: Add logging of trace_id to pattern and target log4j2 2.13.2 (#2406)

* Add logging of trace_id to pattern and target 2.14.0

* Update build.gradle
This commit is contained in:
Anuraag Agrawal 2021-02-25 15:49:33 +09:00 committed by GitHub
parent c4a11549b2
commit 9d47f9272b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ repositories {
dependencies {
implementation platform("io.grpc:grpc-bom:1.33.1")
implementation platform("io.opentelemetry:opentelemetry-bom:0.17.0")
implementation platform("org.apache.logging.log4j:log4j-bom:2.13.3")
implementation platform("org.apache.logging.log4j:log4j-bom:2.13.2")
implementation "io.grpc:grpc-netty-shaded"
implementation "io.grpc:grpc-protobuf"

View File

@ -2,7 +2,7 @@
<Configuration status="WARN">
<Appenders>
<Console name="Console" target="SYSTEM_OUT">
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/>
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} trace_id=%X{trace_id} span_id=%X{span_id} - %msg%n"/>
</Console>
</Appenders>
<Loggers>