• Englishๆ—ฅๆœฌ่ชžํ•œ๊ตญ์–ด
  • ๋กœ๊ทธ์ธ์ง€๊ธˆ ์‹œ์ž‘ํ•˜๊ธฐ

์ด ํ•œ๊ธ€ ๋ฌธ์„œ๋Š” ์‚ฌ์šฉ์ž์˜ ํŽธ์˜๋ฅผ ์œ„ํ•ด ๊ธฐ๊ณ„ ๋ฒˆ์—ญ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

์˜๋ฌธ๋ณธ๊ณผ ๋ฒˆ์—ญ๋ณธ์ด ์ผ์น˜ํ•˜์ง€ ์•Š๋Š” ๊ฒฝ์šฐ ์˜๋ฌธ๋ณธ์ด ์šฐ์„ ํ•ฉ๋‹ˆ๋‹ค. ๋ณด๋‹ค ์ž์„ธํ•œ ๋‚ด์šฉ์€ ์ด ํŽ˜์ด์ง€๋ฅผ ๋ฐฉ๋ฌธํ•˜์‹œ๊ธฐ ๋ฐ”๋ž๋‹ˆ๋‹ค.

๋ฌธ์ œ ์‹ ๊ณ 

ignore (SPA API)

์ค‘์š”

์ด API๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๋ฉด ๋ธŒ๋ผ์šฐ์ € ์—์ด์ „ํŠธ์˜ Browser Pro+SPA ๋ฒ„์ „์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.

ํ†ต์‚ฌ๋ก 

newrelic.interaction().ignore()

๋‹ค๋ฅธ SPA save() ํ˜ธ์ถœ์„ ์žฌ์ •์˜ํ•ฉ๋‹ˆ๋‹ค. ์ƒํ˜ธ ์ž‘์šฉ์„ ๋ฌด์‹œํ•˜๋ฏ€๋กœ New Relic์— ์ €์žฅ๋˜๊ฑฐ๋‚˜ ์ „์†ก๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

์š”๊ตฌ ์‚ฌํ•ญ

์—์ด์ „ํŠธ ๋ฒ„์ „ nr-963 ์ด์ƒ์ž…๋‹ˆ๋‹ค.

์„ค๋ช…

์ด SPA ๋ฐฉ๋ฒ•์„ ์‚ฌ์šฉํ•˜๋ฉด ์ƒํ˜ธ ์ž‘์šฉ์ด ๋ฌด์‹œ๋ฉ๋‹ˆ๋‹ค. New Relic์— ์ €์žฅ๋˜๊ฑฐ๋‚˜ ์ „์†ก๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค. ์ด ๋ฉ”์„œ๋“œ๋Š” save() ์— ๋Œ€ํ•œ ์ด์ „ ๋˜๋Š” ์ดํ›„์˜ ํ˜ธ์ถœ์„ ์žฌ์ •์˜ํ•ฉ๋‹ˆ๋‹ค.

๋ฐ˜ํ™˜ ๊ฐ’

์ด ๋ฉ”์„œ๋“œ๋Š” interaction() ์—์„œ ์ƒ์„ฑํ•œ ๊ฒƒ๊ณผ ๋™์ผํ•œ API ๊ฐ์ฒด๋ฅผ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค.

์˜ˆ

router.addRoute('/uninteresting-route', () => {
newrelic.interaction() // Get handle to current interaction.
.ignore(); // Ignore this interaction to ensure it will not be saved.
renderUninterestingRoute(); // Render route.
});
Copyright ยฉ 2023 New Relic Inc.

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