From ab74c7829a36591bea96a7754bded1e2749c2368 Mon Sep 17 00:00:00 2001 From: William Perron Date: Tue, 30 Jan 2024 08:55:54 -0500 Subject: [PATCH] add function to get an sdktrace.SpanExporter instance --- factory.go | 6 ++++++ 1 file changed, 6 insertions(+) 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) +}