|
189 | 189 | # $apm_obfuscation |
190 | 190 | # Hash defining obfuscation rules for sensitive data. (Agent 6 and 7 only). |
191 | 191 | # Optional Hash. Default: undef |
| 192 | +# $apm_filter_tags |
| 193 | +# Hash defining filter rules for traces. (Agent 6 and 7 only). |
| 194 | +# Optional Hash. Default: undef |
| 195 | +# $apm_filter_tags_regex |
| 196 | +# Hash defining regex filter rules for traces. (Agent 6 and 7 only). |
| 197 | +# Optional Hash. Default: undef |
192 | 198 | # $process_enabled |
193 | 199 | # String to enable the process/container agent |
194 | 200 | # Boolean. Default: false |
|
338 | 344 | Boolean $apm_non_local_traffic = false, |
339 | 345 | Optional[Hash[String, Float[0, 1]]] $apm_analyzed_spans = undef, |
340 | 346 | Optional[Hash[String, Data]] $apm_obfuscation = undef, |
| 347 | + Optional[Hash[String, Data]] $apm_filter_tags = undef, |
| 348 | + Optional[Hash[String, Data]] $apm_filter_tags_regex = undef, |
341 | 349 | Boolean $process_enabled = $datadog_agent::params::process_default_enabled, |
342 | 350 | Boolean $scrub_args = $datadog_agent::params::process_default_scrub_args, |
343 | 351 | Array $custom_sensitive_words = $datadog_agent::params::process_default_custom_words, |
|
681 | 689 | $apm_obfuscation_config = {} |
682 | 690 | } |
683 | 691 |
|
| 692 | + if $apm_filter_tags { |
| 693 | + $apm_filter_tags_config = { |
| 694 | + 'apm_config' => { |
| 695 | + 'filter_tags' => $apm_filter_tags |
| 696 | + } |
| 697 | + } |
| 698 | + } else { |
| 699 | + $apm_filter_tags_config = {} |
| 700 | + } |
| 701 | + |
| 702 | + if $apm_filter_tags_regex { |
| 703 | + $apm_filter_tags_regex_config = { |
| 704 | + 'apm_config' => { |
| 705 | + 'filter_tags_regex' => $apm_filter_tags_regex |
| 706 | + } |
| 707 | + } |
| 708 | + } else { |
| 709 | + $apm_filter_tags_regex_config = {} |
| 710 | + } |
| 711 | + |
684 | 712 | if $statsd_forward_host.empty { |
685 | 713 | $statsd_forward_config = {} |
686 | 714 | } else { |
|
710 | 738 | $agent_extra_options, |
711 | 739 | $apm_analyzed_span_config, |
712 | 740 | $apm_obfuscation_config, |
| 741 | + $apm_filter_tags_config, |
| 742 | + $apm_filter_tags_regex_config, |
713 | 743 | $statsd_forward_config, |
714 | 744 | $host_config, |
715 | 745 | $additional_checksd_config) |
|
0 commit comments