Skip to content

TraceFilter creates span names from URIs #500

Closed
@s-spindler

Description

@s-spindler

Spans created by TraceFilter have their span names generated from the respective request's full URI including path variables. This results in requests to the same endpoint to have different span names.
For example:
http://localhost:8080/users/abc and http://localhost:8080/users/def would result in http:/users/abc and http:/users/def.
As a result the different spans can not be grouped. Also, zipkin server has problems handling big numbers of span names - at least with a cassandra backend.

It seems more reasonable to put a wildcard in the place of the path variable. In the example above the spans could both be named http:/users/* or something similar.

This would also be more in line with the recommendation in the Spring Cloud Sleuth documentation regarding span naming:

The name should be low cardinality (e.g. not include identifiers).

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