We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9fc3ec commit 2eacf84Copy full SHA for 2eacf84
src/services/languages/python/spanExtractor.ts
@@ -78,8 +78,16 @@ export class PythonSpanExtractor implements ISpanExtractor {
78
79
const instrumentationLibrary = tracerName === '__name__'
80
? (mainDeclared ? '__main__' : await this.extractNameTypeTrace(tracerDefinition.document.fileName))
81
- : tracerName
82
-
+ : tracerName;
+ //Add the unrooted form
83
+ if (instrumentationLibrary.includes(".")){
84
+ let unrootedForm = instrumentationLibrary.split(".").slice(1).join(".");
85
+ results.push(new SpanInfo(
86
+ unrootedForm + '$_$' + spanName,
87
+ spanName,
88
+ token.range,
89
+ document.uri));
90
+ }
91
results.push(new SpanInfo(
92
instrumentationLibrary + '$_$' + spanName,
93
spanName,
0 commit comments