Contact Details
No response
π¦ Package Version
0.3.18
ποΈ Framework Version
No response
π Describe the Bug
Currently, start_session and end_session are blocking on the main thread. This is because start_session fetches a JWT which can take some time. We can move this to agentops.init to speed things up.
Additionally, end_session runs a flush. We can probably make this more of a "fire and forget" style signal. That is, when the SessionExporter sees an end_session event, it doesn't need to trigger a flush. We can just reserve the flush for SIGINT and program exit.
π€ Contribution
Contact Details
No response
π¦ Package Version
0.3.18
ποΈ Framework Version
No response
π Describe the Bug
Currently,
start_sessionandend_sessionare blocking on the main thread. This is because start_session fetches a JWT which can take some time. We can move this toagentops.initto speed things up.Additionally,
end_sessionruns a flush. We can probably make this more of a "fire and forget" style signal. That is, when theSessionExportersees an end_session event, it doesn't need to trigger a flush. We can just reserve the flush for SIGINT and program exit.π€ Contribution