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

Improve top error analytics #50

Merged
merged 3 commits into from
Oct 18, 2024
Merged

Improve top error analytics #50

merged 3 commits into from
Oct 18, 2024

Conversation

sidkaria
Copy link
Contributor

@sidkaria sidkaria commented Oct 16, 2024

Add additional data for audio player error analytics:

  1. HttpResponseCodeException (the largest audio player download error being reported in Android)
  2. DownloadFailed (2nd largest)
  3. Add a new ParsingException which is isolated out from IOException
  4. Add internet connectivity check to error metrics

@sidkaria sidkaria requested review from kabliz, sandymist and a team October 16, 2024 18:21
@kabliz kabliz self-assigned this Oct 18, 2024
@sidkaria sidkaria requested a review from kabliz October 18, 2024 18:54

private fun DataSpec.toAnalyticsMap(context: Context): Map<String, String> {
return mapOf(
"uri" to uri.toString(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general it is ok to have .toString() but we won't be able to differentiate between value being null vs empty string right? We can bubble that up as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This uri property is always non null -- also toString() returns "null" for null objects and "" for empty string

@sandymist
Copy link
Contributor

Looks good! Just had some minor comments.

Copy link
Contributor

@sandymist sandymist left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@sidkaria sidkaria merged commit 84c83c4 into main Oct 18, 2024
7 checks passed
@sidkaria sidkaria deleted the sid/improve_error_analytics branch October 18, 2024 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants