pub struct SessionRpcTelemetry<'a> { /* private fields */ }Expand description
session.telemetry.* RPCs.
Implementations§
Source§impl<'a> SessionRpcTelemetry<'a>
impl<'a> SessionRpcTelemetry<'a>
Sourcepub async fn get_engagement_id(
&self,
) -> Result<SessionTelemetryEngagement, Error>
pub async fn get_engagement_id( &self, ) -> Result<SessionTelemetryEngagement, Error>
Gets the telemetry engagement ID currently associated with the session, when available.
Wire method: session.telemetry.getEngagementId.
§Returns
Telemetry engagement ID for the session, when available.
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 set_feature_overrides(
&self,
params: TelemetrySetFeatureOverridesRequest,
) -> Result<(), Error>
pub async fn set_feature_overrides( &self, params: TelemetrySetFeatureOverridesRequest, ) -> Result<(), Error>
Sets feature override key/value pairs to attach to subsequent telemetry events for the session.
Wire method: session.telemetry.setFeatureOverrides.
§Parameters
params- Feature override key/value pairs to attach to subsequent telemetry events from this session.
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.
Trait Implementations§
Source§impl<'a> Clone for SessionRpcTelemetry<'a>
impl<'a> Clone for SessionRpcTelemetry<'a>
Source§fn clone(&self) -> SessionRpcTelemetry<'a>
fn clone(&self) -> SessionRpcTelemetry<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for SessionRpcTelemetry<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for SessionRpcTelemetry<'a>
impl<'a> !UnwindSafe for SessionRpcTelemetry<'a>
impl<'a> Freeze for SessionRpcTelemetry<'a>
impl<'a> Send for SessionRpcTelemetry<'a>
impl<'a> Sync for SessionRpcTelemetry<'a>
impl<'a> Unpin for SessionRpcTelemetry<'a>
impl<'a> UnsafeUnpin for SessionRpcTelemetry<'a>
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
Mutably borrows from an owned value. Read more