Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dynatrace_extension/__about__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
# SPDX-License-Identifier: MIT


__version__ = "1.3.0"
__version__ = "1.3.1"
4 changes: 3 additions & 1 deletion dynatrace_extension/sdk/extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

CALLBACKS_THREAD_POOL_SIZE = 100
INTERNAL_THREAD_POOL_SIZE = 20
HEARTBEAT_THREAD_POOL_SIZE = 10

RFC_3339_FORMAT = "%Y-%m-%dT%H:%M:%SZ"
DATASOURCE_TYPE = "python"
Expand Down Expand Up @@ -220,6 +221,7 @@ def __init__(self, name: str = "") -> None:
# Executors for the callbacks and internal methods
self._callbacks_executor = ThreadPoolExecutor(max_workers=CALLBACKS_THREAD_POOL_SIZE)
self._internal_executor = ThreadPoolExecutor(max_workers=INTERNAL_THREAD_POOL_SIZE)
self._heartbeat_executor = ThreadPoolExecutor(max_workers=HEARTBEAT_THREAD_POOL_SIZE)

# Extension metrics
self._metrics_lock = RLock()
Expand Down Expand Up @@ -827,7 +829,7 @@ def _timediff_iteration(self):
self._scheduler.enterabs(next_timestamp, 1, self._timediff_iteration)

def _heartbeat_iteration(self):
self._internal_executor.submit(self._heartbeat)
self._heartbeat_executor.submit(self._heartbeat)
next_timestamp = self._get_and_set_next_internal_callback_timestamp("heartbeat", HEARTBEAT_INTERVAL)
self._scheduler.enterabs(next_timestamp, 2, self._heartbeat_iteration)

Expand Down
Loading