Skip to content
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

Tracer web examples not working #1862

Closed
obarcelonap opened this issue Jan 22, 2021 · 2 comments
Closed

Tracer web examples not working #1862

obarcelonap opened this issue Jan 22, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@obarcelonap
Copy link

obarcelonap commented Jan 22, 2021

What version of OpenTelemetry are you using?

0.15.0

What version of Node are you using?

v12.18.0

Please provide the code you used to setup the OpenTelemetry SDK

Examples provided within this repo

What did you do?

  1. Clone the repo
  2. Navigate to opentelemetry-js/examples/tracer-web
  3. Execute npm install
  4. Execute npm start
  5. Select document load test

What did you expect to see?

Open tracing data related to document load in the console

What did you see instead?

Javsacript error

zone.js?9bea:178 Uncaught TypeError: this._tracer.withSpan is not a function
    at eval (documentLoad.js?dae3:76)
    at NoopContextManager.with (NoopContextManager.js?9e96:27)
    at ContextAPI.with (context.js?44eb:60)
    at DocumentLoad._collectPerformance (documentLoad.js?dae3:71)
    at eval (documentLoad.js?dae3:48)
    at ZoneDelegate.invokeTask (zone.js?9bea:402)
    at Zone.runTask (zone.js?9bea:174)
    at invokeTask (zone.js?9bea:483)
    at ZoneTask.invoke (zone.js?9bea:472)
    at timer (zone.js?9bea:2538)

User interaction test fails with the same error when clicking on any button.

Additional context

Downgrading to version 0.14.0 of the libs seems to work, so might be related to #1836

@obarcelonap obarcelonap added the bug Something isn't working label Jan 22, 2021
@Flarna
Copy link
Member

Flarna commented Jan 22, 2021

Plugins from contrib repo are not yet compatible with 0.15.0 so you should stick on 0.14.0 until they get updated.

see open-telemetry/opentelemetry-js-contrib#315

@Flarna Flarna changed the title Tacer web examples not working Tracer web examples not working Jan 22, 2021
@jonchurch
Copy link
Contributor

Interestingly, they still don't work as written. But only because webpack is trying to run tests that don't exist for these examples.

I think this issue can be closed, I'll open a new one for the webpack failure.

pichlermarc pushed a commit to dynatrace-oss-contrib/opentelemetry-js that referenced this issue Dec 15, 2023
redis@4.6.9 was a bad release that accidentally broken v14 support.
This updates the versions test to skip that release, and also
reduces the number of versions tested from 27 to 8 by selecting
just the current latest minor releases.

Also, drop the pretest config that (a) was never used
because of the wrong indentation and (b) is no longer
valid since the move to npm workspaces.

Refs: open-telemetry#1860
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants