mirror of
https://github.com/katanemo/plano.git
synced 2026-06-17 15:25:17 +02:00
fix service name for spans
This commit is contained in:
parent
7feb168a06
commit
aa1e42068a
1 changed files with 2 additions and 2 deletions
|
|
@ -31,7 +31,7 @@ const BIND_ADDRESS: &str = "0.0.0.0:9091";
|
|||
|
||||
fn get_tracer() -> &'static BoxedTracer {
|
||||
static TRACER: OnceLock<BoxedTracer> = OnceLock::new();
|
||||
TRACER.get_or_init(|| global::tracer("archgw/brightstaff"))
|
||||
TRACER.get_or_init(|| global::tracer("archgw/router"))
|
||||
}
|
||||
|
||||
// Utility function to extract the context from the incoming request headers
|
||||
|
|
@ -122,7 +122,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
|
|||
info!("parent_cx: {:?}", parent_cx);
|
||||
let tracer = get_tracer();
|
||||
let _span = tracer
|
||||
.span_builder("router_service")
|
||||
.span_builder("request")
|
||||
.with_kind(SpanKind::Server)
|
||||
.start_with_context(tracer, &parent_cx);
|
||||
let llm_provider_endpoint = llm_provider_endpoint.clone();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue