Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OpenExporter ¶
OpenExporter opens a trace exporter specified by its trace exporter name and a exporter-specific data source name, usually consisting of at least a trace exporter name and connection information.
Types ¶
type EmptyOption ¶
type EmptyOption struct{}
EmptyOption does not alter the configuration. It can be embedded in another structure to build custom options.
This API is EXPERIMENTAL.
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
A Option sets options.
func WithOptionStdoutOptions ¶
func WithOptionStdoutOptions(v ...stdouttrace.Option) Option
WithOptionStdoutOptions appends StdoutOptions in option.
func WithOptionStdoutOptionsReplace ¶
func WithOptionStdoutOptionsReplace(v ...stdouttrace.Option) Option
WithOptionStdoutOptionsReplace sets StdoutOptions in option.
type OptionFunc ¶
type OptionFunc func(*option)
OptionFunc wraps a function that modifies option into an implementation of the Option interface.
type URLOpener ¶
type URLOpener struct {
// Options specifies the options to pass to OpenExporter.
Option option
}
URLOpener opens stdout Metric URLs like "http://localhost?allow_stdout&pretty_print&no_timestamps".
func (*URLOpener) OpenExporterURL ¶
OpenExporterURL opens a trace.Exporter based on u.