track current request context in thread

Description

3 new static methods on the RequestBoxContext class

  • public static RequestBoxContext getCurrent()

  • public static void setCurrent( RequestBoxContext context )

  • public static void removeCurrent()

The BoxRuntime executeXXX() methods, REPL, JSR-223 scripting API, and web request executor have all been updated to automatically add/remove the current request context to/from the thread. Furthermore, the generated code for createDynamicProxy() and extending a Java class have been updated to look for and use, if found, the thread local context.

ORM needs to use this as well for listeners.

Activity

Show:
Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Fix versions

Priority

Sentry

Created October 23, 2024 at 12:02 AM
Updated October 23, 2024 at 12:17 AM
Resolved October 23, 2024 at 12:17 AM