Skip to content

Commit

Permalink
[telemetry] Add missing origin field
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsn committed Nov 19, 2024
1 parent a4a3276 commit ef3f98a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions crashtracker/src/crash_info/telemetry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ impl TelemetryCrashUploader {
seq_id: 1,
application: &metadata.application,
host: &metadata.host,
origin: "Crashtracker",
payload: &data::Payload::Logs(vec![data::Log {
message,
level: LogLevel::Error,
Expand Down
1 change: 1 addition & 0 deletions ddtelemetry/examples/tm-ping.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ fn build_request<'a>(
.unwrap_or(0),
runtime_id: "runtime_id",
seq_id: seq_id(),
origin: "tm-ping",
application,
host,
payload,
Expand Down
1 change: 1 addition & 0 deletions ddtelemetry/examples/tm-send-sketch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ fn build_request<'a>(
.unwrap_or(0),
runtime_id: "runtime_id",
seq_id: seq_id(),
origin: "tm-send-sketch",
application,
host,
payload,
Expand Down
1 change: 1 addition & 0 deletions ddtelemetry/src/data/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ pub struct Telemetry<'a> {
pub seq_id: u64,
pub application: &'a Application,
pub host: &'a Host,
pub origin: &'a str,
#[serde(flatten)]
pub payload: &'a Payload,
}
Expand Down
1 change: 1 addition & 0 deletions ddtelemetry/src/worker/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,7 @@ impl TelemetryWorker {
runtime_id: &self.runtime_id,
seq_id,
host: &self.data.host,
origin: "unknown",
application: &self.data.app,
payload,
};
Expand Down

0 comments on commit ef3f98a

Please sign in to comment.