Giter VIP home page Giter VIP logo

Comments (7)

jtmalinowski avatar jtmalinowski commented on May 22, 2024

I have a couple thoughts after reviewing the code:

  • I think this library would benefit from clearly dividing the instrumentation part (i.e. creating spans, context management, trace id injection in logs) and Nest helpers (services, initialization, etc.)
  • in other words, that division would best be done by exporting a NestInstrumentation, which you can use when initialising Open Telemetry
  • it's not immediately clear if spans will be created for actions/handlers without @Span annotation, it looks to me like they won't, which is a bit unusual for an instrumentation of this kind
  • the purpose of TraceInterceptor is a bit unclear, did OTel propagators not work for you otherwise?

If you think you have the right Nest expertise to drive the design on Nest's end of this library, I can check if @splunk would commit some resources to make this library play a bit more nicely with Open Telemetry - good support for instrumentation in Nest is on our list. Let me know what you think.

from nestjs-opentelemetry.

mentos1386 avatar mentos1386 commented on May 22, 2024

@jtmalinowski i think you might be interested in https://github.com/pragmaticivan/nestjs-otel.

from nestjs-opentelemetry.

jtmalinowski avatar jtmalinowski commented on May 22, 2024

@mentos1386 thanks for the tip. The repo you linked only provides metrics and some manual instrumentation helpers. Once metrics specification matures, it will be nice to incorporate it.

from nestjs-opentelemetry.

jtmalinowski avatar jtmalinowski commented on May 22, 2024

@MetinSeylan I'm closing for now, this library is now in the registry. Maybe there'll be a potential for some more collaboration in the future.

from nestjs-opentelemetry.

MetinSeylan avatar MetinSeylan commented on May 22, 2024

@jtmalinowski @mentos1386 we are using this library as a internal tool in my company, that's why we are decided refactor this library dramatically, we are working on it with my team, we will release new version soon, btw thanks for feedback it's important for us

from nestjs-opentelemetry.

jtmalinowski avatar jtmalinowski commented on May 22, 2024

Gotcha.

from nestjs-opentelemetry.

MetinSeylan avatar MetinSeylan commented on May 22, 2024

finally refactored :)

from nestjs-opentelemetry.

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.