Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(core): Deprecate APIs around RequestSessions #14566

Merged
merged 2 commits into from
Dec 5, 2024

Conversation

lforst
Copy link
Member

@lforst lforst commented Dec 4, 2024

Ref: #14550

As part of improving and simplifying the Sessions API we want to move all functionality related to sessions into integrations which includes hiding the implementation details of SessionAggregates behind the httpIntegration.

This PR deprecates all APIs that are necessary to make that move.

@lforst lforst requested a review from AbhiPrasad December 4, 2024 12:46
@lforst lforst force-pushed the lforst-request-session-deprecations branch from a7098d5 to 3442ff7 Compare December 4, 2024 15:12
@lforst lforst requested review from mydea and chargome December 5, 2024 09:11
@lforst
Copy link
Member Author

lforst commented Dec 5, 2024

To elaborate, the plan is for the httpIntegration to create it's own sessions for each incoming request, and also mark sessions within the request context as faulty when an error is captured. This can be done with the session being kept in some AsyncLocalStorage or similar. Request Sessions are completely owned by the http integration and should not be interfaced with by the user.

@lforst lforst merged commit 045d8b4 into develop Dec 5, 2024
153 checks passed
@lforst lforst deleted the lforst-request-session-deprecations branch December 5, 2024 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants