otell_core/model/log.rs
1use chrono::{DateTime, Utc};
2use serde::{Deserialize, Serialize};
3
4#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
5pub struct LogRecord {
6 pub ts: DateTime<Utc>,
7 pub service: String,
8 pub severity: i32,
9 pub trace_id: Option<String>,
10 pub span_id: Option<String>,
11 pub body: String,
12 pub attrs_json: String,
13 pub attrs_text: String,
14}