Commit 4c87df0 1 parent 3569542 commit 4c87df0 Copy full SHA for 4c87df0
File tree 2 files changed +4
-5
lines changed
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -281,11 +281,8 @@ impl HttpEventEncoder<BytesMut> for InfluxDbLogsEncoder {
281
281
282
282
if let Some ( source_type_path) = log. source_type_path ( ) {
283
283
self . tags . replace ( source_type_path) ;
284
- }
285
-
286
- if let Some ( source_type_key) = log_schema ( ) . source_type_key ( ) {
287
284
log. rename_key (
288
- ( PathPrefix :: Event , source_type_key ) ,
285
+ ( PathPrefix :: Event , source_type_path ) ,
289
286
( PathPrefix :: Event , & self . source_type_key ) ,
290
287
) ;
291
288
}
Original file line number Diff line number Diff line change @@ -964,7 +964,9 @@ mod tests {
964
964
lookup:: PathPrefix :: Event ,
965
965
log_schema ( ) . source_type_key ( ) . unwrap ( ) ,
966
966
) )
967
- . unwrap ( ) . as_str ( ) . unwrap ( ) ;
967
+ . unwrap ( )
968
+ . as_str ( )
969
+ . unwrap ( ) ;
968
970
assert_eq ! ( source_type_key_value, SimpleHttpConfig :: NAME ) ;
969
971
assert_eq ! ( log[ "http_path" ] , "/" . into( ) ) ;
970
972
}
You can’t perform that action at this time.
0 commit comments