Skip to content

Commit

Permalink
also generate scope for null spans
Browse files Browse the repository at this point in the history
  • Loading branch information
nenadnoveljic committed Jul 4, 2024
1 parent 11a7a7a commit 1d53bc6
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,8 @@ public static AgentScope onEnter(
DECORATE.onConnection(span, dbInfo);
final String copy = sql;
Integer priority = null;
AgentScope scope = null;
final AgentScope scope = activateSpan(span);
if (span != null && INJECT_COMMENT) {
scope = activateSpan(span);
String traceParent = null;

if (injectTraceContext && !isSqlServer) {
Expand Down

0 comments on commit 1d53bc6

Please sign in to comment.