firebase-ios-sdk icon indicating copy to clipboard operation
firebase-ios-sdk copied to clipboard

Rename the class "Indentifiers" to "Session"

Open visumickey opened this issue 3 years ago • 2 comments

Rename the class Indentifiers to Session since the class caters to all the necessary details of a session.

This is a precursor to bring in the "Sampling" changes.

#no-changelog

visumickey avatar Nov 17 '22 00:11 visumickey

1 Warning
:warning: Did you forget to add a changelog entry? (Add #no-changelog to the PR description to silence this warning.)

Generated by :no_entry_sign: Danger

google-oss-bot avatar Nov 17 '22 00:11 google-oss-bot

I'm not sure what's the purpose of doing this. I think this name is confusing with other classes such as SessionsStartEvent and FirebaseSessions. I also worry about adding [too much responsibility to 1 class].

Session is a data construct on its own (containing its own attributes like sessionID, previous sessionId, should sample and more) - The current class identifiers is a generic class containing all the identifiers which does not provide separation of concerns.

Session is just the construct - SessionStartEvent is the event that gets dispatched to Firelog. So, they are separate. I don't think that would be confusing.

About FirebaseSessions, I think that would need some renaming, but since it is namespaced with Firebase - I would not be worried as that is how the library is named and it is needed to identify the starting class of the library.

visumickey avatar Nov 17 '22 00:11 visumickey