appsignal-javascript icon indicating copy to clipboard operation
appsignal-javascript copied to clipboard

Globally accessible client

Open tombruijn opened this issue 4 years ago • 1 comments

Like issue https://github.com/appsignal/appsignal-nodejs/issues/503 for Node.js, make the client available globally. For JavaScript that would be window probably.

Let's discuss the best way to implement this.

tombruijn avatar Jan 03 '22 14:01 tombruijn

Is there a problem with putting everything on the global namespace? Because people can run multiple JavaScript apps in the frontend, and they may want to report them as separate apps? If we go with the global way, this won't be supported, which isn't bad, but it's something to keep in mind.

tombruijn avatar Jan 10 '22 10:01 tombruijn