Syntax
removeAttribute:(NSString*)name;NewRelic.removeAttribute()
Removes the specified session attribute.
Requirements
Compatible with all agent versions.
Description
This method removes the attribute specified by the name string from the session.
For context on how to use this API, see the documentation about sending custom attributes and events to Insights for:
Parameters
Parameter | Description |
---|---|
string | Required. The name of the session attribute that you want to remove. |
Return values
Returns true
if it succeeds, or false
if it doesn't.
Examples
Objective-C
Method:
+ (BOOL) removeAttribute:(NSString*)name;
Example:
Removes the session attribute specified by NSString*
; for example, rate
.
BOOL attributeRemoved = [NewRelic removedAttribute@"rate"];
Swift
Method:
NewRelic.removeAttribute(name: String!) -> Bool
Example:
Removes a session attribute named rate
:
let attributeRemoved = NewRelic.removedAttribute("rate")
その他のヘルプ
さらに支援が必要な場合は、これらのサポートと学習リソースを確認してください:
- Explorers Hubでは、コミュニティからのサポートを受けたり、ディスカッションに参加したりすることができます。
- 当社サイトで答えを見つけて、サポートポータルの使用方法を確認してください。
- Linux、Windows、およびmacOS向けトラブルシューティングツールであるNew Relic Diagnosticsを実行してください。
- New Relicの とandドキュメント をご確認ください。