Skip to content

Stop the probes when AppSignal stops - #279

Merged
unflxw merged 1 commit into
flush-opentelemetry-on-stopfrom
stop-probes-when-stopping
Aug 27, 2026
Merged

Stop the probes when AppSignal stops#279
unflxw merged 1 commit into
flush-opentelemetry-on-stopfrom
stop-probes-when-stopping

Conversation

@unflxw

@unflxw unflxw commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Starting AppSignal starts the minutely probe thread, and stopping it
leaves that thread running. The probes keep calling user functions and
keep recording metrics after the application asked AppSignal to stop.

Stopping the probes joins their thread, which cannot finish until the
probe it is running returns, so the join is bounded and warns when it
gives up. The probes stop before the OpenTelemetry providers are shut
down, because they report through the metric helpers and a probe
running after the meter provider is gone has nowhere to put its
metrics.

Starting AppSignal starts the minutely probe thread, and stopping it
leaves that thread running. The probes keep calling user functions and
keep recording metrics after the application asked AppSignal to stop.

Stopping the probes joins their thread, which cannot finish until the
probe it is running returns, so the join is bounded and warns when it
gives up. The probes stop before the OpenTelemetry providers are shut
down, because they report through the metric helpers and a probe
running after the meter provider is gone has nowhere to put its
metrics.
@backlog-helper

backlog-helper Bot commented Aug 27, 2026

Copy link
Copy Markdown

Hi @unflxw,

We've found some issues with your Pull Request.

  • This Pull Request is missing labels. Please add labels to help identify types of Pull Requests. - (More info)
  • This Pull Request is missing reviewers. Either convert this Pull Request into a draft or ignore this rule by adding [skip review] to your Pull Request body. - (More info)

New issue guide | Backlog management | Rules | Feedback

@unflxw
unflxw marked this pull request as ready for review August 27, 2026 16:26
@backlog-helper

Copy link
Copy Markdown

Hi @unflxw,

We've found new issues for this Pull Request. Please see the main comment on this issue for a list of all current warnings. This comment will not be updated to reflect resolved warnings.

  • This Pull Request is missing reviewers. Either convert this Pull Request into a draft or ignore this rule by adding [skip review] to your Pull Request body. - (More info)

New issue guide | Backlog management | Rules | Feedback

@unflxw
unflxw merged commit 5e8d071 into flush-opentelemetry-on-stop Aug 27, 2026
11 checks passed
unflxw added a commit that referenced this pull request Aug 28, 2026
Starting AppSignal starts the minutely probe thread, and stopping it
leaves that thread running. The probes keep calling user functions and
keep recording metrics after the application asked AppSignal to stop.

Stopping the probes joins their thread, which cannot finish until the
probe it is running returns, so the join is bounded and warns when it
gives up. The probes stop before the OpenTelemetry providers are shut
down, because they report through the metric helpers and a probe
running after the meter provider is gone has nowhere to put its
metrics.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant