Skip to content

Session refactoring#178

Merged
LikeTheSalad merged 6 commits intomainfrom
session-refactoring
Aug 29, 2023
Merged

Session refactoring#178
LikeTheSalad merged 6 commits intomainfrom
session-refactoring

Conversation

@LikeTheSalad
Copy link
Contributor

This is needed to later work on #177

The session id is currently generated using an implementation of SessionIdProvider which is meant to be configurable. That causes issues when we later add the sampling logic, as it'd be only available for our session id provider implementation, making custom implementations to break the sampling functionality.

As part of these changes, the session id logic is moved to a new class, SessionManager, which is final and will handle the sampling logic too. Only the generation of an ID is now configurable through the SessionIdGenerator interface.

@LikeTheSalad LikeTheSalad merged commit 10d3a9c into main Aug 29, 2023
@LikeTheSalad LikeTheSalad deleted the session-refactoring branch August 29, 2023 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment