Documentation
¶
Index ¶
- func New(cfg Config) (plugins.Wrapper, error)
- type Config
- type Connector
- func (c Connector) Discovery(ctx context.Context) ([]model.Table, error)
- func (c Connector) InferQuery(ctx context.Context, query string) ([]model.ColumnSchema, error)
- func (c Connector) Ping(ctx context.Context) error
- func (c Connector) Query(ctx context.Context, endpoint model.Endpoint, params map[string]any) ([]map[string]any, error)
- func (c Connector) Sample(ctx context.Context, table model.Table) ([]map[string]any, error)
- type Plugin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
// ExporterType defines the type of exporter to use ("oltp" or "stdout")
ExporterType string `yaml:"exporter_type"`
// ServiceName is the name of your service for tracing
ServiceName string `yaml:"service_name"`
// ServiceVersion is the version of your service
ServiceVersion string `yaml:"service_version"`
// Environment specifies deployment environment (e.g., "prod", "staging")
Environment string `yaml:"environment"`
// Endpoint is the OTLP endpoint URL (for oltp exporter)
Endpoint string `yaml:"endpoint"`
// Insecure determines if TLS should be disabled
Insecure bool `yaml:"tls_mode"`
// SpanMaxQueueSize is the maximum queue size for spans
SpanMaxQueueSize int `yaml:"span_max_queue_size"`
// SpanMaxExportBatch is the maximum batch size for span export
SpanMaxExportBatch int `yaml:"span_max_export_batch"`
// BatchTimeout is the timeout for batching spans
BatchTimeout time.Duration `yaml:"batch_timeout"`
// ResourceAttributes are additional attributes to add to traces
ResourceAttributes map[string]string `yaml:"resource_attributes"`
}
Config represents OpenTelemetry configuration
func (Config) WithDefaults ¶
func (c Config) WithDefaults()
Click to show internal directories.
Click to hide internal directories.