Skip to content

[BUG] Example configuration in Offline channel docs result in no messages being stored #2673

Description

Description/Screenshot

The instructions in https://github.com/microsoft/ApplicationInsights-JS/tree/main/channels/offline-channel-js#npm-setup show the minPersistenceLevel being configured to 2, and then immediately send events that will only have a persistence level of 1, and are thus discarded.

Additionally, the docs refer to a non-existing track method. Possibly this should be trackTrace or trackEvent?

Steps to Reproduce

Follow the example setup in the offline channel js logs exactly.

Expected behavior

The example should result in log messages being stored by the offline channel

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions