import { SourceFile } from "ts-morph" ; import { getAutorestOptions } from "../../autorestSession" ; param param0 param sourceFile export function addTracingOperationImports ( sourceFile , traverseToRoot = ".." ) { const { tracingInfo } = getAutorestOptions ( ) ; if ( tracingInfo ) { sourceFile . addImportDeclarations ( [ { namedImports : [ "CanonicalCode" ] , moduleSpecifier : "@opentelemetry/api" } , { namedImports : [ "createSpan" ] , moduleSpecifier : `${ traverseToRoot }/tracing` } ] ) ; } }