Documentation ¶
Index ¶
- func AddContextToCallExpressions(filePath string)
- func AddFuncToSource(filePath, appendCode string) string
- func AddImportToFile(file string, importDict map[string]string) ([]byte, error)
- func AddOpenTracingImportToFile(file string) ([]byte, error)
- func AppendExpr(file string, nodeContent string) ([]byte, error)
- func PatchSource(sourcePath, configYamlPath string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddContextToCallExpressions ¶
func AddContextToCallExpressions(filePath string)
AddContextToCallExpressions adds our context argument as the first parameter in the function call.
func AddFuncToSource ¶
AddFuncToSource adds a function to a file.
func AddImportToFile ¶
AddImportToFile adds a bunch of named imports to a file, picking up form a K, V style map.
func AddOpenTracingImportToFile ¶
AddOpenTracingImportToFile will be used to import opentracing objects for runtime path logging.
func AppendExpr ¶
AppendExpr modifies an AST by adding an expr at the start of its body.
func PatchSource ¶
func PatchSource(sourcePath, configYamlPath string)
PatchSource patches a source path to add tracing.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.