• 로그인

사용자의 편의를 위해 제공되는 기계 번역입니다.

영문본과 번역본이 일치하지 않는 경우 영문본이 우선합니다. 보다 자세한 내용은 이 페이지를 방문하시기 바랍니다.

문제 신고

recordBreadcrumb(iOS SDK API)

통사론

recordBreadcrumb:(NSString* __nonnull)name attributes:(NSDictionary* __nullable)attributes;
NewRelic.recordBreadcrumb(string $Name, map $eventAttributes)

충돌 분석에 유용한 MobileBreadcrumb 이벤트를 기록합니다.

요구 사항

에이전트 버전 5.13.0 이상 .

설명

이 호출은 NRQL 및 충돌 이벤트 추적 으로 쿼리할 수 있는 MobileBreadcrumb 이벤트를 생성하고 기록합니다. 모바일 이동 경로는 충돌 분석에 유용합니다. 충돌 문제를 해결하는 데 도움이 될 것으로 생각되는 앱 활동을 위해 생성합니다.

선택한 사용자 정의 속성 외에도 이벤트에는 연결된 세션 속성 도 있습니다. setAttribute 사용과 달리 이동 경로 이벤트에 속성을 추가하면 해당 이벤트에만 속성이 추가됩니다. 세션 속성이 아닙니다.

이 호출을 사용하면 이벤트 유형으로 MobileBreadcrumb 를 사용하여 recordCustomEvent 호출 을 사용하는 것과 동일한 결과가 나타납니다. 이 API를 사용하는 방법에 대한 컨텍스트는 사용자 정의 속성 및 이벤트 전송에 대한 문서를 참조하십시오.

매개변수

매개변수

설명

$Name

필수의. 이동 경로 이벤트에 부여할 이름입니다.

$eventAttributes

<문자열, 객체>

선택 과목. 이동 경로 이벤트의 속성 목록이 포함된 맵입니다. 유용할 것으로 생각되는 이벤트 설명자에 대한 속성을 작성하십시오.

반환 값

이벤트가 성공적으로 기록되면 true 을 반환하고 그렇지 않으면 false 을 반환합니다.

오브젝티브-C

방법:

+ (BOOL) recordBreadcrumb:(NSString* __nonnull)name attributes:(NSDictionary* __nullable)attributes;

예시:

[NewRelic recordBreadcrumb:@"user 11-3435 tapped sign-in button on LaunchViewController"
attributes:@{ @"button" : @"sign-in", @"action" : @"tapped", @"userId" : @"11-3435", @"location" : @"LaunchViewController"}];

빠른

방법:

NewRelic.recordBreadcrumb(Name: String!, attributes:[NSObject : AnyObject]!) -> Bool

예:

let eventRecorded = NewRelic.recordBreadcrumb("Name",
attributes: ["attributeName1" : "value1", "attributeName2": 2])
let eventRecorded = NewRelic.recordBreadcrumb("user 11-3435 tapped sign-in from LaunchViewController"
attributes:["button" : "sign-in", "userId" : "11-3435", "action" : "tapped", "location" : "LaunchViewController"])
Copyright © 2022 New Relic Inc.

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