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

Cannot read property 'spanId' of null #1603

Closed
pauldraper opened this issue Oct 19, 2020 · 1 comment
Closed

Cannot read property 'spanId' of null #1603

pauldraper opened this issue Oct 19, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@pauldraper
Copy link
Contributor

Please answer these questions before submitting a bug report.

What version of OpenTelemetry are you using?

0.12.0

What version of Node are you using?

6.14.4

Please provide the code you used to setup the OpenTelemetry SDK

What did you do?

const { NoopTracer } = require('@opentelemetry/api');
const tracer = new NoopTracer();
tracer.startSpan('example', {parent: null});

If possible, provide a recipe for reproducing the error.

What did you expect to see?

No error

What did you see instead?

TypeError: Cannot read property 'spanId' of null
    at isSpanContext (/home/paul/rivet/main/api/node_modules/@opentelemetry/api/build/src/trace/NoopTracer.js:58:27)
    at NoopTracer.startSpan (/home/paul/rivet/main/api/node_modules/@opentelemetry/api/build/src/trace/NoopTracer.js:36:13)

Additional context

@pauldraper pauldraper added the bug Something isn't working label Oct 19, 2020
pauldraper added a commit to pauldraper/opentelemetry-js that referenced this issue Oct 19, 2020
@vmarchaud
Copy link
Member

Closing since solution has been given in #1605

pichlermarc pushed a commit to dynatrace-oss-contrib/opentelemetry-js that referenced this issue Dec 15, 2023
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

2 participants