-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
be1fd69
commit 8072829
Showing
3 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
...ovy/io/opentelemetry/javaagent/instrumentation/logback/v1_0/LogbackWithBaggageTest.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* | ||
* Copyright The OpenTelemetry Authors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package io.opentelemetry.javaagent.instrumentation.logback.v1_0 | ||
|
||
import io.opentelemetry.instrumentation.logback.mdc.v1_0.AbstractLogbackWithBaggageTest | ||
import io.opentelemetry.instrumentation.test.AgentTestTrait | ||
import io.opentelemetry.javaagent.instrumentation.logback.mdc.v1_0.LoggingEventInstrumentation | ||
|
||
class LogbackWithBaggageTest extends AbstractLogbackWithBaggageTest implements AgentTestTrait { | ||
|
||
@Override | ||
void setBaggageFlag() { | ||
LoggingEventInstrumentation.GetMdcAdvice.addBaggage = true | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
...st/groovy/io/opentelemetry/instrumentation/logback/mdc/v1_0/LogbackWithBaggageTest.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* | ||
* Copyright The OpenTelemetry Authors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package io.opentelemetry.instrumentation.logback.mdc.v1_0 | ||
|
||
|
||
import io.opentelemetry.instrumentation.test.LibraryTestTrait | ||
|
||
class LogbackWithBaggageTest extends AbstractLogbackWithBaggageTest implements LibraryTestTrait { | ||
@Override | ||
void setBaggageFlag() { | ||
OpenTelemetryAppender.addBaggage = true | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...y/io/opentelemetry/instrumentation/logback/mdc/v1_0/AbstractLogbackWithBaggageTest.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* | ||
* Copyright The OpenTelemetry Authors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package io.opentelemetry.instrumentation.logback.mdc.v1_0 | ||
|
||
abstract class AbstractLogbackWithBaggageTest extends AbstractLogbackTest { | ||
@Override | ||
boolean expectBaggage() { | ||
return true | ||
} | ||
} |