• /
  • Log in

removeAttribute (Android SDK API)

Syntax

NewRelic.removeAttribute(string $name)

Removes an attribute.

Requirements

Agent version 5.0.0 or higher.

Description

This method removes the attribute specified by the name string.

For context on how to use this API, see Send custom attributes and events to Insights.

Parameters

Parameter

Description

$name

string

Required. The name of the attribute that you want to remove.

Return values

Returns true if it succeeds, or false if it doesn't.

Examples

Remove an attribute

Remove an attribute named rate:

boolean attributeRemoved = NewRelic.removeAttribute("rate");

For more help

If you need more help, check out these support and learning resources:

Create issueEdit page
Copyright © 2021 New Relic Inc.