Skip to content

ReferenceError: SpanStatus is not defined #4659

@drmrbrewer

Description

@drmrbrewer

Core or SDK?

Platform/SDK

Which part? Which one?

Custom Instrumentation for JavaScript

Description

I've tried the code snippets on the following page:

https://docs.sentry.io/platforms/javascript/performance/instrumentation/custom-instrumentation/

Regarding the following lines:

span.setStatus(SpanStatus.Ok);
span.setStatus(SpanStatus.UnknownError);

I'm just getting the following runtime error:

ReferenceError: SpanStatus is not defined

Suggested Solution

Not sure!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions