microsoft / microsoft/ApplicationInsights-JS
Sanitize numerical values (measurements)
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- TypeScript
- Stars
- 685
- Forks
- 261
- Avg merge
- 21h 33m
- Merged PRs (30d)
- 5
Description
JS SDK should sanitize invalid measurements (string to number map). Currently, if the value is invalid it will be rejected by the backend which makes it hard for the customer to fix it.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading JavaScript/JavaScriptSDK/Telemetry/Common/DataSanitizer.ts, especially its handling of numerical measurements and invalid values. Determine the expected string-to-number mappings from the sanitizer’s current behavior, then verify that invalid measurements are sanitized before backend rejection; the issue does not mention a test file to run.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- observability
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100