-
Notifications
You must be signed in to change notification settings - Fork 807
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New resource detectors import "os" which doesn't work in browsers #3003
Comments
I noticed that I still have to tell webpack to ignore
The way I'm reading the code, it looks like the I'm importing Resource like: |
I think the fix is merged but not yet published |
I think it went out with 0.29.1: #3013 |
The version in npm is still 1.3.0: https://www.npmjs.com/package/@opentelemetry/resources Looks like #3013 released experimental but not stable packages. |
oh! Yes, I apologize. I was looking at the wrong package |
@dyladan will publish stable packages later today. |
What version of OpenTelemetry are you using?
1.3.0
What version of Node are you using?
12
Versions 1.3.0 of stable added new resource detectors to
@opentelemetry/resources
: "OsDetector" and "HostDetector". They both "import {..} from 'os' which makes contrib tests fail with message:Are these detectors meant to be used in the browser? As far as I understand, the
@opentelemetry/resources
package is supposed to be browser compatible, do we need to handle these imports in any way to make it work? or make sure the detectors are not included in a browser distribution?The text was updated successfully, but these errors were encountered: