Skip to content

Commit 503573b

Browse files
fix(trace-stats): populate service field in ClientStatsPayload
The CSS spec requires the tracer to populate the service field with the main service name. It was previously left empty. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 455e07c commit 503573b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

libdd-data-pipeline/src/stats_exporter.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,18 +163,18 @@ fn encode_stats_payload(
163163
version: meta.app_version.clone(),
164164
runtime_id: meta.runtime_id.clone(),
165165
sequence,
166+
service: meta.service.clone(),
166167
stats: buckets,
167168
git_commit_sha: meta.git_commit_sha.clone(),
168169
process_tags: meta.process_tags.clone(),
169-
// These fields are unused or will be set by the Agent
170-
service: String::new(),
171-
lang: String::new(),
172-
tracer_version: String::new(),
170+
// These fields will be set by the Agent
173171
container_id: String::new(),
174172
tags: Vec::new(),
175173
agent_aggregation: String::new(),
176174
image_tag: String::new(),
177175
process_tags_hash: 0,
176+
lang: String::new(),
177+
tracer_version: String::new(),
178178
}
179179
}
180180

0 commit comments

Comments
 (0)