コード例 #1
0
ファイル: tags.go プロジェクト: opentracing/opentracing-go
// Add adds a bool tag to the `span`
func (tag boolTagName) Set(span opentracing.Span, value bool) {
	span.SetTag(string(tag), value)
}
コード例 #2
0
ファイル: tags.go プロジェクト: opentracing/opentracing-go
// Set adds a uint16 tag to the `span`
func (tag uint16TagName) Set(span opentracing.Span, value uint16) {
	span.SetTag(string(tag), value)
}
コード例 #3
0
ファイル: tags.go プロジェクト: opentracing/opentracing-go
// Set adds a string tag to the `span`
func (tag stringTagName) Set(span opentracing.Span, value string) {
	span.SetTag(string(tag), value)
}
コード例 #4
0
ファイル: tags.go プロジェクト: opentracing/opentracing-go
// Set adds a string tag to the `span`
func (tag spanKindTagName) Set(span opentracing.Span, value SpanKindEnum) {
	span.SetTag(string(tag), value)
}
コード例 #5
0
ファイル: tags.go プロジェクト: bg451/opentracing-go
// Add adds a uint32 tag to the `span`
func (tag uint32Tag) Add(span opentracing.Span, value uint32) {
	span.SetTag(string(tag), value)
}
コード例 #6
0
ファイル: main.go プロジェクト: bg451/appdash
// addHeaderTags adds header key:value pairs to a span as a tag with the prefix
// "Request.Header.*"
func addHeaderTags(span opentracing.Span, h http.Header) {
	for k, v := range h {
		span.SetTag(headerTagPrefix+k, strings.Join(v, ", "))
	}
}