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
See discussion on #2425. It was decided there that, while the TypeScript types in index.d.ts allow apm.startTransaction() returning null is some cases, it could be a breaking change to JS users of apm.startTransaction(...) that did not handle this case -- especially because the Agent API docs for startTransaction don't mention the possibility of getting null.
Update: This comment has the best description for why we are dropping | null from the return type of apm.startTransaction().