Skip to content

Include more than just the method in opentelemetry-auto-symfony HttpClientInstrumentation  #1399

@NeilWhitworth

Description

@NeilWhitworth

Is your feature request related to a problem?
We are consuming an api (served from api.example.com) that references images (served from images.example.com). However since all http(s) requests only use the method as the span name, it is impossible to distinguish requests going to the different hosts.

Describe the solution you'd like
Include additional distinguishing information in the span name. Possibly using the target url host-name

Describe alternatives you've considered

  • Use the target request schema/host/port combination
  • Use base_uri if available

Additional context
From to https://opentelemetry.io/docs/specs/semconv/http/http-spans/

HTTP span names SHOULD be {method} {target} if there is a (low-cardinality) target available.

Instrumentation MUST NOT default to using URI path as a {target}

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleThis issue didn't have recent activity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions