summaryrefslogtreecommitdiff
path: root/core/src/test
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2024-07-03 20:13:27 +0200
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2024-07-03 20:13:27 +0200
commit992aa956b609653babe761782c4035ef5ed24efb (patch)
treeb6067b79e166c989036d218f9256fabdd0a1fc74 /core/src/test
parent7e3e7885bc349733c2126661119c1dd41133053f (diff)
feat: Add InsertId class.
Change-Id: Id620972fea28922a453cbe95ad8467d84df8eca8
Diffstat (limited to 'core/src/test')
-rw-r--r--core/src/test/java/eu/mulk/quarkus/googlecloud/jsonlogging/FormatterTest.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/src/test/java/eu/mulk/quarkus/googlecloud/jsonlogging/FormatterTest.java b/core/src/test/java/eu/mulk/quarkus/googlecloud/jsonlogging/FormatterTest.java
index 16fc537..d202fd9 100644
--- a/core/src/test/java/eu/mulk/quarkus/googlecloud/jsonlogging/FormatterTest.java
+++ b/core/src/test/java/eu/mulk/quarkus/googlecloud/jsonlogging/FormatterTest.java
@@ -67,6 +67,7 @@ class FormatterTest {
assertLinesMatch(
List.of(
"\\{"
+ + "\"logging.googleapis.com/insertId\":\"123-456-789\","
+ "\"logging.googleapis.com/labels\":\\{\"a\":\"b\",\"requestId\":\"123\"\\},"
+ "\"traceId\":\"39f9a49a9567a8bd7087b708f8932550\","
+ "\"spanId\":\"c7431b14630b633d\","
@@ -91,7 +92,8 @@ class FormatterTest {
new Object[] {
(StructuredParameter)
() -> JSON.createObjectBuilder().add("one", 1).add("two", 2.0).add("yes", true),
- Label.of("a", "b")
+ Label.of("a", "b"),
+ InsertId.of("123-456-789"),
});
return logRecord;
}