-
Notifications
You must be signed in to change notification settings - Fork 7
Question: Folding the spans #58
Comments
Hello @aclowkey, thank you for filing this issue and thank you for the kind words! So I have a few preliminary questions: I ask because we gutted out the spans that weren't making RPCs, and also published updates as per https://opencensus.io/integrations/sql/java_sql/ |
Thank you for answering those questions @aclowkey! So in regards to your question:
Yes, you can create a parent span before that SQL execute by try (Scope ss = tracer.spanBuilder(nameOfYourSpan).startScopedSpan()) {
java.sql.Statement stmt = conn.createStatement();
java.sql.ResultSet rs = stmt.executeQuery(SQL_STATEMENT);
rs.close();
} as per https://opencensus.io/integrations/sql/java_sql/#source-code and that should create the parent span in which those will be child spans and thus collapsable on Stackdriver For example, using the example in the website guides and viewed on Jaeger Hope that answers your question! |
Thanks for the answer. Why aren't the spans linked in my example in the screenshot? |
First of all, thanks for the great library.
I'm having a hard time reading my traces because the JDBC has a lot lot lot of spans. I wish I could somehow fold it in StackDriver, but I don't see the option there.
I'm not enitrely sure what allows spans to be folded in StackDrvier, but perhaps they should be linked somehow as a single span with child spans?
Thanks for any help.
The text was updated successfully, but these errors were encountered: