Documentation ¶
Overview ¶
Package datasetexporter implements an exporter that sends data to DataSet.
Index ¶
Constants ¶
View Source
const ( Service = ResourceType("service") Process = ResourceType("process") )
View Source
const ServiceNameKey = "service.name"
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
NewFactory created new factory with DataSet exporters.
Types ¶
type BufferSettings ¶ added in v0.78.0
type BufferSettings struct { MaxLifetime time.Duration `mapstructure:"max_lifetime"` GroupBy []string `mapstructure:"group_by"` RetryInitialInterval time.Duration `mapstructure:"retry_initial_interval"` RetryMaxInterval time.Duration `mapstructure:"retry_max_interval"` RetryMaxElapsedTime time.Duration `mapstructure:"retry_max_elapsed_time"` }
type Config ¶
type Config struct { DatasetURL string `mapstructure:"dataset_url"` APIKey configopaque.String `mapstructure:"api_key"` BufferSettings `mapstructure:"buffer"` TracesSettings `mapstructure:"traces"` LogsSettings `mapstructure:"logs"` exporterhelper.RetrySettings `mapstructure:"retry_on_failure"` exporterhelper.QueueSettings `mapstructure:"sending_queue"` exporterhelper.TimeoutSettings `mapstructure:"timeout"` }
type DatasetExporter ¶ added in v0.78.0
type DatasetExporter struct {
// contains filtered or unexported fields
}
type ExporterConfig ¶ added in v0.78.0
type ExporterConfig struct {
// contains filtered or unexported fields
}
type LogsSettings ¶ added in v0.80.0
type LogsSettings struct { // ExportResourceInfo is optional flag to signal that the resource info is being exported to DataSet while exporting Logs. // This is especially useful when reducing DataSet billable log volume. // Default value: false. ExportResourceInfo bool `mapstructure:"export_resource_info_on_event"` // ExportScopeInfo is an optional flag that signals if scope info should be exported (when available) with each event. If scope // information is not utilized, it makes sense to disable exporting it since it will result in increased billable log volume. ExportScopeInfo bool `mapstructure:"export_scope_info_on_event"` // DecomposeComplexMessageField is an optional flag to signal that message / body of complex types (e.g. a map) should be // decomposed / deconstructed into multiple fields. This is usually done outside of the main DataSet integration on the // client side (e.g. as part of the attribute processor or similar) or on the server side (DataSet server side JSON parser // for message field) and that's why this functionality is disabled by default. DecomposeComplexMessageField bool `mapstructure:"decompose_complex_message_field"` }
type ResourceType ¶ added in v0.78.0
type ResourceType string
type TraceAndSpan ¶ added in v0.78.0
type TraceAndSpan [24]byte
func (TraceAndSpan) String ¶ added in v0.78.0
func (ts TraceAndSpan) String() string
type TracesSettings ¶ added in v0.78.0
type TracesSettings struct { }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.