Giter Site home page Giter Site logo

How to propagate span context from one autoinstrumented span into next. E.g. express `instrumentation-http` into `instrumentation-nestjs-core`? about opentelemetry-js HOT 2 CLOSED

AkselAllas avatar AkselAllas commented on July 28, 2024
How to propagate span context from one autoinstrumented span into next. E.g. express `instrumentation-http` into `instrumentation-nestjs-core`?

from opentelemetry-js.

Comments (2)

dyladan avatar dyladan commented on July 28, 2024

I'm not sure what you're asking here. Baggage and trace ids are propagated by context. I think you may be using hte term "context" in a way we don't normally use it. Can you please explain your use case a little further or provide a code example?

from opentelemetry-js.

AkselAllas avatar AkselAllas commented on July 28, 2024

I solved this by removing instrumentation-nestjs-core.

Basically I have a custom startSpan function where I am doing trace.getActiveSpan() and getting attributes of "parent" span for propagation into new custom span.

Problem is that there is no interface for instrumentation-nestjs-core to also do this custom attribute propagation when it's autoinstrumented span is generated, thus stopping the chain. And I think baggage here wouldn't help much either.

from opentelemetry-js.

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.