SetApplicationName

SetApplicationName(string $name[, string $name_2, string $name_3])
Set the app name for data rollup.

Requirements

Agent version 5.0.136.0 or higher.

Compatible with all app types.

Description

Set the application name(s) reported to New Relic. For more information about application naming, see Name your .NET application.

Updating the app name forces the agent to restart. The agent discards any unreported data associated with previous app names.

Parameters

Parameter Description

$name

string

Required. The primary application name.

$name_2

$name_3

string

Optional. Second and third names for app rollup. For more information, see Use mulitple names for an app.

Example(s)

NewRelic.Api.Agent.NewRelic.SetApplicationName("AppName1", "AppName2");