GetQuerySpan returns the query span for the given statement. Runs on the omni AST extractor.
( ctx context.Context, gCtx base.GetQuerySpanContext, stmt base.Statement, database, schema string, ignoreCaseSensitive bool, )
| 14 | // GetQuerySpan returns the query span for the given statement. |
| 15 | // Runs on the omni AST extractor. |
| 16 | func GetQuerySpan( |
| 17 | ctx context.Context, |
| 18 | gCtx base.GetQuerySpanContext, |
| 19 | stmt base.Statement, |
| 20 | database, schema string, |
| 21 | ignoreCaseSensitive bool, |
| 22 | ) (*base.QuerySpan, error) { |
| 23 | q := newOmniQuerySpanExtractor(database, schema, gCtx, ignoreCaseSensitive) |
| 24 | return q.getOmniQuerySpan(ctx, stmt.Text) |
| 25 | } |