Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Observable ¶
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 ¶
WithInstrumentedWaitBackoff allows customizing wait backoff when accessing metric endpoint.
func WithMetricPath ¶
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 ¶
WithScheme allows adding a customized scheme. "http" or "https" values are allowed. "http" by default. If "https" is specified, insecure TLS will be performed.