# Functions
CPURusage returns the amount of On-CPU time for the process (sys+user) since it has been started.
NewCPUProfile returns a new CPU profile for the given data.
StartCPUProfile starts a new CPU profile.
ValidSpanID returns true if id is a valid span id (random.Uint64()).
# Constants
Direct directly executes requests logic without any transport overhead.
DirectEndpoint is the name of the expected endpoint when the root span is created directly.
GRPC executes requests via GRPC.
GRPCWorkEndpoint is the grpc endpoint used for the demo app.
HTTP executes requests via HTTP.
HTTPWorkEndpoint is the http endpoint used for the demo app.
HTTPWorkEndpointMethod is the http method used for the demo app.
# Variables
CustomLabels are the user-defined pprof labels to apply in the work endpoint to simulate user label interacting with our own labels.
# Structs
App is an instance of the demo app.
AppConfig defines the behavior and profiling options for the demo app.
CPUProfile is a test utility to extract data from a CPU profile for testing.
CPUProfiler is a simplified implementation of the CPU profiler found in pkg profiler that retains essential performance characteristics but is more convenient for testing.
Label represents a simplified pprof label where the value is a comma-separated string rather than a []string.