Skip to content

Cannot execute the operation on ended Span with @opentelemetry/instrumentation-cassandra-driver #2780

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

Open
mikl opened this issue Apr 2, 2025 · 1 comment
Labels
bug Something isn't working pkg:instrumentation-cassandra-driver priority:p4 Bugs and spec inconsistencies which do not fall into a higher prioritization

Comments

@mikl
Copy link

mikl commented Apr 2, 2025

We’ve been seeing errors from the cassandra-driver on a massive scale when our application runs under heavy load, not exactly sure what leads to this.

What version of OpenTelemetry are you using?

@opentelemetry/[email protected]
@opentelemetry/[email protected]
@opentelemetry/[email protected]
[email protected]

What version of Node are you using?

v22.14.0

What did you do?

Application was running under heavy load with the cassandra-driver instrumentation enabled.

What did you expect to see?

Traces.

What did you see instead?

Exceptions like this:

Cannot execute the operation on ended Span {traceId: 74c4506a3b2fce67041d5297bd2b9504, spanId: 3dfa45f87c2e1732} Error: Operation attempted on ended Span {traceId: 74c4506a3b2fce67041d5297bd2b9504, spanId: 3dfa45f87c2e1732}
    at RequestHandler.send (/app/node_modules/cassandra-driver/lib/request-handler.js:119:12)
    at new Promise (<anonymous>)
    at /app/node_modules/cassandra-driver/lib/request-handler.js:132:13
    at DefaultLoadBalancingPolicy.newQueryPlan (/app/node_modules/cassandra-driver/lib/policies/load-balancing.js:626:12)	
    at /app/node_modules/cassandra-driver/lib/request-handler.js:138:42
    at RequestHandler._startNewExecution (/app/node_modules/cassandra-driver/lib/request-handler.js:183:15)
    at RequestExecution.start (/app/node_modules/cassandra-driver/lib/request-execution.js:104:10)
    at RequestExecution.patchedSendOnConnection (/app/node_modules/@opentelemetry/instrumentation-cassandra-driver/build/src/instrumentation.js:108:26)
    at SpanImpl.setAttribute (/app/node_modules/@opentelemetry/sdk-trace-base/build/src/Span.js:84:35)
    at SpanImpl._isSpanEnded (/app/node_modules/@opentelemetry/sdk-trace-base/build/src/Span.js:266:27)

Additional context

@mikl mikl added the bug Something isn't working label Apr 2, 2025
@pichlermarc pichlermarc added pkg:instrumentation-cassandra-driver priority:p4 Bugs and spec inconsistencies which do not fall into a higher prioritization labels Apr 10, 2025
@pichlermarc
Copy link
Member

Categorizing as P4 (logspam)
cc @seemk (component owner)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pkg:instrumentation-cassandra-driver priority:p4 Bugs and spec inconsistencies which do not fall into a higher prioritization
Projects
None yet
Development

No branches or pull requests

2 participants