Skip to content

Commit 0b69d2a

Browse files
dorg-kandersontruthbk
authored andcommitted
Fix apm_analyzed_spans config directive. (#496)
* Fix apm_analyzed_spans config directive. In the current configuration, when this puppet module applies `apm_analyzed_spans', the resultant `datadog.yaml` file ignores the configured spans. The documentation for the agent specifies that the directive should be `analyzed_spans` instead. More information here: https://docs.datadoghq.com/agent/apm/?tab=agent630#trace-search * [apm][spec] fixing analyzed_spans A6 spec tests
1 parent 0b842d3 commit 0b69d2a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

manifests/init.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@
621621
if $apm_analyzed_spans {
622622
$apm_analyzed_span_config = {
623623
'apm_config' => {
624-
'apm_analyzed_spans' => $apm_analyzed_spans
624+
'analyzed_spans' => $apm_analyzed_spans
625625
}
626626
}
627627
} else {

spec/classes/datadog_agent_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1104,7 +1104,7 @@
11041104
'content' => /^apm_config:\n\ \ enabled: true\n/,
11051105
)}
11061106
it { should contain_file('/etc/datadog-agent/datadog.yaml').with(
1107-
'content' => /^\ \ apm_analyzed_spans:\n\ \ \ \ foo|bar: 0.5\n\ \ \ \ haz|qux: 0.1\n/,
1107+
'content' => /^\ \ analyzed_spans:\n\ \ \ \ foo|bar: 0.5\n\ \ \ \ haz|qux: 0.1\n/,
11081108
)}
11091109
end
11101110
context 'with extra_options and Process enabled' do

0 commit comments

Comments
 (0)