Skip to content

Tracer web examples not working #1862

@obarcelonap

Description

@obarcelonap

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions