-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(batch-exports): Add HTTP Batch Export destination (#20318)
* feat(batch-exports): Add HTTP Batch Export destination To possibly be reused in the future, but for now it only submits payloads in the PostHog /batch format. * add geoip_disable, don't toJSONString elements_chain, and mark some HTTP status codes as non-retryable * Add heartbeating to HTTP batch export * Update query snapshots * Update query snapshots * fix: Re-use client session * refactor: Rename last_uploaded_part_timestamp to last_uploaded_timestamp --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Tomás Farías Santana <[email protected]>
- Loading branch information
1 parent
a271ea5
commit 36d1be0
Showing
12 changed files
with
1,036 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
posthog/migrations/0389_alter_batchexportdestination_type.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Generated by Django 4.1.13 on 2024-02-13 18:47 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("posthog", "0388_add_schema_to_batch_exports"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="batchexportdestination", | ||
name="type", | ||
field=models.CharField( | ||
choices=[ | ||
("S3", "S3"), | ||
("Snowflake", "Snowflake"), | ||
("Postgres", "Postgres"), | ||
("Redshift", "Redshift"), | ||
("BigQuery", "Bigquery"), | ||
("HTTP", "Http"), | ||
("NoOp", "Noop"), | ||
], | ||
help_text="A choice of supported BatchExportDestination types.", | ||
max_length=64, | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.