Skip to content

Commit 324da65

Browse files
committed
tracing and proxy configuration
1 parent ce84a85 commit 324da65

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

643642
impl LogServer {
643+
#[tracing::instrument(skip(self, proxy))]
644644
async fn effectuate_log_transfer(
645645
&self,
646646
collection_id: CollectionUuid,
@@ -731,6 +731,7 @@ impl LogServer {
731731
})
732732
}
733733

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

759+
#[tracing::instrument(skip(self, request))]
758760
async fn forward_scout_logs(
759761
&self,
760762
request: Request<ScoutLogsRequest>,
@@ -766,6 +768,7 @@ impl LogServer {
766768
}
767769
}
768770

771+
#[tracing::instrument(skip(self, request))]
769772
async fn forward_pull_logs(
770773
&self,
771774
request: Request<PullLogsRequest>,
@@ -777,6 +780,7 @@ impl LogServer {
777780
}
778781
}
779782

783+
#[tracing::instrument(skip(self, request))]
780784
async fn forward_update_collection_log_offset(
781785
&self,
782786
request: Request<UpdateCollectionLogOffsetRequest>,
@@ -788,6 +792,7 @@ impl LogServer {
788792
}
789793
}
790794

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