Skip to content

feat: Allow for more granular tracked lifecycle events to track #385

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

delannoyk
Copy link

Hi Segment team 👋🏻,

We found ourselves not wanting to track all the lifecycle events in our app. As far as I can tell there was no way to filter them so I implemented this as an OptionSet instead of a boolean value.

Let me know if this is acceptable and/or if you have any questions or suggestions.

Thanks.
Kevin

@bsneed
Copy link
Contributor

bsneed commented Jun 21, 2025

I can't merge this as it breaks the API. The optimal way to do this is disable lifecycle events, and track on the ones you do, either in your code or via a plugin similar to the lifecycle plugin in this codebase.

@bsneed bsneed closed this Jun 21, 2025
@delannoyk
Copy link
Author

@bsneed I made sure the API wasn't broken when implementing this, would you mind explaining a bit more? I don't mind refactoring it...
If that's a no for other reasons, that's fine too, I just thought I'd ask for more precision on breaking the API?

@bsneed
Copy link
Contributor

bsneed commented Jun 23, 2025

@delannoyk you totally did! I'm so sorry I missed that. I shoulda dug deeper, so thanks for inquiring about it. I'll reopen this and give it a whirl in just a bit.

@bsneed bsneed reopened this Jun 23, 2025
@delannoyk
Copy link
Author

delannoyk commented Jun 23, 2025

@bsneed appreciate it, but also no pressure! I was just wondering. Thanks for considering it!

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