traceappend

package
v0.0.0-...-8ed3357 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2019 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

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

func AddFuncToSource(filePath, appendCode string) string

AddFuncToSource adds a function to a file.

func AddImportToFile

func AddImportToFile(file string, importDict map[string]string) ([]byte, error)

AddImportToFile adds a bunch of named imports to a file, picking up form a K, V style map.

func AddOpenTracingImportToFile

func AddOpenTracingImportToFile(file string) ([]byte, error)

AddOpenTracingImportToFile will be used to import opentracing objects for runtime path logging.

func AppendExpr

func AppendExpr(file string, nodeContent string) ([]byte, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL