Publish harness and TUI open-source
initial sync from the monorepo
This commit is contained in:
commit
c68e39f604
2734 changed files with 1437016 additions and 0 deletions
41
crates/codegen/xai-grok-telemetry/src/lib.rs
Normal file
41
crates/codegen/xai-grok-telemetry/src/lib.rs
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
//! Telemetry engine for Grok Build sessions: product events + Mixpanel emission +
|
||||
//! Sentry error reporting + OpenTelemetry tracing + structured unified log.
|
||||
//!
|
||||
//! Extracted from `xai-file-utils` per review feedback so telemetry has
|
||||
//! its own ownership boundary (see CODEOWNERS) and so downstream consumers
|
||||
//! that only want event tracking + inference metrics no longer pull in
|
||||
//! Mixpanel/HTTP/identity dependencies.
|
||||
|
||||
mod appender;
|
||||
pub mod client;
|
||||
pub mod config;
|
||||
pub mod context;
|
||||
pub mod debug_log;
|
||||
pub mod enums;
|
||||
pub mod events;
|
||||
pub mod external;
|
||||
pub mod hooks_log;
|
||||
pub mod http;
|
||||
pub mod id;
|
||||
pub mod instrumentation;
|
||||
pub mod memory_log;
|
||||
pub mod memory_telemetry;
|
||||
pub mod otel_layer;
|
||||
pub(crate) mod otlp_http;
|
||||
pub mod prompt_timing;
|
||||
pub(crate) mod redact_common;
|
||||
pub mod sampling_log;
|
||||
pub mod sentry;
|
||||
pub mod session_ctx;
|
||||
pub mod session_metrics;
|
||||
pub mod unified_log;
|
||||
|
||||
pub use client::{
|
||||
Metadata, TelemetryClient, UserContext, init, init_if_needed, is_enabled,
|
||||
is_session_metrics_enabled,
|
||||
};
|
||||
pub use events::TelemetryEvent;
|
||||
pub use session_ctx::{
|
||||
EmitterOrigin, TelemetryCtx, emit_event, emit_event_with_origin, log_event, log_session_event,
|
||||
log_session_event_with_origin, with_session_ctx,
|
||||
};
|
||||
Loading…
Reference in a new issue