add function to get an sdktrace.SpanExporter instance

main v0.1.0-rc3
William Perron 10 months ago
parent 4f95e09116
commit ab74c7829a
Signed by: wperron
GPG Key ID: BFDB4EF72D73C5F2

@ -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)
}

Loading…
Cancel
Save