Skip to content

Use persistent connections for ingest.sentry.ioΒ #2661

@piotrdomagalski

Description

@piotrdomagalski

Problem Statement

We've observed issues on our NAT instance, where there's a lot of connections being opened and then closed to *.ingest.sentry.io. This makes us run out of port allocation in some cases resulting in connection errors (NB, this could also have been the cause of this).

This seems to be caused by the fact that the sentry-ruby gem doesn't use persistent HTTP connections. I looked at the transport class and there doesn't seem to be a way to configure this. Is this something that would be on your radar any time soon?

I'm aware one could provide their own transport class, but right now this requires copying over quite a lot of Sentry specific handling (such as retries, etc). It would be ideal if we wouldn't need to do this and keep the transport class up to date with the upstream.

Solution Brainstorm

  • net/http could be used in a way that keeps the connection open for some configured time

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions