Skip to content

Attributes in http client instrumentation ignoring options passed through withOptions #160

@AtCliffUnderline

Description

@AtCliffUnderline

Hey! Having code on building class like

$this->client = $client->withOptions([
    'base_uri' => $baseUri,
]);

And in method of my client I am calling

$content = $this->client->request('GET', 'api/get-user', ...

So I do not have any host, schema in url and spans become poor.
Image

p.s. I can try to PR this with a HttpClientTrait WDYT?

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions