Comments (5)
Hi @laurencefass have you tried with the version ^1.4.1
of the api package? Otel had some breaking changes in that version while the package was reaching stable status.
from nestjs-otel.
@pragmaticivan would it be possible to declare the list of peer dependencies for this project and add that to the package.json
? Both times i've tried to add this project to a nest project it is unclear when otel library versions to use.
If you install the most recent versions there are considerable type issues with the updated interfaces and your displayed examples.
See other errors as well:
from nestjs-otel.
@coler-j ,let me take a look, the reason why I didn't do that in the past was that OTEL metric SDK was not respecting version stability yet
but that's not the case anymore.
from nestjs-otel.
Meanwhile, that's an updated working project https://github.com/pragmaticivan/nestjs-otel-prom-grafana-tempo as example
from nestjs-otel.
I also think @opentelemetry/api
should be moved to peer dependencies. For example, in my project nestjs-otel
downloaded @opentelemetry/[email protected]
as a transitive dependency, but (since I also use the trace api directly for debugging) I also had @opentelemetry/[email protected]
install locally.
Since these dependencies were at different versions nestjs-otel
was not able to see the tracer and metric providers established by the other lib causing unknown failures.
If you want @pragmaticivan I can attempt to clear this up in a PR and also add more explicit wording around dependency selection then we can close the multiple issues that exist (and might stear people away from using this library).
from nestjs-otel.
Related Issues (20)
- How to add Prefix to Metrics HOT 2
- Distributed tracing HOT 2
- [HELP] How to use in aws lambda HOT 1
- Adapt OTel newer version. HOT 5
- Automatically add Span on every Injectable method, Guards etc. HOT 3
- ApiMetricsMiddleware is not initialized if forRootAsync is used HOT 1
- TraceService.getSpan should return Span|undefined
- Error: Cannot read properties of undefined (reading 'getMeterProvider') since v5.0.0 HOT 2
- README configuration Typescript errors: NodeJSConfiguration interface doesn't have metricExporter and metricInterval properties HOT 3
- Typescript errors: Cannot find module 'dns/promises' or its corresponding type declarations HOT 2
- Cannot find module '@opentelemetry/exporter-prometheus' or its corresponding type declarations.ts(2307) HOT 2
- metric name for the grafana dashboard example is wrong HOT 1
- Server response error and client request error count metrics returns the same value HOT 3
- Support for nestjs v10? HOT 1
- Tutorial section provides wrong suggestions (for Kubernetes cluster) HOT 1
- Breaking changes 5.1.3 | Cannot use with nest v9 HOT 1
- Latency buckets are not matching the expected time unit in milliseconds HOT 4
- Prometeus metric cluster aggregation HOT 2
- Failure to collect metrics using Telegraf HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nestjs-otel.