Skip to content

Commit 3bbae7f

Browse files
committed
Add tag filters to /info
Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
1 parent cf3d621 commit 3bbae7f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

libdd-data-pipeline/src/agent_info/schema.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,21 @@ pub struct AgentInfoStruct {
3737
pub span_kinds_stats_computed: Option<Vec<String>>,
3838
/// Container tags hash from HTTP response header
3939
pub container_tags_hash: Option<String>,
40+
/// Exact-match tag filters applied before stats computation (root span only).
41+
pub filter_tags: Option<FilterTagsConfig>,
42+
/// Regex-match tag filters applied before stats computation (root span only).
43+
pub filter_tags_regex: Option<FilterTagsConfig>,
44+
/// Regex patterns for root-span resource names; matching traces are excluded from stats.
45+
pub ignore_resources: Option<Vec<String>>,
46+
}
47+
48+
/// Require/reject lists for tag-based trace filters exposed by the agent /info endpoint.
49+
#[derive(Clone, Serialize, Deserialize, Default, Debug, PartialEq)]
50+
pub struct FilterTagsConfig {
51+
/// All listed filters must match at least one root-span tag for the trace to be accepted.
52+
pub require: Option<Vec<String>>,
53+
/// If any listed filter matches a root-span tag the trace is rejected.
54+
pub reject: Option<Vec<String>>,
4055
}
4156

4257
#[allow(missing_docs)]

0 commit comments

Comments
 (0)