Skip to content

Commit 6111a6d

Browse files
getsentry-botuntitakergetsantry[bot]
authored andcommitted
ref: bump sentry-arroyo to 2.33.0 (#103229)
Co-Authored-By: untitaker <837573+untitaker@users.noreply.github.com> --------- Co-authored-by: getsentry-bot <10587625+getsentry-bot@users.noreply.github.com> Co-authored-by: untitaker <837573+untitaker@users.noreply.github.com> Co-authored-by: Markus Unterwaditzer <markus-tarpit+git@unterwaditzer.net> Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
1 parent 1e1f6a2 commit 6111a6d

File tree

5 files changed

+9
-43
lines changed

5 files changed

+9
-43
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ dependencies = [
7979
"rfc3339-validator>=0.1.2",
8080
"rfc3986-validator>=0.1.1",
8181
# [end] jsonschema format validators
82-
"sentry-arroyo>=2.32.5",
82+
"sentry-arroyo>=2.33.1",
8383
"sentry-forked-email-reply-parser>=0.5.12.post1",
8484
"sentry-kafka-schemas>=2.1.13",
8585
"sentry-ophio>=1.1.3",

src/sentry/consumers/__init__.py

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -465,12 +465,8 @@ def get_stream_processor(
465465
group_instance_id: str | None = None,
466466
max_dlq_buffer_length: int | None = None,
467467
kafka_slice_id: int | None = None,
468-
shutdown_strategy_before_consumer: bool = False,
469468
add_global_tags: bool = False,
470469
profile_consumer_join: bool = False,
471-
enable_autocommit: bool = False,
472-
retry_handle_destroyed: bool = False,
473-
handle_poll_while_paused: bool = False,
474470
) -> StreamProcessor:
475471
from sentry.utils import kafka_config
476472

@@ -528,8 +524,6 @@ def build_consumer_config(group_id: str):
528524
group_id=group_id,
529525
auto_offset_reset=auto_offset_reset,
530526
strict_offset_reset=strict_offset_reset,
531-
enable_auto_commit=enable_autocommit,
532-
retry_handle_destroyed=retry_handle_destroyed,
533527
)
534528

535529
if max_poll_interval_ms is not None:
@@ -542,9 +536,8 @@ def build_consumer_config(group_id: str):
542536
if group_instance_id is not None:
543537
consumer_config["group.instance.id"] = group_instance_id
544538

545-
if enable_autocommit:
546-
# Set commit interval to 1 second (1000ms)
547-
consumer_config["auto.commit.interval.ms"] = 1000
539+
# Set commit interval to 1 second (1000ms)
540+
consumer_config["auto.commit.interval.ms"] = 1000
548541

549542
return consumer_config
550543

@@ -637,8 +630,6 @@ def build_consumer_config(group_id: str):
637630
commit_policy=ONCE_PER_SECOND,
638631
join_timeout=join_timeout,
639632
dlq_policy=dlq_policy,
640-
shutdown_strategy_before_consumer=shutdown_strategy_before_consumer,
641-
handle_poll_while_paused=handle_poll_while_paused,
642633
)
643634

644635

src/sentry/metrics/middleware.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
from sentry.metrics.base import MetricsBackend, MutableTags, Tags, TagValue
88

99
_BAD_TAGS = frozenset(["event", "project", "group"])
10-
_NOT_BAD_TAGS = frozenset(["use_case_id", "consumer_member_id", "broker_id", "kafka_slice_id"])
10+
_NOT_BAD_TAGS = frozenset(
11+
["use_case_id", "consumer_member_id", "broker_id", "kafka_slice_id", "group_id"]
12+
)
1113
_METRICS_THAT_CAN_HAVE_BAD_TAGS = frozenset(
1214
[
1315
# snuba related tags

src/sentry/runner/commands/run.py

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -538,36 +538,12 @@ def taskbroker_send_tasks(
538538
default=None,
539539
help="Quantized rebalancing means that during deploys, rebalancing is triggered across all pods within a consumer group at the same time. The value is used by the pods to align their group join/leave activity to some multiple of the delay",
540540
)
541-
@click.option(
542-
"--shutdown-strategy-before-consumer",
543-
is_flag=True,
544-
default=False,
545-
help="A potential workaround for Broker Handle Destroyed during shutdown (see arroyo option).",
546-
)
547541
@click.option(
548542
"--profile-consumer-join",
549543
is_flag=True,
550544
default=False,
551545
help="Adds a ProcessingStrategy to the start of a consumer that records a transaction of the consumer's join() method.",
552546
)
553-
@click.option(
554-
"--enable-autocommit",
555-
is_flag=True,
556-
default=False,
557-
help="Enable Kafka autocommit mode with 1s commit interval. Offsets are stored via store_offsets and rdkafka commits them automatically.",
558-
)
559-
@click.option(
560-
"--retry-handle-destroyed",
561-
is_flag=True,
562-
default=False,
563-
help="Enable retrying on `KafkaError._DESTROY` during commit.",
564-
)
565-
@click.option(
566-
"--handle-poll-while-paused",
567-
is_flag=True,
568-
default=False,
569-
help="Enable polling while the consumer is paused to detect rebalancing. Useful for detecting consumer state changes during backpressure.",
570-
)
571547
@configuration
572548
def basic_consumer(
573549
consumer_name: str,
@@ -607,9 +583,6 @@ def basic_consumer(
607583
kafka_topic=topic, consumer_group=options["group_id"], kafka_slice_id=kafka_slice_id
608584
)
609585

610-
options["shutdown_strategy_before_consumer"] = True
611-
options["enable_autocommit"] = True
612-
613586
processor = get_stream_processor(
614587
consumer_name,
615588
consumer_args,

uv.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)