Skip to content

Conversation

@nathan-knight
Copy link

Currently if you have a function that returns a Promise but is not marked as async, this library treats it as synchronous and immediately closes the span without awaiting the Promise.

This PR makes the library handle this case the same way that dd-trace-js does it (see https://github.com/DataDog/dd-trace-js/blob/2072a1f0e75c7b921d3c09dc9cc72c1779cbbddd/packages/dd-trace/src/tracer.js#L81).

@nathan-knight
Copy link
Author

@wokim are you able to review this? Is there anyone left in the organization who can if you can't?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant