removeAllAttributes

removeAllAttributes(); NewRelic.removeAllAttributes()
Removes all attributes from the session.

Requirements

Compatible with all agent versions.

Description

Removes all attributes from the session.

For context on how to use this API, see the documentation about sending custom attributes and events to Insights for:

Return value(s)

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

Example(s)

Objective-C

Method:

+ (BOOL) removeAllAttributes();

Example:

BOOL attributesRemoved = NewRelic.removeAllAttributes();

Swift

Method:

NewRelic.removeAllAttributes() -> Bool

Example:

let attributesRemoved = NewRelic.removeAllAttributes()

For more help

Recommendations for learning more: