Skip to content

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

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions