lib/liberty_buildpack/framework/new_relic_agent.rb
#-----------------------------------------------------------------------------------------
# Create the newrelic agent options appended as java_opts.
#------------------------------------------------------------------------------------------
Create the newrelic agent options appended as java_opts.
Create the newrelic agent options appended as java_opts .
def release
      app_dir = @common_paths.relative_location
      nr_home_dir = File.join(app_dir, NR_HOME_DIR)
      nr_agent = File.join(nr_home_dir, jar_name)
      nr_logs_dir = @common_paths.log_directory
      @java_opts << "-javaagent:#{nr_agent}"
      @java_opts << "-Dnewrelic.home=#{nr_home_dir}"
      @java_opts << "-Dnewrelic.config.license_key=#{vcap_nr_license}"
      @java_opts << "-Dnewrelic.config.app_name=#{vcap_app_name}"
      @java_opts << "-Dnewrelic.config.log_file_path=#{nr_logs_dir}"
    end
def release app_dir = @common_paths . relative_location nr_home_dir = File . join ( app_dir , NR_HOME_DIR ) nr_agent = File . join ( nr_home_dir , jar_name ) nr_logs_dir = @common_paths . log_directory @java_opts << "-javaagent:#{nr_agent}" @java_opts << "-Dnewrelic.home=#{nr_home_dir}" @java_opts << "-Dnewrelic.config.license_key=#{vcap_nr_license}" @java_opts << "-Dnewrelic.config.app_name=#{vcap_app_name}" @java_opts << "-Dnewrelic.config.log_file_path=#{nr_logs_dir}" end
Create the newrelic agent options appended as java_opts.
Create the newrelic agent options appended as java_opts .
# new relic paths within the droplet # create the new relic agent command as java_opts