EXPAND ALL
  • Home

pxtrace.RetExpr

Specifies a function return value to trace.

Extracts data from the function return value, as specified by the provided expression. Traceable types are the same as in ArgExpr. Return values are accessed by index ($0 for the first return value, $1 for the second return value, etc.). In Golang, the first index value is the number of arguments, excluding the receiver. For example, the return value for fun Sum(a int, b int) int is $2. Return values that are structs may be accessed using dotted notation, similar to ArgExpr, (e.g. $0.foo).

Arguments

NameTypeDescription
exprstrThe expression to evaluate.

Returns

px.TracingField: A materialized column pointer to use in output table definitions.

This site uses cookies to provide you with a better user experience. By using Pixie, you consent to our use of cookies.