Skip to content

Commit

Permalink
send heartbeat every 60 sec; don't adjust status timestamp (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
radu-stefan-dt committed Jun 24, 2024
1 parent fa89b68 commit 5535ea1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dynatrace_extension/sdk/extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
from .runtime import RuntimeProperties
from .snapshot import Snapshot

HEARTBEAT_INTERVAL = timedelta(seconds=30)
HEARTBEAT_INTERVAL = timedelta(seconds=60)
METRIC_SENDING_INTERVAL = timedelta(seconds=30)
SFM_METRIC_SENDING_INTERVAL = timedelta(seconds=60)
TIME_DIFF_INTERVAL = timedelta(seconds=60)
Expand Down Expand Up @@ -953,7 +953,6 @@ def _build_current_status(self):
return overall_status

for callback in self._scheduled_callbacks:
overall_status.timestamp = int(callback.get_adjusted_metric_timestamp().timestamp() * 1000)
if callback.status.is_error():
overall_status.status = callback.status.status
messages.append(f"{callback}: {callback.status.message}")
Expand Down

0 comments on commit 5535ea1

Please sign in to comment.