microsoft / microsoft/ApplicationInsights-JS

Sanitize numerical values (measurements)

Open
#495 0 comments 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

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.

Sanitizer: https://github.com/Microsoft/ApplicationInsights-JS/blob/master/JavaScript/JavaScriptSDK/Telemetry/Common/DataSanitizer.ts

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.