Skip to content

Commit 9541c23

Browse files
committed
reset initial event once
1 parent 1fb050b commit 9541c23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/datadog/core/telemetry/worker.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ def after_fork
270270
# having wrong state. It is possible that in the future telemetry
271271
# will be re-enabled after errors.
272272
buffer.clear
273-
initial_event_once.reset
273+
@initial_event_once = Utils::OnlyOnceSuccessful.new(APP_STARTED_EVENT_RETRIES)
274274
# In the child process, we get a new runtime_id.
275275
# As such we need to send AppStarted event.
276276
# In the parent process, the event may have been the

0 commit comments

Comments
 (0)