Skip to content

Commit 9cecc5f

Browse files
committed
update tests with mdc prefix
1 parent 48b6105 commit 9cecc5f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

sentry-jul/src/test/kotlin/io/sentry/jul/SentryHandlerTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ class SentryHandlerTest {
572572
val log = logs.items.first()
573573
assertEquals("testing MDC properties in logs", log.body)
574574
val attributes = log.attributes!!
575-
assertEquals("someValue", attributes["someTag"]?.value)
575+
assertEquals("someValue", attributes["mdc.someTag"]?.value)
576576
assertNull(attributes["otherTag"])
577577
}
578578
)

sentry-log4j2/src/test/kotlin/io/sentry/log4j2/SentryAppenderTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ class SentryAppenderTest {
609609
val log = logs.items.first()
610610
assertEquals("testing MDC properties in logs", log.body)
611611
val attributes = log.attributes!!
612-
assertEquals("someValue", attributes["someTag"]?.value)
612+
assertEquals("someValue", attributes["mdc.someTag"]?.value)
613613
assertNull(attributes["otherTag"])
614614
}
615615
)

sentry-logback/src/test/kotlin/io/sentry/logback/SentryAppenderTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ class SentryAppenderTest {
837837
val log = logs.items.first()
838838
assertEquals("testing MDC properties in logs", log.body)
839839
val attributes = log.attributes!!
840-
assertEquals("someValue", attributes["someTag"]?.value)
840+
assertEquals("someValue", attributes["mdc.someTag"]?.value)
841841
assertNull(attributes["otherTag"])
842842
}
843843
)

0 commit comments

Comments
 (0)