File tree Expand file tree Collapse file tree 7 files changed +347
-273
lines changed Expand file tree Collapse file tree 7 files changed +347
-273
lines changed Original file line number Diff line number Diff line change @@ -100,6 +100,7 @@ pub async fn ingest(
100
100
. create_stream_if_not_exists (
101
101
& stream_name,
102
102
StreamType :: UserDefined ,
103
+ None ,
103
104
vec ! [ log_source_entry. clone( ) ] ,
104
105
)
105
106
. await ?;
@@ -183,6 +184,7 @@ pub async fn handle_otel_logs_ingestion(
183
184
. create_stream_if_not_exists (
184
185
& stream_name,
185
186
StreamType :: UserDefined ,
187
+ None ,
186
188
vec ! [ log_source_entry. clone( ) ] ,
187
189
)
188
190
. await ?;
@@ -248,6 +250,7 @@ pub async fn handle_otel_metrics_ingestion(
248
250
. create_stream_if_not_exists (
249
251
& stream_name,
250
252
StreamType :: UserDefined ,
253
+ None ,
251
254
vec ! [ log_source_entry. clone( ) ] ,
252
255
)
253
256
. await ?;
@@ -313,6 +316,7 @@ pub async fn handle_otel_traces_ingestion(
313
316
. create_stream_if_not_exists (
314
317
& stream_name,
315
318
StreamType :: UserDefined ,
319
+ None ,
316
320
vec ! [ log_source_entry. clone( ) ] ,
317
321
)
318
322
. await ?;
Original file line number Diff line number Diff line change @@ -72,6 +72,12 @@ pub const OBJECT_STORE_DATA_GRANULARITY: u32 = LOCAL_SYNC_INTERVAL.as_secs() as
72
72
/// Describes the duration at the end of which parquets are pushed into objectstore.
73
73
pub const STORAGE_UPLOAD_INTERVAL : Duration = Duration :: from_secs ( 30 ) ;
74
74
75
+ /// Describes the duration during which local sync should be completed
76
+ pub const LOCAL_SYNC_THRESHOLD : Duration = Duration :: from_secs ( 30 ) ; // 30 secs
77
+
78
+ /// Describes the duration during which object store sync should be completed
79
+ pub const OBJECT_STORE_SYNC_THRESHOLD : Duration = Duration :: from_secs ( 15 ) ; // 15 secs
80
+
75
81
// A single HTTP client for all outgoing HTTP requests from the parseable server
76
82
pub static HTTP_CLIENT : Lazy < Client > = Lazy :: new ( || {
77
83
ClientBuilder :: new ( )
Original file line number Diff line number Diff line change @@ -330,6 +330,7 @@ impl Parseable {
330
330
. create_stream_if_not_exists (
331
331
INTERNAL_STREAM_NAME ,
332
332
StreamType :: Internal ,
333
+ None ,
333
334
vec ! [ log_source_entry] ,
334
335
)
335
336
. await
@@ -354,6 +355,7 @@ impl Parseable {
354
355
& self ,
355
356
stream_name : & str ,
356
357
stream_type : StreamType ,
358
+ custom_partition : Option < & String > ,
357
359
log_source : Vec < LogSourceEntry > ,
358
360
) -> Result < bool , PostError > {
359
361
if self . streams . contains ( stream_name) {
@@ -375,7 +377,7 @@ impl Parseable {
375
377
stream_name. to_string ( ) ,
376
378
"" ,
377
379
None ,
378
- None ,
380
+ custom_partition ,
379
381
false ,
380
382
Arc :: new ( Schema :: empty ( ) ) ,
381
383
stream_type,
You can’t perform that action at this time.
0 commit comments