Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*TelemetryOptions) error
func MetricOptions ¶
func TracingOptions ¶
func TracingOptions(tracingOptions ...sdktrace.TracerProviderOption) Option
type TelemetryConfig ¶
type TelemetryConfig struct { OTLPAddr string `toml:"addr"` OTLPCAPath string `toml:"ca_path"` OTLPCertPath string `toml:"cert_path"` OTLPKeyPath string `toml:"key_path"` Insecure bool `toml:"insecure"` // contains filtered or unexported fields }
func (*TelemetryConfig) InitializeTelemetry ¶
func (t *TelemetryConfig) InitializeTelemetry(ctx context.Context, serviceName string, logger zerolog.Logger, options ...Option) error
Initialize Metrics + Tracing for the app. NOTE: you must call defer t.Stop() to propely cleanup
func (*TelemetryConfig) RegisterFlags ¶
func (t *TelemetryConfig) RegisterFlags(f *flag.FlagSet)
type TelemetryOptions ¶
type TelemetryOptions struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.