vercel / tracing-js

An implementation of Opentracing API for honeycomb.io

Home Page:https://npmjs.com/@vercel/tracing-js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Prevent sending when calling finish() more than once

styfle opened this issue · comments

There are scenarios where the use might call span.finish() twice and send the same trace data twice.

We should prevent this behavior and instead make finish() indepotent - at most, one call.