Skip to content
This repository was archived by the owner on May 22, 2019. It is now read-only.
This repository was archived by the owner on May 22, 2019. It is now read-only.

Implementation if no instrumentation key provided #35

Description

Hello,

This is more a question than an issue.

We have (as I'm sure others will) the situation where our product will be deployed to various SDLC environments and for some of these environments (e.g. localhost or load testing) we do not wish App Insights to be recorded....or more correctly, we won't assign an instrumentation key (IK) in the environment variables.

What is the best way to handle this? Simply not call the init function if no IK is found? If so, how does that affect withTracking or calls?
Should we have 2 different component exports based on whether we have an IK existing or not?

Any other guidance around best practice for this would be appreciated.

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

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions