Open ptodev opened 1 year ago
Hi there :wave:
On April 9, 2024, Grafana Labs announced Grafana Alloy, the spirital successor to Grafana Agent and the final form of Grafana Agent flow mode. As a result, Grafana Agent has been deprecated and will only be receiving bug and security fixes until its end-of-life around November 1, 2025.
To make things easier for maintainers, we're in the process of migrating all issues tagged variant/flow to the Grafana Alloy repository to have a single home for tracking issues. This issue is likely something we'll want to address in both Grafana Alloy and Grafana Agent, so just because it's being moved doesn't mean we won't address the issue in Grafana Agent :)
What's wrong?
During Agent shutdown, a
send on closed channel
panic occurs. It is seemingly becauseotelcol.processor.batch
tries to send data tootelcol.processor.tail_sampling
but the tail sampling component has stopped already:I am not sure if this issue is limited to otelcol components or if it also applies to other ones.
Steps to reproduce
Run an Agent with the config file below, let some traces in, then press Ctrl+C. The error doesn't happen at every shutdown. I suppose it's only when a trace is sent to a downstream component, so there is some luck involved with reproducing it. But in my experience it happens half of the time I Ctrl+C an Agent locally.
System information
MacOS 14.0
Software version
Agent "main" branch, commit 1d06721c674b7dc8b510b75b5c
Configuration
Logs