Skip to content

Downstream http requests should use the hostname as a subsegment name #191

Closed
@chanchiem

Description

@chanchiem

Requests, HttpLib, and Aiohttp should all generate subsegments whose name is assigned as the hostname, rather than the full URL path.

Reproduction:

patch_all()
xray_recorder.begin_segment("segment")
requests.get("https://aws.amazon.com/some/url/endpoint")
xray_recorder.end_segment()

observe that the subsegment name is https://aws.amazon.com/some/url/endpoint instead of "aws.amazon.com`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions