Skip to content

Commit

Permalink
fix: Envoy logs conversion error (#13019)
Browse files Browse the repository at this point in the history
  • Loading branch information
kezhenxu94 authored Feb 5, 2025
1 parent 2cc6db9 commit 217f2d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/en/changes/changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
* Add Baseline module for support alarm module query baseline data.
* BaseLine: Support query baseline metrics names.
* Add `Get Node List in the Cluster` API.
* Add type descriptor when converting Envoy logs to JSON for persistence, to avoid conversion error.

#### UI

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

import com.google.protobuf.BytesValue;
import com.google.protobuf.Message;
import com.google.protobuf.Struct;
import com.google.protobuf.util.JsonFormat;
import java.io.IOException;

Expand All @@ -32,6 +33,7 @@ public static String toJSON(Message sourceMessage) throws IOException {
.TypeRegistry
.newBuilder()
.add(BytesValue.getDescriptor())
.add(Struct.getDescriptor())
.build()
)
.print(sourceMessage);
Expand Down

0 comments on commit 217f2d5

Please sign in to comment.