Source File
export.go
Belonging Package
go.opencensus.io/trace
package trace
import (
)
type Exporter interface {
ExportSpan(s *SpanData)
}
type exportersMap map[Exporter]struct{}
var (
exporterMu sync.Mutex
exporters atomic.Value
)
func ( Exporter) {
exporterMu.Lock()
:= make(exportersMap)
if , := exporters.Load().(exportersMap); {
for , := range {
[] =
}
}
[] = struct{}{}
exporters.Store()
exporterMu.Unlock()
}
func ( Exporter) {
exporterMu.Lock()
:= make(exportersMap)
if , := exporters.Load().(exportersMap); {
for , := range {
[] =
}
}
delete(, )
exporters.Store()
exporterMu.Unlock()
}
type SpanData struct {
SpanContext
ParentSpanID SpanID
SpanKind int
Name string
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |