pub struct GitHubTelemetryEvent {
pub client: Option<GitHubTelemetryClientInfo>,
pub copilot_tracking_id: Option<String>,
pub created_at: Option<String>,
pub exp_assignment_context: Option<String>,
pub features: Option<HashMap<String, String>>,
pub kind: String,
pub metrics: HashMap<String, f64>,
pub model_call_id: Option<String>,
pub properties: HashMap<String, String>,
pub session_id: Option<String>,
}Expand description
A single telemetry event in the runtime’s native GitHub-shaped telemetry format, forwarded verbatim to opted-in hosts. The restricted flag on the enclosing GitHubTelemetryNotification distinguishes standard from restricted events; the payload shape is identical for both.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§client: Option<GitHubTelemetryClientInfo>Client environment metadata.
copilot_tracking_id: Option<String>Copilot tracking ID for user-level attribution.
created_at: Option<String>Timestamp when the event was created (ISO 8601 format).
exp_assignment_context: Option<String>Experiment assignment context.
features: Option<HashMap<String, String>>Feature flags enabled for this session, as a map from flag to value.
kind: StringEvent type/kind (e.g. get_completion_with_tools_turn, tool_call_executed).
metrics: HashMap<String, f64>Numeric metrics as a map from key to value.
model_call_id: Option<String>Reference to the model call that produced this event.
properties: HashMap<String, String>String-valued properties as a map from key to value.
session_id: Option<String>Session identifier the event belongs to.
Trait Implementations§
Source§impl Clone for GitHubTelemetryEvent
impl Clone for GitHubTelemetryEvent
Source§fn clone(&self) -> GitHubTelemetryEvent
fn clone(&self) -> GitHubTelemetryEvent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more