diff --git a/pkg/kubehound/storage/graphdb/janusgraph_provider.go b/pkg/kubehound/storage/graphdb/janusgraph_provider.go index efea8bef..8a4d04dd 100644 --- a/pkg/kubehound/storage/graphdb/janusgraph_provider.go +++ b/pkg/kubehound/storage/graphdb/janusgraph_provider.go @@ -149,7 +149,8 @@ func (jgp *JanusGraphProvider) Close(ctx context.Context) error { } // Raw returns a handle to the underlying provider to allow implementation specific operations e.g graph queries. -func (jgp *JanusGraphProvider) Clean(ctx context.Context, cluster string) (err error) { +func (jgp *JanusGraphProvider) Clean(ctx context.Context, cluster string) error { + var err error span, ctx := span.SpanRunFromContext(ctx, span.IngestorClean) defer func() { span.Finish(tracer.WithError(err)) }() l := log.Trace(ctx)