Skip to content

enable timeout for http transports#1275

Merged
brettmc merged 5 commits into
open-telemetry:mainfrom
brettmc:http-timeout
Apr 25, 2024
Merged

enable timeout for http transports#1275
brettmc merged 5 commits into
open-telemetry:mainfrom
brettmc:http-timeout

Conversation

@brettmc

@brettmc brettmc commented Apr 12, 2024

Copy link
Copy Markdown
Contributor

Attempt to do our own discovery for some well-known PSR-18 clients, which allows for configuring timeout (and in future certificates, keys etc). If we can't create a client, fall back to PSR-18 discovery which was the previous behaviour.

Fixes: #1111

Attempt to do our own discovery for some well-known PSR-18 clients, which allows
for configuring timeout (and in future certificates, keys etc).
This is not complete and a prototype for feedback, but I've updated an example to
show that it works for Guzzle and Symfony http clients
Comment thread examples/traces/exporters/otlp_http_from_factory.php

@bobstrecansky bobstrecansky left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This feels like a good direction and a net positive to me.

@brettmc
brettmc marked this pull request as ready for review April 18, 2024 05:16
@brettmc
brettmc requested a review from a team April 18, 2024 05:16
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.

$timout in PsrTransportFactory is not used

2 participants