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

express plugin: multiple .end() call & .setStatus after .end() of span #908

Closed
mayurkale22 opened this issue Mar 27, 2020 · 3 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@mayurkale22
Copy link
Member

mayurkale22 commented Mar 27, 2020

Please answer these questions before submitting a bug report.

What version of OpenTelemetry are you using?

0.5.2

What did you do?

Run express example.

What did you expect to see?

Execute without error/warn.

What did you see instead?

Can not execute the operation on ended Span {traceId: 87464894ec5751e4af73cb8915bb4830, spanId: 0410a78c7f08acb2}
Can not execute the operation on ended Span {traceId: 87464894ec5751e4af73cb8915bb4830, spanId: 0410a78c7f08acb2}
You can only call end() on a span once.
@mayurkale22 mayurkale22 added the bug Something isn't working label Mar 27, 2020
@vmarchaud
Copy link
Member

Guess thats coming from the fact that i'm trying to guess if one layer called the next callback or not (here). I will look into it tomorrow if no one does it before

@mayurkale22
Copy link
Member Author

mayurkale22 commented Mar 27, 2020

Yes, looks like due to:

if (callbackHasBeenCalled === false) {
span.end();
}

vmarchaud added a commit to vmarchaud/opentelemetry-js that referenced this issue Mar 28, 2020
vmarchaud added a commit to vmarchaud/opentelemetry-js that referenced this issue Mar 28, 2020
vmarchaud added a commit to vmarchaud/opentelemetry-js that referenced this issue Mar 31, 2020
vmarchaud added a commit to vmarchaud/opentelemetry-js that referenced this issue Apr 5, 2020
vmarchaud added a commit to vmarchaud/opentelemetry-js that referenced this issue Apr 5, 2020
vmarchaud added a commit to vmarchaud/opentelemetry-js that referenced this issue Apr 5, 2020
vmarchaud added a commit to vmarchaud/opentelemetry-js that referenced this issue Apr 5, 2020
vmarchaud added a commit to vmarchaud/opentelemetry-js that referenced this issue Apr 8, 2020
vmarchaud added a commit to vmarchaud/opentelemetry-js that referenced this issue Apr 9, 2020
vmarchaud added a commit to vmarchaud/opentelemetry-js that referenced this issue Apr 12, 2020
vmarchaud added a commit to vmarchaud/opentelemetry-js that referenced this issue Apr 15, 2020
vmarchaud added a commit to vmarchaud/opentelemetry-js that referenced this issue Apr 15, 2020
dyladan added a commit that referenced this issue Apr 15, 2020
Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
@vmarchaud
Copy link
Member

This has landed on the contrib repo, release pending open-telemetry/opentelemetry-js-contrib#6

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