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

Shut down the agent

Syntax

Java

NewRelic.shutdown()

Kotlin

NewRelic.shutdown()

Description

This API provides the ability to shut down the agent within the current application lifecycle during runtime. Once the agent has shut down, it cannot be restarted within the current application lifecycle.

Example

Java

NewRelic.shutdown()

Kotlin

NewRelic.shutdown()

Syntax

Objective-c

+ (void) shutdown();

Swift

NewRelic.shutdown() -> Void

Description

This API provides the ability to shut down the agent within the current application lifecycle during runtime. Once the agent has shut down, it cannot be restarted within the current application lifecycle.

Examples

Objective-C

[NewRelic shutdown];

Swift

NewRelic.shutdown()

Syntax

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

Description

Shut down the agent within the current application lifecycle during runtime.

Example

NewRelicCapacitorPlugin.shutdown();

Syntax

shutdown() : void;

Description

Shut down the agent within the current application lifecycle during runtime.

Example

NewRelic.shutdown();

Syntax

Shutdown() : void

Description

Shut down the agent within the current application lifecycle during runtime.

Example

CrossNewRelic.Current.Shutdown());

Syntax

shutdown() : void;

Description

Shut down the agent within the current application lifecycle during runtime.

Example

NewRelic.shutdown();

Syntax

shutdown(): void;

Description

Shut down the agent within the current application lifecycle during runtime.

Example

UNewRelicBPLibrary::shutdown();;

Syntax

Shutdown(): void;

Description

Shut down the agent within the current application lifecycle during runtime.

Example

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

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