microsoft / microsoft/ApplicationInsights-JS

Support shipping of Console.xxx calls at App Insights

Open
#2,435 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

Is your feature request related to a problem? Please describe.
We recently implemented front-end application insights with the requirement that we ship all console logs to application insights. This doesn't appear to be possible with the base library.

Describe the solution you'd like
We would like the ability to ship console logs to app insights using the base library. Of course, we'd expect this to be configurable, and the default behaviour probably to be don't ship.

Describe alternatives you've considered
As you can imagine, we achieved this via console method overrides, which works just fine.

Additional context
This is by no means a bugbear, as our implementation was straightforward - it's just a suggestion.
It's possible this isn't a high demand requirement. But it may also be fairly trivial to include and would be an improvement to the library.
I would also expect may have has been discussed and intentionally excluded as a feature, in which case it would be great to know the reasoning for that decision.

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

The issue names no files or tests; start by reviewing the base library's console handling and configuration surface, then compare the console method overrides described in the report. Done means console calls can be sent to Application Insights through an opt-in configuration, with shipping disabled by default.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, javascript, typescript
Domain
observability
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.