Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions libdd-trace-protobuf/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,14 @@ fn generate_protobuf() {
"ClientGroupedStats.DB_type",
"#[serde(rename = \"DBType\")]",
);
config.field_attribute(
"ClientGroupedStats.GRPC_status_code",
"#[serde(rename = \"GRPCStatusCode\")]",
);
config.field_attribute(
"ClientGroupedStats.service_source",
"#[serde(rename = \"srv_src\")]",
);

// idx module type attributes
config.type_attribute("pb.idx.AnyValue", "#[derive(Deserialize, Serialize)]");
Expand Down
2 changes: 2 additions & 0 deletions libdd-trace-protobuf/src/pb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,7 @@ pub struct ClientGroupedStats {
pub is_trace_root: i32,
#[prost(string, tag = "18")]
#[serde(default)]
#[serde(rename = "GRPCStatusCode")]
pub grpc_status_code: ::prost::alloc::string::String,
/// HTTP method of the request
#[prost(string, tag = "19")]
Expand All @@ -649,6 +650,7 @@ pub struct ClientGroupedStats {
/// @inject_tag: msg:"srv_src"
#[prost(string, tag = "21")]
#[serde(default)]
#[serde(rename = "srv_src")]
pub service_source: ::prost::alloc::string::String,
/// used to identify service override origin
/// span_derived_primary_tags are user-configured tags that are extracted from spans and used for stats aggregation
Expand Down
2 changes: 1 addition & 1 deletion libdd-trace-protobuf/src/pb_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ mod tests {
],
"HTTPMethod": "GET",
"HTTPEndpoint": "/test",
"GrpcStatusCode": "0"
"GRPCStatusCode": "0"
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion libdd-trace-utils/src/stats_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ mod mini_agent_tests {
0,
0
],
"GrpcStatusCode": "0",
"GRPCStatusCode": "0",
"HTTPMethod": "GET",
"HTTPEndpoint": "/test"
}
Expand Down
Loading