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

feat: Add opportunistic Brotli compression #3612

Merged
merged 12 commits into from
Oct 8, 2024
1 change: 1 addition & 0 deletions requirements-testing.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ pysocks
socksio
httpcore[http2]
setuptools
Brotli
7 changes: 7 additions & 0 deletions sentry_sdk/consts.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ class EndpointType(Enum):
ENVELOPE = "envelope"


class CompressionAlgo(Enum):
GZIP = "gzip"
BROTLI = "br"


if TYPE_CHECKING:
import sentry_sdk

Expand Down Expand Up @@ -59,6 +64,8 @@ class EndpointType(Enum):
"continuous_profiling_mode": Optional[ContinuousProfilerMode],
"otel_powered_performance": Optional[bool],
"transport_zlib_compression_level": Optional[int],
"transport_compression_level": Optional[int],
"transport_compression_algo": Optional[CompressionAlgo],
"transport_num_pools": Optional[int],
"transport_http2": Optional[bool],
"enable_metrics": Optional[bool],
Expand Down
Loading
Loading