From 13226603ec7a5da418e381efeec5abcc6a1eb972 Mon Sep 17 00:00:00 2001 From: Klaas van Schelven Date: Fri, 25 Jul 2025 22:00:21 +0200 Subject: [PATCH] send_json utility: make envelope API the default the store API is deprecated and b/c it doesn't support the ingest/digest split can be quite confusing. this is similar to 2b8efc9452c9 (for the stress_test command the 'store' API option was removed entirely) --- bsmain/management/commands/send_json.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bsmain/management/commands/send_json.py b/bsmain/management/commands/send_json.py index 39bbdb8..826f4e4 100644 --- a/bsmain/management/commands/send_json.py +++ b/bsmain/management/commands/send_json.py @@ -28,7 +28,7 @@ class Command(BaseCommand): parser.add_argument("--fresh-trace", action="store_true") parser.add_argument("--tag", nargs="*", action="append") parser.add_argument("--compress", action="store", choices=["gzip", "deflate", "br"], default=None) - parser.add_argument("--use-envelope", action="store_true") + parser.add_argument("--use-store-api", action="store_true", help="Use (deprecated) /api//store/") parser.add_argument("--chunked-encoding", action="store_true") parser.add_argument( "--x-forwarded-for", action="store", @@ -60,7 +60,7 @@ class Command(BaseCommand): def handle(self, *args, **options): compress = options['compress'] - use_envelope = options['use_envelope'] + use_envelope = not options['use_store_api'] dsn = options['dsn'] successfully_sent = []