Skip to content

using fetch as http client doesn't add trace_id & span_id as Headers #2178

@vigohe

Description

@vigohe

Expected behaviour
When fetch it's execute should add trace_id & span_id automatically as Headers

Actual behaviour
When checking a trace between two services no dependency exists because the trace_id & span_id are missing

Steps to reproduce
fetch("http://example.com");

Environment docker

  • Operation system: docker image node:18-alpine
  • Node.js version: node 18
  • Tracer version: 2.10.0
  • Agent version: 7.37.1

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