Skip to content
Draft
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
1 change: 1 addition & 0 deletions components-rs/sidecar.h
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ ddog_MaybeError ddog_sidecar_session_set_config(struct ddog_SidecarTransport **t
uint32_t flush_interval_milliseconds,
uint32_t remote_config_poll_interval_millis,
uint32_t telemetry_heartbeat_interval_millis,
uint64_t telemetry_extended_heartbeat_interval_millis,
uintptr_t force_flush_size,
uintptr_t force_drop_size,
ddog_CharSlice log_level,
Expand Down
2 changes: 2 additions & 0 deletions ext/configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,8 @@ enum ddtrace_sidecar_connection_mode {
CONFIG(INT, DD_TRACE_AGENT_FLUSH_INTERVAL, DD_CFG_EXPSTR(DD_TRACE_AGENT_FLUSH_INTERVAL_VAL), \
.ini_change = zai_config_system_ini_change) \
CONFIG(INT, DD_TELEMETRY_HEARTBEAT_INTERVAL, "60", .ini_change = zai_config_system_ini_change) \
CONFIG(INT, DD_TELEMETRY_EXTENDED_HEARTBEAT_INTERVAL, "86400", \
.ini_change = zai_config_system_ini_change) \
CONFIG(INT, DD_TRACE_AGENT_FLUSH_AFTER_N_REQUESTS, "0") \
CONFIG(INT, DD_TRACE_SHUTDOWN_TIMEOUT, "5000", .ini_change = zai_config_system_ini_change) \
CONFIG(BOOL, DD_TRACE_STARTUP_LOGS, "true") \
Expand Down
2 changes: 2 additions & 0 deletions ext/sidecar.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ static void dd_sidecar_post_connect(ddog_SidecarTransport **transport, bool is_f
(int)(get_global_DD_REMOTE_CONFIG_POLL_INTERVAL_SECONDS() * 1000),
// for historical reasons in seconds
get_global_DD_TELEMETRY_HEARTBEAT_INTERVAL() * 1000,
// extended heartbeat interval, also in seconds
(uint64_t)get_global_DD_TELEMETRY_EXTENDED_HEARTBEAT_INTERVAL() * 1000,
get_global_DD_TRACE_BUFFER_SIZE(),
get_global_DD_TRACE_AGENT_STACK_BACKLOG() * get_global_DD_TRACE_AGENT_MAX_PAYLOAD_SIZE(),
get_global_DD_TRACE_DEBUG() ? DDOG_CHARSLICE_C("debug") : dd_zend_string_to_CharSlice(get_global_DD_TRACE_LOG_LEVEL()),
Expand Down
7 changes: 7 additions & 0 deletions metadata/supported-configurations.json
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,13 @@
"default": ""
}
],
"DD_TELEMETRY_EXTENDED_HEARTBEAT_INTERVAL": [
{
"implementation": "A",
"type": "int",
"default": "86400"
}
],
"DD_TELEMETRY_HEARTBEAT_INTERVAL": [
{
"implementation": "C",
Expand Down
Loading