• EnglishEspañol日本語한국어Português
  • Log inStart now

Remove all attributes

Syntax

Java

NewRelic.removeAllAttributes ()

Kotlin

NewRelic.removeAllAttributes()

Description

This method removes all attributes from a session. If you want to remove a single session attribute, see Remove an attribute.

Return values

Returns true if recorded successfully, and false if it doesn't.

Example

Java

boolean attributesRemoved = NewRelic.removeAllAttributes();

Kotlin

val attributesRemoved = NewRelic.removeAllAttributes()

Syntax

Objective-c

+ (BOOL) removeAllAttributes();

Swift

NewRelic.removeAllAttributes() -> Bool

Description

This method removes all attributes from a session. If you want to remove a single session attribute, see Remove an attribute.

Return values

Returns true if recorded successfully, and false if it doesn't.

Examples

Objective-C

BOOL attributesRemoved = NewRelic.removeAllAttributes();

Swift

let attributesRemoved = NewRelic.removeAllAttributes()

Syntax

removeAllAttributes(options?: {} | undefined) => void

Description

This method removes all attributes from a session. If you want to remove a single session attribute, see Remove an attribute.

Example

NewRelicCapacitorPlugin.removeAllAttributes();

Syntax

RemoveAllAttributes() : bool;

Description

This method removes all attributes from a session. If you want to remove a single session attribute, see Remove an attribute.

Example

CrossNewRelic.Current.RemoveAllAttributes();

Syntax

removeAllAttributes(): void;

Description

This method removes all attributes from a session. If you want to remove a single session attribute, see Remove an attribute.

Example

NewRelic.removeAllAttributes();

Syntax

removeAllAttributes(): void;

Description

This method removes all attributes from a session. If you want to remove a single session attribute, see Remove an attribute.

Example

NewRelic.removeAllAttributes();

Syntax

RemoveAllAttributes() : bool;

Description

This method removes all attributes from a session. If you want to remove a single session attribute, see Remove an attribute.

Example

NewRelicAgent.RemoveAllAttributes();

Syntax

removeAllAttributes() : void;

Description

This method removes all attributes from a session. If you want to remove a single session attribute, see Remove an attribute.

Example

#include "NewRelicBPLibrary.h"
UNewRelicBPLibrary::removeAllAttributes();

Syntax

RemoveAllAttributes() : bool;

Description

This method removes all attributes from a session. If you want to remove a single session attribute, see Remove an attribute.

Example

CrossNewRelicClient.Current.RemoveAllAttributes();
Copyright © 2024 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.