Skip to content

Rename root span name to concisely identifies the work represented by the Span #1676

@rogercoll

Description

@rogercoll

Feature Request

Is your feature request related to a problem?

HTTP generated spans contain a too general name which does not help to identify and monitor the whole lifecycle. For example, the frontend-web service only generate two spans named HTTP GET and HTTP POST for all the queries it performs. As the API defines, we should provide a more human-readable name for root spans, which might include additional information like the URL path.

Sample frontend-proxy span:

Span #0
    Trace ID       : 3004cbd39f480fde9fc69de395d472e9
    Parent ID      : 
    ID             : a602a066ac8af08b
    Name           : HTTP GET
    Trace ID       : 3004cbd39f480fde9fc69de395d472e9
    Parent ID      : 
    ID             : a602a066ac8af08b
    Name           : HTTP GET
    Kind           : Client
    Start time     : 2024-07-18 14:52:29.949 +0000 UTC
    End time       : 2024-07-18 14:52:29.966 +0000 UTC
    Kind           : Client
    Start time     : 2024-07-18 14:52:29.949 +0000 UTC
    End time       : 2024-07-18 14:52:29.966 +0000 UTC
    Status code    : Unset
    Status message : 
Attributes:
     -> component: Str(fetch)
    Status code    : Unset
    Status message : 
Attributes:
     -> component: Str(fetch)
     -> http.method: Str(GET)
     -> http.url: Str(http://frontend-proxy:8080/images/products/RoofBinoculars.jpg)

Describe the solution you'd like:

Provide a more concisely name for root spans. For example, the previous span could be named images instead.

cc @davidgeorgehope

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions