Documentation ¶
Overview ¶
Package observability provides abstractions for tracing, metrics, etc.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FuncCall ¶
FuncCall adds observability to a function call.
It should be called at the very beginning of the function, and returned function should be called at exit. The returned function must not be passed or stored. The only valid way to use FuncCall is:
func foo(ctx context.Context) { defer FuncCall(ctx)() // ...
For the Go execution tracer, FuncCall creates a new region for the function call and attaches it to the task in the context (or background task).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.