e2eobs

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2022 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Observable

type Observable struct {
	e2e.Runnable
	e2emon.Instrumented
	e2eprof.Profiled
}

Observable represents a runnable that is both instrumented and profiled. Typically, all well-written Go services are observable.

func AsObservable

func AsObservable(r e2e.Runnable, instrumentedAndProfiledPortName string, opts ...Option) *Observable

AsObservable wraps e2e.Runnable with Observable. If runnable is running during invocation AsObservable panics. NOTE(bwplotka): Caller is expected to discard passed `r` runnable and use returned Observable.Runnable instead.

type Option

type Option func(*opt)

func WithInstrumentedWaitBackoff

func WithInstrumentedWaitBackoff(waitBackoff *backoff.Backoff) Option

WithInstrumentedWaitBackoff allows customizing wait backoff when accessing metric endpoint.

func WithMetricPath

func WithMetricPath(metricPath string) Option

WithMetricPath sets a custom path for metrics page. "/metrics" by default.

func WithProfiledConfig

func WithProfiledConfig(config parcaconfig.ProfilingConfig) Option

WithProfiledConfig sets a custom parca ProfilingConfig entry about this runnable. Empty by default (Parca defaults apply).

func WithScheme

func WithScheme(scheme string) Option

WithScheme allows adding a customized scheme. "http" or "https" values are allowed. "http" by default. If "https" is specified, insecure TLS will be performed.

Jump to

Keyboard shortcuts

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