Documentation ¶
Index ¶
- func Enabled() bool
- func GetResource() (*resource.Resource, error)
- func Init(options ...Option) error
- func InitResource(ctx context.Context, options ...resource.Option) *resource.Resource
- type Option
- func WithCtx(ctx context.Context) Option
- func WithMetricsOtlpCollector(target string, dialOptions ...grpc.DialOption) Option
- func WithMetricsPrometheus() Option
- func WithResource(res *resource.Resource) Option
- func WithTracingOtlpCollector(target string, dialOptions ...grpc.DialOption) Option
- func WithTracingStdout() Option
- type Otel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetResource ¶
Types ¶
type Option ¶
type Option func(*Otel)
func WithMetricsOtlpCollector ¶
func WithMetricsOtlpCollector(target string, dialOptions ...grpc.DialOption) Option
func WithMetricsPrometheus ¶
func WithMetricsPrometheus() Option
func WithResource ¶
func WithTracingOtlpCollector ¶
func WithTracingOtlpCollector(target string, dialOptions ...grpc.DialOption) Option
func WithTracingStdout ¶
func WithTracingStdout() Option
Click to show internal directories.
Click to hide internal directories.