You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: exporter.go
    path of file: ./repos/kubernetes/vendor/github.com/Microsoft/hcsshim/internal/oc
    
    the code of the file until where you have to start completion: package oc

import (
	"github.com/sirupsen/logrus"
	"go.opencensus.io/trace"
)

var _ = (trace.Exporter)(&LogrusExporter{})

// LogrusExporter is an OpenCensus `trace.Exporter` that expor
    
func (le *LogrusExporter) ExportSpan(s *trace.SpanData) {
	// Combine all span annotations with traceID, spanID, parentSpanID
	baseEntry := logrus.WithFields(logrus.Fields(s.Attributes))
	baseEntry.Data["traceID"] = s.TraceID.String()
	baseEntry.Data["spanID"] = s.SpanID.String()
	baseEntry.Data["parentSpanID"] = s.ParentSpanID.String()
	baseEntry.Data["startTime"] = s.StartTime
	baseEntry.Data["endTime"] = s.EndTime
	baseEntry.Data["duration"] = s.EndTime.Sub(s.StartTime).String()
	baseEntry.Data["name"] = s.Name
	baseEntry.Time = s.StartTime

	level := logrus.InfoLevel
	if s.Status.Code != 0 {
		level = logrus.ErrorLevel
		baseEntry.Data[logrus.ErrorKey] = s.Status.Message
	}
	baseEntry.Log(level, "Span")
}