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

Add optional track method that returns success/fail result #287

Closed
colejoplin opened this issue Dec 20, 2023 · 2 comments
Closed

Add optional track method that returns success/fail result #287

colejoplin opened this issue Dec 20, 2023 · 2 comments
Assignees
Labels

Comments

@colejoplin
Copy link

When sending a track, we don't know if an error occurs, it goes to reportInternalError(). Adding an optional method with a result would be welcome.

Why? We are using track to send user feedback. We like the freedom of Segment to push to any destination. Even if we persist the data in the app, we are still guessing if the track event succeeded.

@bsneed
Copy link
Contributor

bsneed commented Dec 20, 2023

Events are buffered, and track is an event. If you want to see if the events make it to Segment, call flush() with a completion block and you'll know if it was successful or not. The use-case you describe is pretty non-standard and not really what Segment is for. There's other services that specialize in what it sounds like you're doing.

@bsneed bsneed closed this as completed Dec 20, 2023
@colejoplin
Copy link
Author

colejoplin commented Dec 21, 2023

@bsneed I appreciate the response. I'll look at flush(). Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants