Skip to content

How do I set the connect timeout and timeout values? #592

@matthew-gill

Description

@matthew-gill

We're in the process of implementing Sentry for our Symfony app and would like to set some v. conservative timeouts in the event that the Sentry server is unavailable or slow to respond.

I've been able to set

sentry:
  options:
    send_attempts: 1

Which makes a slight bit of difference, but it seems as if the DEFAULT_HTTP_CONNECT_TIMEOUT and DEFAULT_HTTP_TIMEOUT are hard coded in vendor/sentry/sentry/src/HttpClient/HttpClientFactory.php vendor/sentry/sentry/src/HttpClient/HttpClientFactory.php

Is there a way I'm missing to override this? Perhaps using the transport option (but I can't seem to find any documentation for it).

If you have an example of how to use the transport option that would be great. Otherwise, I'll try to raise a PR to set these two values by the option config.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions