luozenglin commented on code in PR #11856:
URL: https://github.com/apache/doris/pull/11856#discussion_r952739547


##########
be/src/util/telemetry/telemetry.cpp:
##########
@@ -38,6 +40,26 @@ namespace zipkin = opentelemetry::exporter::zipkin;
 namespace resource = opentelemetry::sdk::resource;
 namespace propagation = opentelemetry::context::propagation;
 namespace otlp = opentelemetry::exporter::otlp;
+namespace internal_log = opentelemetry::sdk::common::internal_log;
+
+class OpenTelemetryLogHandler : public internal_log::LogHandler {
+public:
+    void Handle(internal_log::LogLevel level, const char* file, int line, 
const char* msg,
+                const opentelemetry::sdk::common::AttributeMap& attributes) 
noexcept override {
+        if (level == internal_log::LogLevel::Error || level == 
internal_log::LogLevel::Warning) {
+            std::stringstream output_s;

Review Comment:
   I replaced `std::stringstream` with `fmt::format`. Thank you.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to