Source File
config.go
Belonging Package
go.opencensus.io/trace
package trace
import (
)
MaxLinksPerSpan int
}
var configWriteMu sync.Mutex
DefaultMaxLinksPerSpan = 32
)
func ( Config) {
configWriteMu.Lock()
defer configWriteMu.Unlock()
:= *config.Load().(*Config)
if .DefaultSampler != nil {
.DefaultSampler = .DefaultSampler
}
if .IDGenerator != nil {
.IDGenerator = .IDGenerator
}
if .MaxAnnotationEventsPerSpan > 0 {
.MaxAnnotationEventsPerSpan = .MaxAnnotationEventsPerSpan
}
if .MaxMessageEventsPerSpan > 0 {
.MaxMessageEventsPerSpan = .MaxMessageEventsPerSpan
}
if .MaxAttributesPerSpan > 0 {
.MaxAttributesPerSpan = .MaxAttributesPerSpan
}
if .MaxLinksPerSpan > 0 {
.MaxLinksPerSpan = .MaxLinksPerSpan
}
config.Store(&)
![]() |
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. |