ํต์ฌ๋ก
- (NSString*) customNewRelicInteractionName;
New Relic์ ๋ณด๊ณ ๋ ๊ธฐ๋ณธ ์ํธ ์์ฉ ์ด๋ฆ์ ์ด๋ฆ์ ๋ฐ๊พธ๋๋ก ์ด๋ฆ์ ์ค์ ํฉ๋๋ค.
์๊ตฌ ์ฌํญ
๋ชจ๋ ์์ด์ ํธ ๋ฒ์ ๊ณผ ํธํ๋ฉ๋๋ค.
์ค๋ช
UIViewController
์์ ์ด ๋ฉ์๋๋ฅผ ๊ตฌํํ๋ฉด New Relic์ ์ํธ์์ฉ์ ์์ํ๊ธฐ ์ ์ ์ด ๋ฉ์๋๋ฅผ ํธ์ถํ๊ณ ( -viewDidLoad
๋๋ -viewDidAppear
์์) ์ํธ์์ฉ์ ์ด๋ฆ์ ๋ฐํ๋ ๋ฌธ์์ด๋ก ๋ณ๊ฒฝํฉ๋๋ค(๊ธฐ๋ณธ ์ด๋ฆ display <ViewControllerName>
๋์ ). .
์ด API๋ฅผ ์ฌ์ฉํ๋ ๋ฐฉ๋ฒ์ ๋ํ ์ปจํ ์คํธ๋ ๊ธฐ๋ณธ ์ํธ ์์ฉ ์ด๋ฆ ๋ฐ๊พธ๊ธฐ์ ๋ํ ์ค๋ช ์๋ฅผ ์ฐธ์กฐํ์ธ์.
์
์ค๋ธ์ ํฐ๋ธ-C
์์:
- (NSString*) customNewRelicInteractionName { return @"CustomInteractionNameViewController";}
๋น ๋ฅธ
์์:
@objc func customNewRelicInteractionName() -> String { return "CustomInteractionNameViewController"}