Commit 216127b 1 parent be68e0a commit 216127b Copy full SHA for 216127b
File tree 3 files changed +1
-11
lines changed
opentelemetry-proto/src/transform
3 files changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,6 @@ impl TonicLogsClient {
53
53
#[ async_trait]
54
54
impl LogExporter for TonicLogsClient {
55
55
async fn export ( & mut self , batch : Vec < LogData > ) -> LogResult < ( ) > {
56
- println ! ( "=============> exporting logs" ) ;
57
56
let ( mut client, metadata, extensions) = match & mut self . inner {
58
57
Some ( inner) => {
59
58
let ( m, e, _) = inner
@@ -73,7 +72,6 @@ impl LogExporter for TonicLogsClient {
73
72
. map ( Into :: into)
74
73
. collect ( )
75
74
} ;
76
- println ! ( "======> invoking export" ) ;
77
75
client
78
76
. export ( Request :: from_parts (
79
77
metadata,
@@ -82,9 +80,6 @@ impl LogExporter for TonicLogsClient {
82
80
) )
83
81
. await
84
82
. map_err ( crate :: Error :: from) ?;
85
-
86
- println ! ( "=============> logs exported" ) ;
87
-
88
83
Ok ( ( ) )
89
84
}
90
85
Original file line number Diff line number Diff line change @@ -99,7 +99,6 @@ impl LogExporter {
99
99
#[ async_trait]
100
100
impl opentelemetry_sdk:: export:: logs:: LogExporter for LogExporter {
101
101
async fn export ( & mut self , batch : Vec < LogData > ) -> opentelemetry:: logs:: LogResult < ( ) > {
102
- println ! ( "=============> To export : {:?}" , batch) ;
103
102
self . client . export ( batch) . await
104
103
}
105
104
Original file line number Diff line number Diff line change @@ -80,11 +80,7 @@ pub mod tonic {
80
80
Some ( Severity :: Fatal4 ) => SeverityNumber :: Fatal4 ,
81
81
None => SeverityNumber :: Unspecified ,
82
82
} ;
83
- println ! (
84
- "================> log_record.timestamp: {:?}, log_record.observed_timestamp: {:?}" ,
85
- log_record. timestamp. map( to_nanos) . unwrap_or_default( ) ,
86
- to_nanos( log_record. observed_timestamp. unwrap( ) )
87
- ) ;
83
+
88
84
LogRecord {
89
85
time_unix_nano : log_record. timestamp . map ( to_nanos) . unwrap_or_default ( ) ,
90
86
observed_time_unix_nano : to_nanos ( log_record. observed_timestamp . unwrap ( ) ) ,
You can’t perform that action at this time.
0 commit comments