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