:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
[package]
name = "capture"
version = "0.1.0"
edition = "2021"
publish = false
[features]
test-utils = []
[lints]
workspace = true
[dependencies]
anyhow = { workspace = true }
arc-swap = { workspace = true }
async-compression = { workspace = true }
async-trait = { workspace = true }
axum = { workspace = true }
axum-client-ip = { workspace = true }
base64 = { workspace = true }
bytes = { workspace = true }
envconfig = { workspace = true }
flate2 = { workspace = true }
hex = "0.4"
http-body-util = { workspace = true }
lifecycle = { path = "../common/lifecycle" }
hyper = { workspace = true }
hyper-util = { workspace = true }
common-alloc = { path = "../common/alloc" }
common-compression = { path = "../common/compression" }
common-continuous-profiling = { path = "../common/continuous_profiling" }
common-ingestion-warnings = { path = "../common/ingestion_warnings" }
common-kafka = { path = "../common/kafka" }
common-redis = { path = "../common/redis" }
common-types = { path = "../common/types" }
limiters = { path = "../common/limiters" }
metrics = { workspace = true }
metrics-exporter-prometheus = { workspace = true }
opentelemetry = { workspace = true }
opentelemetry-otlp = { workspace = true }
opentelemetry-proto = { workspace = true }
opentelemetry_sdk = { workspace = true }
prost = { workspace = true }
rand = { workspace = true }
rdkafka = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
serde_urlencoded = { workspace = true }
thiserror = { workspace = true }
time = { workspace = true }
tokio = { workspace = true }
tokio-util = { version = "0.7.16", features = ["rt"] }
tower-http = { workspace = true }
tower = { workspace = true }
tracing = { workspace = true }
tracing-opentelemetry = { workspace = true }
tracing-subscriber = { workspace = true }
uuid = { workspace = true }
aws-config = { workspace = true }
aws-sdk-s3 = { workspace = true }
chrono = { workspace = true }
lz-str = { workspace = true }
lz4 = { workspace = true }
multer = "3.0"
futures = { workspace = true }
sha2 = { workspace = true }
hmac = { workspace = true }
[dev-dependencies]
capture = { path = ".", features = ["test-utils"] }
# `test-util` enables the paused clock (`start_paused`) the body drain deadline
# tests use, so they assert the timeout without sleeping in real time.
tokio = { workspace = true, features = ["test-util"] }
assert-json-diff = { workspace = true }
brotli = "8"
zstd = "0.13"
common-continuous-profiling = { path = "../common/continuous_profiling" }
anyhow = { workspace = true }
axum-test-helper = { git = "https://github.com/posthog/axum-test-helper.git", rev = "c09ada6f543a8cc06263548103c91a28a010944a" }
futures = { workspace = true }
metrics-util = { workspace = true }
once_cell = { workspace = true }
rand = { workspace = true }
rstest = "0.26"
strum = { version = "0.28", features = ["derive"] }
rdkafka = { workspace = true }
reqwest = { workspace = true, features = ["multipart"] }
redis = { workspace = true }
serde_json = { workspace = true }