microsoft / microsoft/ApplicationInsights-JS

Move AJAX hookup logic to snippet

Open
#161 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
685
Forks
261
Avg merge
21h 33m
Merged PRs (30d)
5

Description

Currently AI JS SDK is subscribing for AJAX requests after full JS from CDN has loaded, which means that we are likely missing initial AJAX requests that are happening before first page load.
Suggestion is to refactor it to move the subscribing code to snippet, which would help us miss fewer requests. Opening this issue to see if generates support feedback/support from community so we can decide how to prioritize it.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the snippet and the code path that loads the full JavaScript SDK from the CDN, then trace where AJAX request subscription currently begins. The change is complete when subscription starts from the snippet early enough to capture more initial AJAX requests, with the relevant behavior verified by the project's existing tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
observability
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.