pub struct ProviderTraceConfig {
pub enabled: bool,
pub generation_url_template: Option<String>,
pub session_url_template: Option<String>,
}Expand description
Configuration for linking from the chat UI to a provider’s observability dashboard (“trace”/“logs”).
This is provider-agnostic: any driver with a dashboard can supply default
templates (see DriverId::default_trace_templates), and an org enables
links per provider once it has confirmed logging is on for that account.
URL templates support the {response_id}, {session_id}, {turn_id} and
{model} placeholders, so the same mechanism works for OpenRouter today and
for third-party observability backends (Langfuse, Helicone, …) via an
override.
Fields§
§enabled: boolWhether trace links should be shown for this provider. Defaults to
false: vendors typically do not retain trace content unless logging is
explicitly enabled, so the org opts in once that is set up.
generation_url_template: Option<String>URL template for a single generation’s trace, e.g.
"https://openrouter.ai/logs?id={response_id}".
session_url_template: Option<String>URL template for a session’s grouped trace, e.g.
"https://openrouter.ai/logs".
Trait Implementations§
Source§impl Clone for ProviderTraceConfig
impl Clone for ProviderTraceConfig
Source§fn clone(&self) -> ProviderTraceConfig
fn clone(&self) -> ProviderTraceConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProviderTraceConfig
impl Debug for ProviderTraceConfig
Source§impl Default for ProviderTraceConfig
impl Default for ProviderTraceConfig
Source§fn default() -> ProviderTraceConfig
fn default() -> ProviderTraceConfig
Source§impl<'de> Deserialize<'de> for ProviderTraceConfig
impl<'de> Deserialize<'de> for ProviderTraceConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for ProviderTraceConfig
impl RefUnwindSafe for ProviderTraceConfig
impl Send for ProviderTraceConfig
impl Sync for ProviderTraceConfig
impl Unpin for ProviderTraceConfig
impl UnsafeUnpin for ProviderTraceConfig
impl UnwindSafe for ProviderTraceConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request