Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

gzip telemetry events #3979

Closed
Closed

Description

@willwhite

Make sure that we gzip telemetry events before sending them. gzip could reduce the time the mobile radio is working, especially on slower connections, and thus reduce battery impact.

/cc @boundsj

Activity

  1. added
    iOS
    Android
    telemetry
    on Feb 16, 2016
  2. friedbunny commented on Feb 16, 2016

    @friedbunny
    Contributor

    I'm surprised that we don't do this already.

  3. tobrun commented on Feb 17, 2016

    @tobrun
    Member

    If content encoding is set to gzip, this is automatically handled in the background by Okhttp on Android.
    You can verify this is the related unit-test, here they are showing Okhttp transparent gzipping in action.
    update above is for response coming from server. Here is shown to add this to the request.

  4. boundsj commented on Feb 17, 2016

    @boundsj
    Contributor
  5. mawajdak commented on Feb 18, 2016

    @mawajdak

    الشبكات
    لا توجد شبكات

  6. friedbunny commented on Jun 23, 2016

    @friedbunny
    Contributor
  7. tobrun commented on Jun 23, 2016

    @tobrun
    Member

    What I mentioned in #3979 (comment) is not true.

    To GZIP our communication we need to implement the following request interceptor on OkHttp: https://github.com/square/okhttp/blob/3f7a3344a4c85aa3bbb879dabac5ee625ab987f3/samples/guide/src/main/java/okhttp3/recipes/RequestBodyCompression.java#L73

    This shouldn't be a big lift since we just need to copy/paste it into our telemetry web service code.

  8. ivovandongen commented on Jun 24, 2016

    @ivovandongen
    Contributor

    @tobrun We're using something similar in Human too. Can take a look at that too if you want.

  9. mick commented on Jun 24, 2016

    @mick

    The api already accepts gzip'd JSON as long as the following headers are set on the POST request:

    Content-type: application/json
    Content-Encoding: gzip
    
  10. 4 remaining items

  11. added 3 commits that reference this issue on Jun 29, 2016
  12. bleege commented on Jul 1, 2016

    @bleege
    Contributor

    I've ticketed out the Android work in #5536.

  13. added 7 commits that reference this issue on Jul 4, 2016
  14. friedbunny commented on Jul 5, 2016

    @friedbunny
    Contributor

    This is done on the iOS side (#5490) and will be included in the final v3.3.0 release.

  15. removed
    iOS
    on Jul 5, 2016
  16. zugaldia commented on Sep 26, 2016

    @zugaldia
    Member

    Work for Android was done in #5536 and for iOS in #5490. I think we're good to close here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Androidtelemetry

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions