Documentation ¶
Index ¶
- Variables
- type Config
- type Export
- type ExportOption
- type Metrics
- type MetricsOption
- type OptionFunc
- func WithMetricsPipeline(pipeOpts ...MetricsOption) OptionFunc
- func WithOtelErrorHandler(handler otel.ErrorHandler) OptionFunc
- func WithResource(ctx context.Context, detector resource.Detector) OptionFunc
- func WithServiceName(name string) OptionFunc
- func WithTracesPipeline(pipeOpts ...TracingOption) OptionFunc
- type Tracing
- type TracingOption
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNilParamProvided = errors.New("nil value provided") ErrInvalidParam = errors.New("invalid value provided") )
Functions ¶
This section is empty.
Types ¶
type Config ¶
func NewDefault ¶
func NewDefault() *Config
func (*Config) Apply ¶
func (c *Config) Apply(opts ...OptionFunc) (err error)
func (*Config) GetErrorHandler ¶
func (c *Config) GetErrorHandler() otel.ErrorHandler
func (*Config) GetResource ¶
type ExportOption ¶ added in v0.2.0
Method types to programatically validate additions to the existing config
func WithExporterEndpoint ¶ added in v0.2.0
func WithExporterEndpoint(endpoint string) ExportOption
WithPipelineEndpoint will validate that the provided endpoint has a valid schema and that the hostname can be resolved
func WithExporterHeaders ¶ added in v0.2.0
func WithExporterHeaders(headers map[string]string) ExportOption
func WithExporterInsecureConnection ¶ added in v0.2.0
func WithExporterInsecureConnection() ExportOption
func WithExporterNamed ¶ added in v0.2.0
func WithExporterNamed(named string) ExportOption
func WithExporterUseCompression ¶ added in v0.2.0
func WithExporterUseCompression() ExportOption
type MetricsOption ¶ added in v0.2.0
Method types to programatically validate additions to the existing config
func WithMetricsCollectionPeriod ¶ added in v0.2.0
func WithMetricsCollectionPeriod(t time.Duration) MetricsOption
func WithMetricsExporterOptions ¶ added in v0.2.0
func WithMetricsExporterOptions(opts ...ExportOption) MetricsOption
type OptionFunc ¶
Method types to programatically validate additions to the existing config
func WithMetricsPipeline ¶
func WithMetricsPipeline(pipeOpts ...MetricsOption) OptionFunc
func WithOtelErrorHandler ¶
func WithOtelErrorHandler(handler otel.ErrorHandler) OptionFunc
func WithResource ¶
func WithResource(ctx context.Context, detector resource.Detector) OptionFunc
func WithServiceName ¶ added in v0.1.0
func WithServiceName(name string) OptionFunc
func WithTracesPipeline ¶
func WithTracesPipeline(pipeOpts ...TracingOption) OptionFunc
type TracingOption ¶ added in v0.2.0
Method types to programatically validate additions to the existing config
func WithTracingExporterOptions ¶ added in v0.2.0
func WithTracingExporterOptions(opts ...ExportOption) TracingOption
func WithTracingPropagators ¶ added in v0.2.0
func WithTracingPropagators(use ...string) TracingOption
func WithTracingSampled ¶ added in v0.2.0
func WithTracingSampled() TracingOption
Click to show internal directories.
Click to hide internal directories.