summaryrefslogtreecommitdiff
path: root/runtime/src/main/java/eu/mulk/quarkus/observability/googlecloud/jsonlogging/GoogleCloudLogEntry.java
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/src/main/java/eu/mulk/quarkus/observability/googlecloud/jsonlogging/GoogleCloudLogEntry.java')
-rw-r--r--runtime/src/main/java/eu/mulk/quarkus/observability/googlecloud/jsonlogging/GoogleCloudLogEntry.java14
1 files changed, 5 insertions, 9 deletions
diff --git a/runtime/src/main/java/eu/mulk/quarkus/observability/googlecloud/jsonlogging/GoogleCloudLogEntry.java b/runtime/src/main/java/eu/mulk/quarkus/observability/googlecloud/jsonlogging/GoogleCloudLogEntry.java
index 3f5a836..0450d0c 100644
--- a/runtime/src/main/java/eu/mulk/quarkus/observability/googlecloud/jsonlogging/GoogleCloudLogEntry.java
+++ b/runtime/src/main/java/eu/mulk/quarkus/observability/googlecloud/jsonlogging/GoogleCloudLogEntry.java
@@ -8,8 +8,8 @@ import javax.json.bind.annotation.JsonbProperty;
/**
* A JSON log entry compatible with Google Cloud Logging.
*
- * <p>Roughly (but not quite) corresponds to Google Cloud Logging's
- * <a href="https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry">LogEntry</a>
+ * <p>Roughly (but not quite) corresponds to Google Cloud Logging's <a
+ * href="https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry">LogEntry</a>
* structure.
*/
public record GoogleCloudLogEntry(
@@ -25,14 +25,10 @@ public record GoogleCloudLogEntry(
@Nullable String getNestedDiagnosticContext,
@Nullable @JsonbProperty("@type") String getType) {
- static public record SourceLocation(
- @Nullable String getFile,
- @Nullable String getLine,
- @Nullable String getFunction) {}
+ public static record SourceLocation(
+ @Nullable String getFile, @Nullable String getLine, @Nullable String getFunction) {}
- static public record Timestamp(
- long getSeconds,
- int getNanos) {
+ public static record Timestamp(long getSeconds, int getNanos) {
public Timestamp(Instant t) {
this(t.getEpochSecond(), t.getNano());