Documentation
¶
Index ¶
- type Client
- type Option
- func WithDebug() Option
- func WithDisabled() Option
- func WithEndpoint(endpoint string, insecure bool) Option
- func WithExporter(w io.WriteCloser) Option
- func WithFS(fs afero.Fs) Option
- func WithLogger(logger hclog.Logger) Option
- func WithResource(res *resource.Resource) Option
- func WithVersionInfo(version, commit, buildDate string) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the telemetry client.
func (*Client) NewRandomId ¶
NewRandomId returns true if we created a new random id in this session
func (*Client) RecordError ¶
RecordError should be called on a span to mark it as errored. Error values are not included unless debug mode is on.
type Option ¶
type Option func(*Client)
func WithDisabled ¶
func WithDisabled() Option
func WithEndpoint ¶
func WithExporter ¶
func WithExporter(w io.WriteCloser) Option
func WithLogger ¶
func WithLogger(logger hclog.Logger) Option
func WithResource ¶
func WithVersionInfo ¶
Click to show internal directories.
Click to hide internal directories.