sentry-arroyo 2.20.0__tar.gz → 2.20.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sentry_arroyo-2.20.0/sentry_arroyo.egg-info → sentry_arroyo-2.20.3}/PKG-INFO +3 -2
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/arroyo/dlq.py +17 -8
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/arroyo/utils/metricDefs.json +1 -1
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/arroyo/utils/metric_defs.py +2 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3/sentry_arroyo.egg-info}/PKG-INFO +3 -2
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/setup.py +1 -1
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/LICENSE +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/MANIFEST.in +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/README.md +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/arroyo/__init__.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/arroyo/backends/__init__.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/arroyo/backends/abstract.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/arroyo/backends/kafka/__init__.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/arroyo/backends/kafka/commit.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/arroyo/backends/kafka/configuration.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/arroyo/backends/kafka/consumer.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/arroyo/backends/local/__init__.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/arroyo/backends/local/backend.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/arroyo/backends/local/storages/__init__.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/arroyo/backends/local/storages/abstract.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/arroyo/backends/local/storages/memory.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/arroyo/commit.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/arroyo/errors.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/arroyo/processing/__init__.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/arroyo/processing/processor.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/arroyo/processing/strategies/__init__.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/arroyo/processing/strategies/abstract.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/arroyo/processing/strategies/batching.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/arroyo/processing/strategies/buffer.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/arroyo/processing/strategies/commit.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/arroyo/processing/strategies/filter.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/arroyo/processing/strategies/guard.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/arroyo/processing/strategies/healthcheck.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/arroyo/processing/strategies/noop.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/arroyo/processing/strategies/produce.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/arroyo/processing/strategies/reduce.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/arroyo/processing/strategies/run_task.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/arroyo/processing/strategies/run_task_in_threads.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/arroyo/processing/strategies/run_task_with_multiprocessing.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/arroyo/processing/strategies/unfold.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/arroyo/py.typed +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/arroyo/types.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/arroyo/utils/__init__.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/arroyo/utils/clock.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/arroyo/utils/codecs.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/arroyo/utils/concurrent.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/arroyo/utils/logging.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/arroyo/utils/metrics.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/arroyo/utils/profiler.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/arroyo/utils/retries.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/examples/transform_and_produce/__init__.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/examples/transform_and_produce/batched.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/examples/transform_and_produce/script.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/examples/transform_and_produce/simple.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/requirements.txt +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/sentry_arroyo.egg-info/SOURCES.txt +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/sentry_arroyo.egg-info/dependency_links.txt +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/sentry_arroyo.egg-info/not-zip-safe +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/sentry_arroyo.egg-info/requires.txt +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/sentry_arroyo.egg-info/top_level.txt +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/setup.cfg +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/tests/backends/__init__.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/tests/backends/mixins.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/tests/backends/test_commit.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/tests/backends/test_kafka.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/tests/backends/test_local.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/tests/processing/__init__.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/tests/processing/strategies/__init__.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/tests/processing/strategies/test_all.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/tests/processing/strategies/test_batching.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/tests/processing/strategies/test_buffer.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/tests/processing/strategies/test_commit.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/tests/processing/strategies/test_filter.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/tests/processing/strategies/test_guard.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/tests/processing/strategies/test_noop.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/tests/processing/strategies/test_produce.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/tests/processing/strategies/test_reduce.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/tests/processing/strategies/test_run_task.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/tests/processing/strategies/test_run_task_in_threads.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/tests/processing/strategies/test_run_task_with_multiprocessing.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/tests/processing/strategies/test_unfold.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/tests/processing/test_processor.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/tests/test_commit.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/tests/test_dlq.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/tests/test_kip848_e2e.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/tests/test_types.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/tests/utils/__init__.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/tests/utils/test_concurrent.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/tests/utils/test_metrics.py +0 -0
- {sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/tests/utils/test_retries.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: sentry-arroyo
|
|
3
|
-
Version: 2.20.
|
|
3
|
+
Version: 2.20.3
|
|
4
4
|
Summary: Arroyo is a Python library for working with streaming data.
|
|
5
5
|
Home-page: https://github.com/getsentry/arroyo
|
|
6
6
|
Author: Sentry
|
|
@@ -21,6 +21,7 @@ Dynamic: description
|
|
|
21
21
|
Dynamic: description-content-type
|
|
22
22
|
Dynamic: home-page
|
|
23
23
|
Dynamic: license
|
|
24
|
+
Dynamic: license-file
|
|
24
25
|
Dynamic: requires-dist
|
|
25
26
|
Dynamic: summary
|
|
26
27
|
|
|
@@ -290,9 +290,15 @@ class BufferedMessages(Generic[TStrategyPayload]):
|
|
|
290
290
|
] = defaultdict(deque)
|
|
291
291
|
self.__metrics = get_metrics()
|
|
292
292
|
|
|
293
|
-
def report_partition_metrics(
|
|
293
|
+
def report_partition_metrics(
|
|
294
|
+
self, buffered: Deque[BrokerValue[TStrategyPayload]], partition_index: int
|
|
295
|
+
) -> None:
|
|
294
296
|
|
|
295
|
-
self.__metrics.gauge(
|
|
297
|
+
self.__metrics.gauge(
|
|
298
|
+
"arroyo.consumer.dlq_buffer.len",
|
|
299
|
+
len(buffered),
|
|
300
|
+
tags={"partition_index": str(partition_index)},
|
|
301
|
+
)
|
|
296
302
|
|
|
297
303
|
def append(self, message: BrokerValue[TStrategyPayload]) -> None:
|
|
298
304
|
"""
|
|
@@ -304,13 +310,16 @@ class BufferedMessages(Generic[TStrategyPayload]):
|
|
|
304
310
|
if self.__dlq_policy.max_buffered_messages_per_partition is not None:
|
|
305
311
|
buffered = self.__buffered_messages[message.partition]
|
|
306
312
|
if len(buffered) >= self.__dlq_policy.max_buffered_messages_per_partition:
|
|
307
|
-
|
|
308
|
-
|
|
313
|
+
self.__metrics.increment(
|
|
314
|
+
"arroyo.consumer.dlq_buffer.exceeded",
|
|
315
|
+
tags={"partition_id": str(message.partition.index)},
|
|
309
316
|
)
|
|
310
317
|
buffered.popleft()
|
|
311
318
|
|
|
312
319
|
self.__buffered_messages[message.partition].append(message)
|
|
313
|
-
self.report_partition_metrics(
|
|
320
|
+
self.report_partition_metrics(
|
|
321
|
+
self.__buffered_messages[message.partition], message.partition.index
|
|
322
|
+
)
|
|
314
323
|
|
|
315
324
|
def pop(
|
|
316
325
|
self, partition: Partition, offset: int
|
|
@@ -325,13 +334,13 @@ class BufferedMessages(Generic[TStrategyPayload]):
|
|
|
325
334
|
while buffered:
|
|
326
335
|
if buffered[0].offset == offset:
|
|
327
336
|
msg = buffered.popleft()
|
|
328
|
-
self.report_partition_metrics(buffered)
|
|
337
|
+
self.report_partition_metrics(buffered, partition.index)
|
|
329
338
|
return msg
|
|
330
339
|
if buffered[0].offset > offset:
|
|
331
|
-
self.report_partition_metrics(buffered)
|
|
340
|
+
self.report_partition_metrics(buffered, partition.index)
|
|
332
341
|
break
|
|
333
342
|
|
|
334
|
-
self.report_partition_metrics(buffered)
|
|
343
|
+
self.report_partition_metrics(buffered, partition.index)
|
|
335
344
|
self.__buffered_messages[partition].popleft()
|
|
336
345
|
|
|
337
346
|
return None
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"arroyo.strategies.run_task_with_multiprocessing.batch.size.msg": {"name": "arroyo.strategies.run_task_with_multiprocessing.batch.size.msg", "type": "Time", "description": "Number of messages in a multiprocessing batch"}, "arroyo.strategies.run_task_with_multiprocessing.batch.size.bytes": {"name": "arroyo.strategies.run_task_with_multiprocessing.batch.size.bytes", "type": "Time", "description": "Number of bytes in a multiprocessing batch"}, "arroyo.strategies.run_task_with_multiprocessing.output_batch.size.msg": {"name": "arroyo.strategies.run_task_with_multiprocessing.output_batch.size.msg", "type": "Time", "description": "Number of messages in a multiprocessing batch after the message transformation"}, "arroyo.strategies.run_task_with_multiprocessing.output_batch.size.bytes": {"name": "arroyo.strategies.run_task_with_multiprocessing.output_batch.size.bytes", "type": "Time", "description": "Number of bytes in a multiprocessing batch after the message transformation"}, "arroyo.consumer.run.count": {"name": "arroyo.consumer.run.count", "type": "Counter", "description": "Number of times the consumer is spinning"}, "arroyo.consumer.invalid_message.count": {"name": "arroyo.consumer.invalid_message.count", "type": "Counter", "description": "Number of times the consumer encountered an invalid message."}, "arroyo.strategies.reduce.batch_time": {"name": "arroyo.strategies.reduce.batch_time", "type": "Time", "description": "How long it took the Reduce step to fill up a batch"}, "arroyo.strategies.run_task_with_multiprocessing.batch.backpressure": {"name": "arroyo.strategies.run_task_with_multiprocessing.batch.backpressure", "type": "Counter", "description": "Incremented when a strategy after multiprocessing applies\nbackpressure to multiprocessing. May be a reason why CPU cannot be\nsaturated."}, "arroyo.strategies.run_task_with_multiprocessing.batch.input.overflow": {"name": "arroyo.strategies.run_task_with_multiprocessing.batch.input.overflow", "type": "Counter", "description": "Incremented when multiprocessing cannot fill the input batch\nbecause not enough memory was allocated. This results in batches smaller\nthan configured. Increase `input_block_size` to fix."}, "arroyo.strategies.run_task_with_multiprocessing.batch.output.overflow": {"name": "arroyo.strategies.run_task_with_multiprocessing.batch.output.overflow", "type": "Counter", "description": "Incremented when multiprocessing cannot pull results in batches\nequal to the input batch size, because not enough memory was allocated.\nThis can be devastating for throughput. Increase `output_block_size` to\nfix."}, "arroyo.strategies.run_task_with_multiprocessing.batch.input.resize": {"name": "arroyo.strategies.run_task_with_multiprocessing.batch.input.resize", "type": "Counter", "description": "Arroyo has decided to re-allocate a block in order to combat input\nbuffer overflow. This behavior can be disabled by explicitly setting\n`input_block_size` to a not-None value in `RunTaskWithMultiprocessing`."}, "arroyo.strategies.run_task_with_multiprocessing.batch.output.resize": {"name": "arroyo.strategies.run_task_with_multiprocessing.batch.output.resize", "type": "Counter", "description": "Arroyo has decided to re-allocate a block in order to combat output\nbuffer overflow. This behavior can be disabled by explicitly setting\n`output_block_size` to a not-None value in `RunTaskWithMultiprocessing`."}, "arroyo.strategies.run_task_with_multiprocessing.batches_in_progress": {"name": "arroyo.strategies.run_task_with_multiprocessing.batches_in_progress", "type": "Gauge", "description": "How many batches are being processed in parallel by multiprocessing."}, "arroyo.strategies.run_task_with_multiprocessing.processes": {"name": "arroyo.strategies.run_task_with_multiprocessing.processes", "type": "Counter", "description": "A subprocess by multiprocessing unexpectedly died.\n\"sigchld.detected\",\nGauge: Shows how many processes the multiprocessing strategy is\nconfigured with."}, "arroyo.strategies.run_task_with_multiprocessing.pool.create": {"name": "arroyo.strategies.run_task_with_multiprocessing.pool.create", "type": "Counter", "description": "Incremented when the multiprocessing pool is created (or re-created)."}, "arroyo.consumer.poll.time": {"name": "arroyo.consumer.poll.time", "type": "Time", "description": "(unitless) spent polling librdkafka for new messages."}, "arroyo.consumer.processing.time": {"name": "arroyo.consumer.processing.time", "type": "Time", "description": "(unitless) spent in strategies (blocking in strategy.submit or\nstrategy.poll)"}, "arroyo.consumer.backpressure.time": {"name": "arroyo.consumer.backpressure.time", "type": "Time", "description": "(unitless) spent pausing the consumer due to backpressure (MessageRejected)"}, "arroyo.consumer.dlq.time": {"name": "arroyo.consumer.dlq.time", "type": "Time", "description": "(unitless) spent in handling `InvalidMessage` exceptions and sending\nmessages to the the DLQ."}, "arroyo.consumer.join.time": {"name": "arroyo.consumer.join.time", "type": "Time", "description": "(unitless) spent in waiting for the strategy to exit, such as during\nshutdown or rebalancing."}, "arroyo.consumer.callback.time": {"name": "arroyo.consumer.callback.time", "type": "Time", "description": "(unitless) spent in librdkafka callbacks. This metric's timings\noverlap other timings, and might spike at the same time."}, "arroyo.consumer.shutdown.time": {"name": "arroyo.consumer.shutdown.time", "type": "Time", "description": "(unitless) spent in shutting down the consumer. This metric's\ntimings overlap other timings, and might spike at the same time."}, "arroyo.consumer.run.callback": {"name": "arroyo.consumer.run.callback", "type": "Time", "description": "A regular duration metric where each datapoint is measuring the time it\ntook to execute a single callback. This metric is distinct from the\narroyo.consumer.*.time metrics as it does not attempt to accumulate time\nspent per second in an attempt to keep monitoring overhead low.\nThe metric is tagged by the name of the internal callback function being\nexecuted, as 'callback_name'. Possible values are on_partitions_assigned\nand on_partitions_revoked."}, "arroyo.consumer.run.close_strategy": {"name": "arroyo.consumer.run.close_strategy", "type": "Time", "description": "Duration metric measuring the time it took to flush in-flight messages\nand shut down the strategies."}, "arroyo.consumer.run.create_strategy": {"name": "arroyo.consumer.run.create_strategy", "type": "Time", "description": "Duration metric measuring the time it took to create the processing strategy."}, "arroyo.consumer.partitions_revoked.count": {"name": "arroyo.consumer.partitions_revoked.count", "type": "Counter", "description": "How many partitions have been revoked just now."}, "arroyo.consumer.partitions_assigned.count": {"name": "arroyo.consumer.partitions_assigned.count", "type": "Counter", "description": "How many partitions have been assigned just now."}, "arroyo.consumer.latency": {"name": "arroyo.consumer.latency", "type": "Time", "description": "Consumer latency in seconds. Recorded by the commit offsets strategy."}, "arroyo.consumer.pause": {"name": "arroyo.consumer.pause", "type": "Counter", "description": "Metric for when the underlying rdkafka consumer is being paused.\nThis flushes internal prefetch buffers."}, "arroyo.consumer.resume": {"name": "arroyo.consumer.resume", "type": "Counter", "description": "Metric for when the underlying rdkafka consumer is being resumed.\nThis might cause increased network usage as messages are being re-fetched."}, "arroyo.consumer.librdkafka.total_queue_size": {"name": "arroyo.consumer.librdkafka.total_queue_size", "type": "Gauge", "description": "Queue size of background queue that librdkafka uses to prefetch messages."}, "arroyo.processing.strategies.healthcheck.touch": {"name": "arroyo.processing.strategies.healthcheck.touch", "type": "Counter", "description": "Counter metric to measure how often the healthcheck file has been touched."}, "arroyo.strategies.filter.dropped_messages": {"name": "arroyo.strategies.filter.dropped_messages", "type": "Counter", "description": "Number of messages dropped in the FilterStep strategy"}, "arroyo.consumer.dlq.dropped_messages": {"name": "arroyo.consumer.dlq.dropped_messages", "type": "Counter", "description": "how many messages are dropped due to errors producing to the dlq"}, "arroyo.consumer.dlq_buffer.len": {"name": "arroyo.consumer.dlq_buffer.len", "type": "Gauge", "description": "Current length of the DLQ buffer deque"}}
|
|
1
|
+
{"arroyo.strategies.run_task_with_multiprocessing.batch.size.msg": {"name": "arroyo.strategies.run_task_with_multiprocessing.batch.size.msg", "type": "Time", "description": "Number of messages in a multiprocessing batch"}, "arroyo.strategies.run_task_with_multiprocessing.batch.size.bytes": {"name": "arroyo.strategies.run_task_with_multiprocessing.batch.size.bytes", "type": "Time", "description": "Number of bytes in a multiprocessing batch"}, "arroyo.strategies.run_task_with_multiprocessing.output_batch.size.msg": {"name": "arroyo.strategies.run_task_with_multiprocessing.output_batch.size.msg", "type": "Time", "description": "Number of messages in a multiprocessing batch after the message transformation"}, "arroyo.strategies.run_task_with_multiprocessing.output_batch.size.bytes": {"name": "arroyo.strategies.run_task_with_multiprocessing.output_batch.size.bytes", "type": "Time", "description": "Number of bytes in a multiprocessing batch after the message transformation"}, "arroyo.consumer.run.count": {"name": "arroyo.consumer.run.count", "type": "Counter", "description": "Number of times the consumer is spinning"}, "arroyo.consumer.invalid_message.count": {"name": "arroyo.consumer.invalid_message.count", "type": "Counter", "description": "Number of times the consumer encountered an invalid message."}, "arroyo.strategies.reduce.batch_time": {"name": "arroyo.strategies.reduce.batch_time", "type": "Time", "description": "How long it took the Reduce step to fill up a batch"}, "arroyo.strategies.run_task_with_multiprocessing.batch.backpressure": {"name": "arroyo.strategies.run_task_with_multiprocessing.batch.backpressure", "type": "Counter", "description": "Incremented when a strategy after multiprocessing applies\nbackpressure to multiprocessing. May be a reason why CPU cannot be\nsaturated."}, "arroyo.strategies.run_task_with_multiprocessing.batch.input.overflow": {"name": "arroyo.strategies.run_task_with_multiprocessing.batch.input.overflow", "type": "Counter", "description": "Incremented when multiprocessing cannot fill the input batch\nbecause not enough memory was allocated. This results in batches smaller\nthan configured. Increase `input_block_size` to fix."}, "arroyo.strategies.run_task_with_multiprocessing.batch.output.overflow": {"name": "arroyo.strategies.run_task_with_multiprocessing.batch.output.overflow", "type": "Counter", "description": "Incremented when multiprocessing cannot pull results in batches\nequal to the input batch size, because not enough memory was allocated.\nThis can be devastating for throughput. Increase `output_block_size` to\nfix."}, "arroyo.strategies.run_task_with_multiprocessing.batch.input.resize": {"name": "arroyo.strategies.run_task_with_multiprocessing.batch.input.resize", "type": "Counter", "description": "Arroyo has decided to re-allocate a block in order to combat input\nbuffer overflow. This behavior can be disabled by explicitly setting\n`input_block_size` to a not-None value in `RunTaskWithMultiprocessing`."}, "arroyo.strategies.run_task_with_multiprocessing.batch.output.resize": {"name": "arroyo.strategies.run_task_with_multiprocessing.batch.output.resize", "type": "Counter", "description": "Arroyo has decided to re-allocate a block in order to combat output\nbuffer overflow. This behavior can be disabled by explicitly setting\n`output_block_size` to a not-None value in `RunTaskWithMultiprocessing`."}, "arroyo.strategies.run_task_with_multiprocessing.batches_in_progress": {"name": "arroyo.strategies.run_task_with_multiprocessing.batches_in_progress", "type": "Gauge", "description": "How many batches are being processed in parallel by multiprocessing."}, "arroyo.strategies.run_task_with_multiprocessing.processes": {"name": "arroyo.strategies.run_task_with_multiprocessing.processes", "type": "Counter", "description": "A subprocess by multiprocessing unexpectedly died.\n\"sigchld.detected\",\nGauge: Shows how many processes the multiprocessing strategy is\nconfigured with."}, "arroyo.strategies.run_task_with_multiprocessing.pool.create": {"name": "arroyo.strategies.run_task_with_multiprocessing.pool.create", "type": "Counter", "description": "Incremented when the multiprocessing pool is created (or re-created)."}, "arroyo.consumer.poll.time": {"name": "arroyo.consumer.poll.time", "type": "Time", "description": "(unitless) spent polling librdkafka for new messages."}, "arroyo.consumer.processing.time": {"name": "arroyo.consumer.processing.time", "type": "Time", "description": "(unitless) spent in strategies (blocking in strategy.submit or\nstrategy.poll)"}, "arroyo.consumer.backpressure.time": {"name": "arroyo.consumer.backpressure.time", "type": "Time", "description": "(unitless) spent pausing the consumer due to backpressure (MessageRejected)"}, "arroyo.consumer.dlq.time": {"name": "arroyo.consumer.dlq.time", "type": "Time", "description": "(unitless) spent in handling `InvalidMessage` exceptions and sending\nmessages to the the DLQ."}, "arroyo.consumer.join.time": {"name": "arroyo.consumer.join.time", "type": "Time", "description": "(unitless) spent in waiting for the strategy to exit, such as during\nshutdown or rebalancing."}, "arroyo.consumer.callback.time": {"name": "arroyo.consumer.callback.time", "type": "Time", "description": "(unitless) spent in librdkafka callbacks. This metric's timings\noverlap other timings, and might spike at the same time."}, "arroyo.consumer.shutdown.time": {"name": "arroyo.consumer.shutdown.time", "type": "Time", "description": "(unitless) spent in shutting down the consumer. This metric's\ntimings overlap other timings, and might spike at the same time."}, "arroyo.consumer.run.callback": {"name": "arroyo.consumer.run.callback", "type": "Time", "description": "A regular duration metric where each datapoint is measuring the time it\ntook to execute a single callback. This metric is distinct from the\narroyo.consumer.*.time metrics as it does not attempt to accumulate time\nspent per second in an attempt to keep monitoring overhead low.\nThe metric is tagged by the name of the internal callback function being\nexecuted, as 'callback_name'. Possible values are on_partitions_assigned\nand on_partitions_revoked."}, "arroyo.consumer.run.close_strategy": {"name": "arroyo.consumer.run.close_strategy", "type": "Time", "description": "Duration metric measuring the time it took to flush in-flight messages\nand shut down the strategies."}, "arroyo.consumer.run.create_strategy": {"name": "arroyo.consumer.run.create_strategy", "type": "Time", "description": "Duration metric measuring the time it took to create the processing strategy."}, "arroyo.consumer.partitions_revoked.count": {"name": "arroyo.consumer.partitions_revoked.count", "type": "Counter", "description": "How many partitions have been revoked just now."}, "arroyo.consumer.partitions_assigned.count": {"name": "arroyo.consumer.partitions_assigned.count", "type": "Counter", "description": "How many partitions have been assigned just now."}, "arroyo.consumer.latency": {"name": "arroyo.consumer.latency", "type": "Time", "description": "Consumer latency in seconds. Recorded by the commit offsets strategy."}, "arroyo.consumer.pause": {"name": "arroyo.consumer.pause", "type": "Counter", "description": "Metric for when the underlying rdkafka consumer is being paused.\nThis flushes internal prefetch buffers."}, "arroyo.consumer.resume": {"name": "arroyo.consumer.resume", "type": "Counter", "description": "Metric for when the underlying rdkafka consumer is being resumed.\nThis might cause increased network usage as messages are being re-fetched."}, "arroyo.consumer.librdkafka.total_queue_size": {"name": "arroyo.consumer.librdkafka.total_queue_size", "type": "Gauge", "description": "Queue size of background queue that librdkafka uses to prefetch messages."}, "arroyo.processing.strategies.healthcheck.touch": {"name": "arroyo.processing.strategies.healthcheck.touch", "type": "Counter", "description": "Counter metric to measure how often the healthcheck file has been touched."}, "arroyo.strategies.filter.dropped_messages": {"name": "arroyo.strategies.filter.dropped_messages", "type": "Counter", "description": "Number of messages dropped in the FilterStep strategy"}, "arroyo.consumer.dlq.dropped_messages": {"name": "arroyo.consumer.dlq.dropped_messages", "type": "Counter", "description": "how many messages are dropped due to errors producing to the dlq"}, "arroyo.consumer.dlq_buffer.len": {"name": "arroyo.consumer.dlq_buffer.len", "type": "Gauge", "description": "Current length of the DLQ buffer deque"}, "arroyo.consumer.dlq_buffer.exceeded": {"name": "arroyo.consumer.dlq_buffer.exceeded", "type": "Counter", "description": "Number of times the DLQ buffer size has been exceeded, causing messages to be dropped"}}
|
|
@@ -102,4 +102,6 @@ MetricName = Literal[
|
|
|
102
102
|
"arroyo.consumer.dlq.dropped_messages",
|
|
103
103
|
# Gauge: Current length of the DLQ buffer deque
|
|
104
104
|
"arroyo.consumer.dlq_buffer.len",
|
|
105
|
+
# Counter: Number of times the DLQ buffer size has been exceeded, causing messages to be dropped
|
|
106
|
+
"arroyo.consumer.dlq_buffer.exceeded",
|
|
105
107
|
]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: sentry-arroyo
|
|
3
|
-
Version: 2.20.
|
|
3
|
+
Version: 2.20.3
|
|
4
4
|
Summary: Arroyo is a Python library for working with streaming data.
|
|
5
5
|
Home-page: https://github.com/getsentry/arroyo
|
|
6
6
|
Author: Sentry
|
|
@@ -21,6 +21,7 @@ Dynamic: description
|
|
|
21
21
|
Dynamic: description-content-type
|
|
22
22
|
Dynamic: home-page
|
|
23
23
|
Dynamic: license
|
|
24
|
+
Dynamic: license-file
|
|
24
25
|
Dynamic: requires-dist
|
|
25
26
|
Dynamic: summary
|
|
26
27
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sentry_arroyo-2.20.0 → sentry_arroyo-2.20.3}/arroyo/processing/strategies/run_task_in_threads.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|