pub struct SessionRpcDiagnostics<'a> { /* private fields */ }Expand description
session.diagnostics.* RPCs.
Implementations§
Source§impl<'a> SessionRpcDiagnostics<'a>
impl<'a> SessionRpcDiagnostics<'a>
Sourcepub async fn configure(
&self,
params: DiagnosticsConfigureRequest,
) -> Result<DiagnosticsConfiguration, Error>
pub async fn configure( &self, params: DiagnosticsConfigureRequest, ) -> Result<DiagnosticsConfiguration, Error>
Patches configured session diagnostic sources without restarting their producers. Setting a source level to off clears its retained diagnostics and invalidates cursors selecting that source.
Wire method: session.diagnostics.configure.
§Parameters
params- Patch session diagnostic thresholds for explicitly supplied sources.
§Returns
Per-source session diagnostics configuration.
Experimental. This API is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases. Pin both the SDK and CLI versions if your code depends on it.
Sourcepub async fn read(
&self,
params: DiagnosticsReadRequest,
) -> Result<DiagnosticsReadResult, Error>
pub async fn read( &self, params: DiagnosticsReadRequest, ) -> Result<DiagnosticsReadResult, Error>
Reads a bounded batch of retained session diagnostics for the selected sources. Records are never consumed and each reader advances independently through its opaque cursor.
Wire method: session.diagnostics.read.
§Parameters
params- Cursor-based request for session diagnostics. The default limit is 100 (maximum 500); the default waitMs is zero (maximum 30000).
§Returns
One cursor-addressed page of retained session diagnostics.
Experimental. This API is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases. Pin both the SDK and CLI versions if your code depends on it.