Skip to content

improve Self Diagnostics and File Logging #1981

@TimothyMothra

Description

@TimothyMothra

The motivation for this change is to improve troubleshooting the SDK.
For several customers, it's problematic to make changes to their applications for the purpose of investigating the AI SDK. Some customers have safe-deployment requirements which can delay code changes by as much as a week from being deployed into production.

To address this several SDK teams contributed to this spec: https://github.com/microsoft/ApplicationInsights-Home/blob/master/CrossSdkCollaboration/Self-Diagnostics.md
The goal is for a SysAdmin or DevOps to be able to set an environment variable and to control the SDKs file logging.

Tasks:

  • 1. Add file logging into DiagnosticsTelemetryModule. [WIP] self-diagnostics #1724
  • 2. Refactor severity. Need to set independently for File and Portal logging.
  • 3. File Logging on by default (Stretch Goal)
    • Feature: must be more performant and remove the dependency on lock
    • Feature: control the file size
    • Feature: must be able to remove outdated log files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions