Skip to content

Conversation

@rafaeelaudibert
Copy link
Member

This is technically a breaking change because we're now always sending data gzip compressed and people might not want that, but this will not break anyone's code so we'll release it as a minor knowing that it's an improvement. It's always been possible to swap the client off, but we weren't documenting how to do that exactly - this is now solved too.

This is *technically* a breaking change because we're now always sending data gzip compressed and people might not want that, but this will not break anyone's code so we'll release it as a minor knowing that it's an improvement. It's always been possible to swap the client off, but we weren't documenting how to do that exactly - this is now solved too.
@rafaeelaudibert
Copy link
Member Author

@martosaur I believe you monitor your Github mentions, would love a review here :)

@github-actions
Copy link
Contributor

posthog-elixir Compliance Report

Date: 2026-02-12 04:01:12 UTC
Duration: 105842ms

✅ All Tests Passed!

29/29 tests passed


Capture Tests

29/29 tests passed

View Details
Test Status Duration
Format Validation.Event Has Required Fields 608ms
Format Validation.Event Has Uuid 609ms
Format Validation.Event Has Lib Properties 609ms
Format Validation.Distinct Id Is String 609ms
Format Validation.Token Is Present 609ms
Format Validation.Custom Properties Preserved 609ms
Format Validation.Event Has Timestamp 609ms
Retry Behavior.Retries On 503 5612ms
Retry Behavior.Does Not Retry On 400 2611ms
Retry Behavior.Does Not Retry On 401 2610ms
Retry Behavior.Respects Retry After Header 5614ms
Retry Behavior.Implements Backoff 15625ms
Retry Behavior.Retries On 500 5611ms
Retry Behavior.Retries On 502 5614ms
Retry Behavior.Retries On 504 5615ms
Retry Behavior.Max Retries Respected 15624ms
Deduplication.Generates Unique Uuids 619ms
Deduplication.Preserves Uuid On Retry 5614ms
Deduplication.Preserves Uuid And Timestamp On Retry 10620ms
Deduplication.Preserves Uuid And Timestamp On Batch Retry 5617ms
Deduplication.No Duplicate Events In Batch 615ms
Deduplication.Different Events Have Different Uuids 611ms
Compression.Sends Gzip When Enabled 608ms
Batch Format.Uses Proper Batch Structure 609ms
Batch Format.Flush With No Events Sends Nothing 606ms
Batch Format.Multiple Events Batched Together 614ms
Error Handling.Does Not Retry On 403 2610ms
Error Handling.Does Not Retry On 413 2611ms
Error Handling.Retries On 408 5615ms

def client(api_key, api_host) do
client =
Req.new(base_url: api_host, retry: :transient)
Req.new(base_url: api_host, retry: :transient, compress_body: true)
Copy link
Member

Choose a reason for hiding this comment

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

some SDKs provide a client config for that eg https://github.com/PostHog/posthog-js/blob/a3cc497d977298637155a2c15030f3fcfe1e613f/packages/types/src/posthog-config.ts#L1228-L1234
also remote config returns supportedCompression which then we know if the server supports gzip or not
not a blocker, as this is already the default behaviour for many SDKs, and PH Cloud supports gzip.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants