We use newrelic_yml in several of our cookbooks. After updating to newrelic 2.39.0, we starting getting failures related to the recent feature addition of distributed tracing enabling.
Here's the error:
================================================================================ Error executing actioncreate` on resource 'template[/opt/newrelic/java/ir-newrelic.yml]'
We use newrelic_yml in several of our cookbooks. After updating to newrelic 2.39.0, we starting getting failures related to the recent feature addition of distributed tracing enabling.
Here's the error:
================================================================================ Error executing action
create` on resource 'template[/opt/newrelic/java/ir-newrelic.yml]'================================================================================ Error executing action
generateon resource 'newrelic_yml[/opt/newrelic/java/ir-newrelic.yml]' ================================================================================ Chef::Mixin::Template::TemplateError ------------------------------------ undefined method
distributed_tracing_enable' for Custom resource newrelic_yml from cookbook newrelic Resource Declaration: --------------------- # In /var/chef/cache/cookbooks/REDACT/recipes/image_resizer.rb 32: newrelic_yml '/opt/newrelic/java/ir-newrelic.yml' do 33: agent_type 'java' 34: app_name 'Image Resizer' 35: license vault['license'] 36: log_daily true 37: end 38: Compiled Resource: ------------------ # Declared in /var/chef/cache/cookbooks/REDACT/recipes/image_resizer.rb:32:in `from_file' newrelic_yml("/opt/newrelic/java/ir-newrelic.yml") do action [:generate] retries 0 retry_delay 2 default_guard_interpreter :default declared_type :newrelic_yml cookbook_name "REDACT" recipe_name "image_resizer" agent_type "java" app_name "Image Resizer" license "REDACT" log_daily true yml_path "/opt/newrelic/java/ir-newrelic.yml" template_cookbook "newrelic" template_source "agent/newrelic.yml.erb" endThis addition fixed the issue for us.