• English日本語한국어
  • 로그인지금 시작하기

이 한글 문서는 사용자의 편의를 위해 기계 번역되었습니다.

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

문제 신고

startInteraction(iOS SDK API)

통사론

+ (NSString*) startInteractionWithName:(NSString*)interactionName;

상호 작용 추적을 시작합니다.

요구 사항

모든 에이전트 버전과 호환됩니다.

설명

이 메소드는 interactionName 을 이름으로 사용하여 상호작용 추적을 시작합니다. 상호 작용은 시간 초과가 발생하거나 stopCurrentInteraction 이 호출될 때까지 계측된 모든 메서드를 기록합니다.

이 API를 사용하는 방법에 대한 컨텍스트는 상호 작용 추적에 대한 설명서를 참조하세요.

매개변수

매개변수

설명

$interactionName

필수의. 상호 작용 추적의 이름입니다.

반환 값

startInteractionWithName 가 호출되면 반환 값은 stopCurrentInteraction 에 전달되어야 하는 interactionIdentifier 입니다. 그러나 startInteractionWithName 는 결국 지능적으로 완료되기 때문에 start를 호출한 후 stopCurrentInteraction 을 호출할 필요는 없습니다.

오브젝티브-C

예시:

NSString *identifier = [NewRelic startInteractionWithName: @"myInteractionName"];
[NewRelic stopCurrentInteraction: identifier];

빠른

예시:

let identifier = NewRelic.startInteraction(withName: "myInteractionName")
NewRelic.stopCurrentInteraction(identifier)
Copyright © 2023 New Relic Inc.

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