File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ impl Flusher {
54
54
55
55
pub async fn flush ( & self , batches : Option < Arc < Vec < Vec < u8 > > > > ) -> Vec < reqwest:: RequestBuilder > {
56
56
let Some ( api_key) = self . api_key_factory . get_api_key ( ) . await else {
57
- error ! ( "Skipping flush : Failed to resolve API key" ) ;
57
+ error ! ( "Skipping flushing logs : Failed to resolve API key" ) ;
58
58
return vec ! [ ] ;
59
59
} ;
60
60
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ impl TraceFlusher for ServerlessTraceFlusher {
58
58
59
59
async fn flush ( & self , failed_traces : Option < Vec < SendData > > ) -> Option < Vec < SendData > > {
60
60
let Some ( api_key) = self . api_key_factory . get_api_key ( ) . await else {
61
- error ! ( "Skipping flush in trace flusher : Failed to resolve API key" ) ;
61
+ error ! ( "Skipping flushing traces : Failed to resolve API key" ) ;
62
62
return None ;
63
63
} ;
64
64
@@ -83,6 +83,7 @@ impl TraceFlusher for ServerlessTraceFlusher {
83
83
while !trace_builders. is_empty ( ) {
84
84
let traces: Vec < _ > = trace_builders
85
85
. into_iter ( )
86
+ // Lazily set the API key
86
87
. map ( |builder| builder. with_api_key ( & api_key) )
87
88
. map ( SendDataBuilder :: build)
88
89
. collect ( ) ;
You can’t perform that action at this time.
0 commit comments