Skip to content

undici instrumentation does not set http.url attribute #2417

Closed
@timfish

Description

@timfish

I've noticed that the undici instrumentation sets the url.full attribute but does not set the http.url attribute which I would expect for HTTP client spans.

It only sets these attributes:

const attributes: Attributes = {
[SemanticAttributes.HTTP_REQUEST_METHOD]: requestMethod,
[SemanticAttributes.HTTP_REQUEST_METHOD_ORIGINAL]: request.method,
[SemanticAttributes.URL_FULL]: requestUrl.toString(),
[SemanticAttributes.URL_PATH]: requestUrl.pathname,
[SemanticAttributes.URL_QUERY]: requestUrl.search,
[SemanticAttributes.URL_SCHEME]: urlScheme,
};

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions