|
|
@ -11,6 +11,8 @@ import (
|
|
|
|
"go.opentelemetry.io/collector/consumer"
|
|
|
|
"go.opentelemetry.io/collector/consumer"
|
|
|
|
"go.opentelemetry.io/collector/exporter"
|
|
|
|
"go.opentelemetry.io/collector/exporter"
|
|
|
|
"go.opentelemetry.io/collector/exporter/exporterhelper"
|
|
|
|
"go.opentelemetry.io/collector/exporter/exporterhelper"
|
|
|
|
|
|
|
|
sdktrace "go.opentelemetry.io/otel/sdk/trace"
|
|
|
|
|
|
|
|
|
|
|
|
"go.wperron.io/sqliteexporter/internal/metadata"
|
|
|
|
"go.wperron.io/sqliteexporter/internal/metadata"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
@ -73,3 +75,7 @@ func newSqliteExporter(cfg *Config) (*sqliteExporter, error) {
|
|
|
|
db: db,
|
|
|
|
db: db,
|
|
|
|
}, nil
|
|
|
|
}, nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func NewSqliteSDKTraceExporter(cfg *Config) (sdktrace.SpanExporter, error) {
|
|
|
|
|
|
|
|
return newSqliteExporter(cfg)
|
|
|
|
|
|
|
|
}
|
|
|
|