Skip to content

Commit e5fced7

Browse files
committed
Add default value of 30 seconds to heartbeat message interval
1 parent 999b1b5 commit e5fced7

File tree

1 file changed

+2
-2
lines changed
  • opamp/opentelemetry-opamp-client/src/opentelemetry/_opamp

1 file changed

+2
-2
lines changed

opamp/opentelemetry-opamp-client/src/opentelemetry/_opamp/agent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ class OpAMPAgent:
144144
def __init__(
145145
self,
146146
*,
147-
interval: float,
147+
interval: float = 30,
148148
message_handler: Callable[
149149
["OpAMPAgent", OpAMPClient, opamp_pb2.ServerToAgent], None
150150
],
@@ -154,7 +154,7 @@ def __init__(
154154
client: OpAMPClient,
155155
):
156156
"""
157-
:param interval: seconds between automatic calls
157+
:param interval: seconds between heartbeat calls
158158
:param message_handler: user provided function that takes the received ServerToAgent message
159159
:param max_retries: how many times to retry a failed job for ad-hoc messages
160160
:param heartbeat_max_retries: how many times to retry an heartbeat failed job

0 commit comments

Comments
 (0)