Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Use peer transmission during redistribute and shutdown events #1332

Merged
merged 2 commits into from
Sep 16, 2024

Conversation

MikeGoldsmith
Copy link
Contributor

Which problem is this PR solving?

Updates the collector use the configured peer transmission to send spans to peers during redistribute and shutdown events. This ensures metrics for sending to Honeycomb and peers are accurate.

The peer transmission is already configured and used by the router when receiving spans that should be sent to a peer. This is used the same transmission object after a span was originally accepted but then should be forwarded to a peer.

Short description of the changes

  • Inject the already configured peer transmission during collector init
  • Update redistribute and shutdown logic to use the peer transmission
  • Update tests throughout to verify the peer transmission is used correctly and also verify it can be injected correctly
    • note: there were existing tests to verify redistribute and shutdown behaviour and have been updated

@MikeGoldsmith MikeGoldsmith added the type: bug Something isn't working label Sep 16, 2024
@MikeGoldsmith MikeGoldsmith self-assigned this Sep 16, 2024
@MikeGoldsmith MikeGoldsmith requested a review from a team as a code owner September 16, 2024 13:39
@MikeGoldsmith MikeGoldsmith added this to the v2.9 milestone Sep 16, 2024
Copy link
Contributor

@kentquirk kentquirk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@MikeGoldsmith MikeGoldsmith merged commit 78f9ffb into main Sep 16, 2024
5 checks passed
@MikeGoldsmith MikeGoldsmith deleted the mike/peer-transmission branch September 16, 2024 16:06
TylerHelmuth pushed a commit that referenced this pull request Oct 16, 2024
…1332)

## Which problem is this PR solving?

Updates the collector use the configured peer transmission to send spans
to peers during redistribute and shutdown events. This ensures metrics
for sending to Honeycomb and peers are accurate.

The peer transmission is already configured and used by the router when
receiving spans that should be sent to a peer. This is used the same
transmission object after a span was originally accepted but then should
be forwarded to a peer.

- Closes #1324

## Short description of the changes
- Inject the already configured peer transmission during collector init
- Update redistribute and shutdown logic to use the peer transmission
- Update tests throughout to verify the peer transmission is used
correctly and also verify it can be injected correctly
- note: there were existing tests to verify redistribute and shutdown
behaviour and have been updated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use PeerTransmission when forwarding spans to peers
2 participants