diff --git a/pybrake/routes.py b/pybrake/routes.py
index 8a3a271..02b4def 100755
--- a/pybrake/routes.py
+++ b/pybrake/routes.py
@@ -1,13 +1,30 @@
-from threading import Lock, Timer
+import base64
 import json
+from threading import Lock, Timer
+from tdigest import TDigest
 import requests
 
+from .tdigest import as_bytes
+
 class RouteStat():
-  __slots__ = ['method', 'route', 'statusCode', 'count', 'sum', 'sumsq', 'time']
+  __slots__ = [
+    'method',
+    'route',
+    'statusCode',
+    'count',
+    'sum',
+    'sumsq',
+    'time',
+    "td",
+    "tdigest"
+  ]
 
   @property
   def __dict__(self):
-    return {s: getattr(self, s) for s in self.__slots__ if hasattr(self, s)}
+    tdigest = as_bytes(self.td)
+    self.tdigest = base64.b64encode(tdigest).decode('ascii')
+
+    return {s: getattr(self, s) for s in self.__slots__ if s != "td"}
 
   def __init__(self, method='', route='', status_code=0, time=None):
     self.method = method
@@ -17,11 +34,14 @@ class RouteStat():
     self.sum = 0
     self.sumsq = 0
     self.time = time.replace(second=0, microsecond=0).strftime('%Y-%m-%dT%H:%M:%SZ')
+    self.td = TDigest()
+    self.tdigest = None
 
   def add(self, ms):
     self.count += 1
     self.sum += ms
     self.sumsq += ms * ms
+    self.td.update(ms)
 
 class RouteStats():
   def __init__(self, project_id=0, project_key='', host=''):

Add tdigest support
tdigest must be converted to bytes using function https://github.com/airbrake/pybrake/blob/master/pybrake/tdigest.py#L38-L54. Then bytes should be encoded as base64 and sent with json for each route `{"tdigest": "base64"}` 
diff --git a/pybrake/test_routes.py b/pybrake/test_routes.py
index a0d7e3d..4709e84 100644
--- a/pybrake/test_routes.py
+++ b/pybrake/test_routes.py
@@ -39,6 +39,7 @@ def test_route_stat():
       'sum': 123,
       'sumsq': 15129,
       'time': "2000-01-01T00:00:00Z",
+      "tdigest":  "AAAAAkA5AAAAAAAAAAAAAUL2AAAB"
     }, {
       'method': 'GET',
       'route': 'pong',
@@ -47,4 +48,5 @@ def test_route_stat():
       'sum': 246,
       'sumsq': 30258,
       'time': "2000-01-01T00:00:00Z",
+      "tdigest": "AAAAAkA5AAAAAAAAAAAAAUL2AAAC",
     }]

pip install -e .[dev]
parse_log_pytest
requirements.txt
pytest
3.7
test-requirements.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
accumulation-tree==0.6.4
asgiref==3.7.2
astroid==2.15.8
certifi @ file:///croot/certifi_1671487769961/work/certifi
charset-normalizer==3.4.1
click==8.1.8
dill==0.3.7
Django==3.2.25
exceptiongroup==1.2.2
Flask==2.2.5
idna==3.10
importlib-metadata==6.7.0
iniconfig==2.0.0
isort==5.11.5
itsdangerous==2.1.2
Jinja2==3.1.6
lazy-object-proxy==1.9.0
MarkupSafe==2.1.5
mccabe==0.7.0
packaging==24.0
platformdirs==4.0.0
pluggy==1.2.0
py-cpuinfo==9.0.0
-e git+https://github.com/airbrake/pybrake.git@360d93f0ccafe92f338858666c8bd192ea3fa00f#egg=pybrake
pylint==2.17.7
pytest==7.4.4
pytest-benchmark==4.0.0
pytz==2025.2
pyudorandom==1.0.0
requests==2.31.0
requests-mock==1.12.1
sqlparse==0.4.4
tdigest==0.5.2.2
tomli==2.0.1
tomlkit==0.12.5
typed-ast==1.5.5
typing_extensions==4.7.1
urllib3==2.0.7
Werkzeug==2.2.3
wrapt==1.16.0
zipp==3.15.0

name: pybrake
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2022.12.7=py37h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - pip=22.3.1=py37h06a4308_0
  - python=3.7.16=h7a1cb2a_0
  - readline=8.2=h5eee18b_0
  - setuptools=65.6.3=py37h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - wheel=0.38.4=py37h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - accumulation-tree==0.6.4
      - asgiref==3.7.2
      - astroid==2.15.8
      - charset-normalizer==3.4.1
      - click==8.1.8
      - dill==0.3.7
      - django==3.2.25
      - exceptiongroup==1.2.2
      - flask==2.2.5
      - idna==3.10
      - importlib-metadata==6.7.0
      - iniconfig==2.0.0
      - isort==5.11.5
      - itsdangerous==2.1.2
      - jinja2==3.1.6
      - lazy-object-proxy==1.9.0
      - markupsafe==2.1.5
      - mccabe==0.7.0
      - packaging==24.0
      - platformdirs==4.0.0
      - pluggy==1.2.0
      - py-cpuinfo==9.0.0
      - pylint==2.17.7
      - pytest==7.4.4
      - pytest-benchmark==4.0.0
      - pytz==2025.2
      - pyudorandom==1.0.0
      - requests==2.31.0
      - requests-mock==1.12.1
      - sqlparse==0.4.4
      - tdigest==0.5.2.2
      - tomli==2.0.1
      - tomlkit==0.12.5
      - typed-ast==1.5.5
      - typing-extensions==4.7.1
      - urllib3==2.0.7
      - werkzeug==2.2.3
      - wrapt==1.16.0
      - zipp==3.15.0
prefix: /opt/conda/envs/pybrake

pybrake/test_routes.py::test_route_stat
pybrake/routes.py
pybrake/routes.py