Comments (6)
@PurpleTape thanks for reaching out. Are you bundling your app? If yes which bundler are you using?
I'd be very interested in a way to reproduce this. I think it's caused by the different named exports for Node.js and Browser we're using in that package and I'm currently working on eliminating those.
from opentelemetry-js.
Hello, @pichlermarc!
I have prepared a repository with a reproduction of the error. Inside the repository, you can find steps to reproduce the error. I also want to mention that I use Vite to build a backend, not a frontend
https://github.com/PurpleTape/open-telemetry-issue
from opentelemetry-js.
@PurpleTape thank you for providing the reproducer - I think the repro app does try to bundle it up for the browser, though. The proto-metrics exporter only supports node.js at the moment, see #4098. So I think it's fair to expect that this would not work at the moment.
Is there some extra config that you're using to build your backend app with vite
? AFAIK there's usually some extra plugins involved in such a build, right?
from opentelemetry-js.
@pichlermarc, yes, you're right! I used additional Vite plugins for backend development. Most likely, the current level of development of Vite tools is not enough for stable backend development and I need to choose other tools.
If you are interested, I have updated the repository, bringing it to the form in which backend development is carried out
from opentelemetry-js.
@pichlermarc have you had a chance to look at this to determine the priority level, whether it is a bug? Just looking at how best to label it and triage it for now.
from opentelemetry-js.
@pichlermarc have you had a chance to look at this to determine the priority level, whether it is a bug? Just looking at how best to label it and triage it for now.
@JamieDanielson it is a bug that has a few different layers to it. It's the good old ESM/CJS dual-export issue (#4743) + wrong export naming (differently named exports for nodejs and browser). Once we fix the naming (this will be done via the work I'm doing on #4116), then this issue here will become a duplicate of #3989.
As it causes compile and likely runtime issues, and there are currently no workarounds, I'll label this as P1.
from opentelemetry-js.
Related Issues (20)
- Use updated attributes with ATTR prefix in all packages
- Implement stable http semantic conventions HOT 1
- Publish ESM packages following ESM spec HOT 2
- Add allowUrls as a config option for web instrumentation
- could we *not* `.enable()` instrumentations in their constructor? HOT 1
- TraceID missed after deployed the project in docker containers
- @opentelemetry/sdk-node changes size when installed from package.json HOT 1
- BatchSpanProcessor doesn't re-enable tracing after flushing HOT 7
- CI Automating of Releases
- @opentelemetry/instrumentation-http should have an option to suppress tracing on ignored outgoing requests
- @opentelemetry/sdk-trace-base - Avoid merging Resource Attributes by default on BasicTracerProvider HOT 2
- use `module.register(...)` in recommended bootstrap code for ESM support HOT 1
- Hook support for adding custom dynamic metric attributes/ dimensions
- OTLPExporterBase causes unhandled rejection on DNS resolution error HOT 2
- Exceptions are not recorded when using auto instrumentation with fetch instrumentation HOT 1
- Can I use auto-instrumentation & manual instrumentation at the same time? HOT 1
- Can ConsoleSpanExporter be used in Prod systems? HOT 2
- [@opentelemetry/instrumentation-http] Default traces have just "GET" as their name HOT 2
- TypeError: Cannot set property Tracer of #<Object> which has only a getter HOT 4
- New Labels Request - `propagator: aws:xray` and `propagator: aws:xray:lambda` 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 opentelemetry-js.