fix: Envoy logs conversion error (#13019)

This commit is contained in:
kezhenxu94 2025-02-05 15:58:36 +08:00 committed by GitHub
parent 2cc6db9535
commit 217f2d55c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 0 deletions

View File

@ -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

View File

@ -20,6 +20,7 @@ package org.apache.skywalking.oap.server.library.util;
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;
@ -32,6 +33,7 @@ public class ProtoBufJsonUtils {
.TypeRegistry
.newBuilder()
.add(BytesValue.getDescriptor())
.add(Struct.getDescriptor())
.build()
)
.print(sourceMessage);