File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ use pairing::PairingHandler;
55use std:: sync:: atomic:: AtomicBool ;
66use std:: time:: Duration ;
77use tracing_batteries:: prelude:: * ;
8+ use tracing_batteries:: { OpenTelemetry , Session } ;
89
910#[ macro_use]
1011mod macros;
@@ -160,7 +161,8 @@ async fn main() {
160161
161162 let args = Args :: parse ( ) ;
162163
163- let session = telemetry:: setup ( ) ;
164+ let session = Session :: new ( "github-backup" , version ! ( ) )
165+ . with_battery ( OpenTelemetry :: new ( "" ) ) ;
164166
165167 let result = run ( args) . await ;
166168
Original file line number Diff line number Diff line change 11mod traced_stream;
22
33pub use traced_stream:: * ;
4-
5- use tracing_batteries:: * ;
6-
7- pub fn setup ( ) -> Session {
8- Session :: new ( "github-backup" , version ! ( ) )
9- . with_battery ( OpenTelemetry :: new ( "" ) . with_protocol ( OpenTelemetryProtocol :: HttpJson ) )
10- }
You can’t perform that action at this time.
0 commit comments