Documentation ¶
Index ¶
- func StartExporter(registry metrics.Registry, opts ...ExporterOption) func()
- func StartExporterWithOptions(registry metrics.Registry, options *Options) func()
- type ExporterOption
- func WithAppGuid(guid string) ExporterOption
- func WithFrequency(f time.Duration) ExporterOption
- func WithInstanceId(guid string) ExporterOption
- func WithInstanceIndex(index string) ExporterOption
- func WithServiceName(n string) ExporterOption
- func WithSkipSSL(skip bool) ExporterOption
- func WithTimeUnit(u time.Duration) ExporterOption
- func WithToken(token string) ExporterOption
- func WithURL(URL string) ExporterOption
- type HttpClient
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartExporter ¶
func StartExporter(registry metrics.Registry, opts ...ExporterOption) func()
StartExporter starts a new exporter on the current go-routine and will never exit.
func StartExporterWithOptions ¶
func StartExporterWithOptions(registry metrics.Registry, options *Options) func()
StartExporterWithOptions starts a new exporter with provided options on the current go-routine and will never exit.
Types ¶
type ExporterOption ¶
type ExporterOption func(*Options)
ExporterOption is used to configure an exporter.
func WithFrequency ¶
func WithFrequency(f time.Duration) ExporterOption
WithFrequency sets the frequency. The default is a minute.
func WithInstanceId ¶
func WithInstanceId(guid string) ExporterOption
WithInstanceId sets the instance ID. The default is read from the environment variable INSTANCE_GUID
func WithInstanceIndex ¶
func WithInstanceIndex(index string) ExporterOption
WithInstanceIndex sets the instance index. The default is read from the environment variable INSTANCE_INDEX.
func WithServiceName ¶
func WithServiceName(n string) ExporterOption
WithServiceName sets the ServiceName.
func WithSkipSSL ¶
func WithSkipSSL(skip bool) ExporterOption
WithSkipSSL sets the InsecureSkipVerify flag on the HTTP transport.
func WithTimeUnit ¶
func WithTimeUnit(u time.Duration) ExporterOption
WithTimeUnit sets the TimeUnit.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter
|
This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter |