You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The client instance needs to be moved between packages to access the tracer, which gives access to the error tracking helpers, the root, and the current span.
Currently, Client and Tracer instances are moved into the different integrations internals:
Change the integrations to access the Client and the Tracer from global object instead of passing them to the functions
Express
Koa
Apollo
NextJS
Redis
PG
HTTP
Caveats
This may change how the framework integrations are initialized from customer's applications, so don't consider any of these changes part of patch or minor release.
Avoid opening a big PR for the whole thing. One for each integration should be OK
The text was updated successfully, but these errors were encountered:
Users won't necessarily have to change anything to make it work at the moment? They should remove the client being given to the express middleware, for example, but it would work if they pass it in anyway. So it's not necessarily a breaking change until we change how the config is initialized.
Eventually I would hope we can make some kind of function to set the global config, rather than set it when the configuration class gets initialized. That would make it a breaking change. For example:
The background
The client instance needs to be moved between packages to access the tracer, which gives access to the error tracking helpers, the root, and the current span.
Currently,
Client
andTracer
instances are moved into the different integrations internals:The client is now stored in global object (#493).
The proposal
Client
that provides clean access to the stored client (Add helper for globally stored client #534)Client
and theTracer
from global object instead of passing them to the functionsCaveats
The text was updated successfully, but these errors were encountered: