Documentation ¶
Overview ¶
Extracts a UI-optimized structure to render flamegraphs from Universal Profiling.
Index ¶
- Variables
- type Flamegraph
- func (r Flamegraph) Do(ctx context.Context) (bool, error)
- func (r *Flamegraph) Header(key, value string) *Flamegraph
- func (r *Flamegraph) HttpRequest(ctx context.Context) (*http.Request, error)
- func (r Flamegraph) IsSuccess(providedCtx context.Context) (bool, error)
- func (r Flamegraph) Perform(providedCtx context.Context) (*http.Response, error)
- type NewFlamegraph
Constants ¶
This section is empty.
Variables ¶
var ErrBuildPath = errors.New("cannot build path, check for missing path parameters")
ErrBuildPath is returned in case of missing parameters within the build of the request.
Functions ¶
This section is empty.
Types ¶
type Flamegraph ¶
type Flamegraph struct {
// contains filtered or unexported fields
}
func New ¶
func New(tp elastictransport.Interface) *Flamegraph
Extracts a UI-optimized structure to render flamegraphs from Universal Profiling.
https://www.elastic.co/guide/en/observability/current/universal-profiling.html
func (Flamegraph) Do ¶
func (r Flamegraph) Do(ctx context.Context) (bool, error)
Do runs the request through the transport, handle the response and returns a flamegraph.Response
func (*Flamegraph) Header ¶
func (r *Flamegraph) Header(key, value string) *Flamegraph
Header set a key, value pair in the Flamegraph headers map.
func (*Flamegraph) HttpRequest ¶
HttpRequest returns the http.Request object built from the given parameters.
type NewFlamegraph ¶
type NewFlamegraph func() *Flamegraph
NewFlamegraph type alias for index.
func NewFlamegraphFunc ¶
func NewFlamegraphFunc(tp elastictransport.Interface) NewFlamegraph
NewFlamegraphFunc returns a new instance of Flamegraph with the provided transport. Used in the index of the library this allows to retrieve every apis in once place.