Skip to content

Commit

Permalink
fix(backend-native): Fix request sequence span ids
Browse files Browse the repository at this point in the history
  • Loading branch information
KSDaemon committed Jan 8, 2025
1 parent cae4ede commit 19c58d5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/cubejs-backend-native/src/transport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -347,10 +347,13 @@ impl TransportService for NodeBridgeTransport {
.map(|s| s.span_id.clone())
.unwrap_or_else(|| Uuid::new_v4().to_string());

let mut req_seq_id: u32 = 0;

loop {
req_seq_id += 1;
let extra = serde_json::to_string(&LoadRequest {
request: TransportRequest {
id: format!("{}-span-{}", request_id, 1),
id: format!("{}-span-{}", request_id, req_seq_id),
meta: Some(meta.clone()),
},
query: query.clone(),
Expand Down

0 comments on commit 19c58d5

Please sign in to comment.