Code Monkey home page Code Monkey logo

Comments (9)

abernix avatar abernix commented on June 2, 2024

The router would only originate a trace Id when it doesn't get one from the headers. Do you have tracing propagation setup or any exporters enabled? Can you share more of your configuration?

from router.

abernix avatar abernix commented on June 2, 2024

Put another way, the thing you're asking for should definitely already work. The router is meant to play nice with existing distributed tracing headers, including passing them to subgraphs as fit.

@BrynCooke Anything to add here?

from router.

Samjin avatar Samjin commented on June 2, 2024

The router would only originate a trace Id when it doesn't get one from the headers. Do you have tracing propagation setup or any exporters enabled? Can you share more of your configuration?

I tried it and left comment here. #4823 (comment)

          datadog:
            enabled: true
            enable_span_mapping: true
            batch_processor:
              ...
            endpoint: "xx"
          propagation:
            datadog: true
            request:
              header_name: trace-id

I think it trimmed off the - from UUID. Our downstream received value like traceid=28e9fb547e465690f288cdb96194d119 which failed their UUID validation.

Update: i'll take another look tmr to observe the change.

from router.

Samjin avatar Samjin commented on June 2, 2024

I still get a different trace_id than trace-id header used above. The log is from subgraph_service.

image

And, subgraph would receive this error(invalid UUID) from trace-id header. So somewhere overwrite trace-id header.
image

Also the following trace ids are mutual exclusive in router span attrs.

      router:
        attributes:
          trace_id: true
          trace-id:
            request_header: trace-id

from router.

Samjin avatar Samjin commented on June 2, 2024

In debug mode, I get following error

  "message": "cannot generate custom trace_id: invalid digit found in string",
  "target": "apollo_router::plugins::telemetry",

looks like trace_id is recreated because it couldn't parse UUID header.

from router.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.