Added integration support for DataDog APM Tracing
This commit is contained in:
parent
ba8c9295ac
commit
3192307d59
61 changed files with 9999 additions and 5 deletions
24
vendor/gopkg.in/DataDog/dd-trace-go.v1/ddtrace/opentracer/option.go
generated
vendored
Normal file
24
vendor/gopkg.in/DataDog/dd-trace-go.v1/ddtrace/opentracer/option.go
generated
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
package opentracer // import "gopkg.in/DataDog/dd-trace-go.v1/ddtrace/opentracer"
|
||||
|
||||
import (
|
||||
"gopkg.in/DataDog/dd-trace-go.v1/ddtrace/ext"
|
||||
|
||||
opentracing "github.com/opentracing/opentracing-go"
|
||||
)
|
||||
|
||||
// ServiceName can be used with opentracing.StartSpan to set the
|
||||
// service name of a span.
|
||||
func ServiceName(name string) opentracing.StartSpanOption {
|
||||
return opentracing.Tag{Key: ext.ServiceName, Value: name}
|
||||
}
|
||||
|
||||
// ResourceName can be used with opentracing.StartSpan to set the
|
||||
// resource name of a span.
|
||||
func ResourceName(name string) opentracing.StartSpanOption {
|
||||
return opentracing.Tag{Key: ext.ResourceName, Value: name}
|
||||
}
|
||||
|
||||
// SpanType can be used with opentracing.StartSpan to set the type of a span.
|
||||
func SpanType(name string) opentracing.StartSpanOption {
|
||||
return opentracing.Tag{Key: ext.SpanType, Value: name}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue