Skip to content

Commit 5bc99c6

Browse files
committed
tracing and proxy configuration
1 parent a953a19 commit 5bc99c6

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
@@ -202,7 +202,6 @@ async fn get_log_from_handle<'a>(
202202
_phantom: std::marker::PhantomData,
203203
});
204204
}
205-
tracing::info!("Opening log at {}", prefix);
206205
let opened = LogWriter::open(
207206
options.clone(),
208207
Arc::clone(storage),
@@ -640,6 +639,7 @@ pub struct LogServer {
640639
}
641640

642641
impl LogServer {
642+
#[tracing::instrument(skip(self, proxy))]
643643
async fn effectuate_log_transfer(
644644
&self,
645645
collection_id: CollectionUuid,
@@ -730,6 +730,7 @@ impl LogServer {
730730
})
731731
}
732732

733+
#[tracing::instrument(skip(self, request))]
733734
async fn forward_push_logs(
734735
&self,
735736
collection_id: CollectionUuid,
@@ -754,6 +755,7 @@ impl LogServer {
754755
}
755756
}
756757

758+
#[tracing::instrument(skip(self, request))]
757759
async fn forward_scout_logs(
758760
&self,
759761
request: Request<ScoutLogsRequest>,
@@ -765,6 +767,7 @@ impl LogServer {
765767
}
766768
}
767769

770+
#[tracing::instrument(skip(self, request))]
768771
async fn forward_pull_logs(
769772
&self,
770773
request: Request<PullLogsRequest>,
@@ -776,6 +779,7 @@ impl LogServer {
776779
}
777780
}
778781

782+
#[tracing::instrument(skip(self, request))]
779783
async fn forward_update_collection_log_offset(
780784
&self,
781785
request: Request<UpdateCollectionLogOffsetRequest>,
@@ -787,6 +791,7 @@ impl LogServer {
787791
}
788792
}
789793

794+
#[tracing::instrument(skip(self, request))]
790795
async fn forward_fork_logs(
791796
&self,
792797
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)