Skip to content

Commit

Permalink
Replace deprecated apm settings
Browse files Browse the repository at this point in the history
tracing.apm.* settings were deprecated in 8.14.0 in favor of the new
telemetry.* settings. Use the new settings starting with 8.14.0.

Old settings will be removed in 9.0.
  • Loading branch information
jsoriano committed Dec 13, 2024
1 parent c8aecde commit 9cb13d5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/stack/_static/elasticsearch.yml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,13 @@ script.context.template.cache_max_size: 2000

{{ $apm_enabled := fact "apm_enabled" }}
{{ if eq $apm_enabled "true" }}
{{ if semverLessThan $version "8.14.0" }}
tracing.apm.enabled: true
tracing.apm.agent.server_url: "http://fleet-server:8200"
tracing.apm.agent.environment: "dev"
{{- else -}}
telemetry.tracing.enabled: true
telemetry.agent.server_url: "http://fleet-server:8200"
telemetry.agent.environment: "dev"
{{- end -}}
{{- end -}}

0 comments on commit 9cb13d5

Please sign in to comment.