Skip to content

Commit e4a1e47

Browse files
committed
tracing and proxy configuration
1 parent e218eae commit e4a1e47

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

rust/log-service/src/lib.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,6 @@ async fn get_log_from_handle<'a>(
205205
_phantom: std::marker::PhantomData,
206206
});
207207
}
208-
tracing::info!("Opening log at {}", prefix);
209208
let opened = LogWriter::open(
210209
options.clone(),
211210
Arc::clone(storage),
@@ -667,6 +666,7 @@ impl LogServer {
667666
Ok(())
668667
}
669668

669+
#[tracing::instrument(skip(self, proxy))]
670670
async fn effectuate_log_transfer(
671671
&self,
672672
collection_id: CollectionUuid,
@@ -757,6 +757,7 @@ impl LogServer {
757757
})
758758
}
759759

760+
#[tracing::instrument(skip(self, request))]
760761
async fn forward_push_logs(
761762
&self,
762763
collection_id: CollectionUuid,
@@ -781,6 +782,7 @@ impl LogServer {
781782
}
782783
}
783784

785+
#[tracing::instrument(skip(self, request))]
784786
async fn forward_scout_logs(
785787
&self,
786788
request: Request<ScoutLogsRequest>,
@@ -792,6 +794,7 @@ impl LogServer {
792794
}
793795
}
794796

797+
#[tracing::instrument(skip(self, request))]
795798
async fn forward_pull_logs(
796799
&self,
797800
request: Request<PullLogsRequest>,
@@ -803,6 +806,7 @@ impl LogServer {
803806
}
804807
}
805808

809+
#[tracing::instrument(skip(self, request))]
806810
async fn forward_update_collection_log_offset(
807811
&self,
808812
request: Request<UpdateCollectionLogOffsetRequest>,
@@ -814,6 +818,7 @@ impl LogServer {
814818
}
815819
}
816820

821+
#[tracing::instrument(skip(self, request))]
817822
async fn forward_fork_logs(
818823
&self,
819824
request: Request<ForkLogsRequest>,

rust/worker/tilt_config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,3 +191,10 @@ log_service:
191191
batch_size_bytes: 8388608 # 8MiB
192192
throughput: 3300
193193
headroom: 200
194+
proxy_to:
195+
host: "logservice.chroma"
196+
port: 50051
197+
connect_timeout_ms: 5000
198+
request_timeout_ms: 60000 # 1 minute
199+
alt_host: "rust-log-service.chroma"
200+
use_alt_host_for_everything: true

0 commit comments

Comments
 (0)