Cherry pick v1.7 into master
This commit is contained in:
parent
a09dfa3ce1
commit
b6498cdcbc
73 changed files with 6573 additions and 186 deletions
55
vendor/gopkg.in/DataDog/dd-trace-go.v1/ddtrace/ext/app_types.go
generated
vendored
55
vendor/gopkg.in/DataDog/dd-trace-go.v1/ddtrace/ext/app_types.go
generated
vendored
|
@ -1,19 +1,70 @@
|
|||
package ext // import "gopkg.in/DataDog/dd-trace-go.v1/ddtrace/ext"
|
||||
|
||||
// App types determine how to categorize a trace in the Datadog application.
|
||||
// For more fine-grained behaviour, use the SpanType* constants.
|
||||
const (
|
||||
// DEPRECATED: Use SpanTypeWeb
|
||||
// AppTypeWeb specifies the Web span type and can be used as a tag value
|
||||
// for a span's SpanType tag.
|
||||
AppTypeWeb = "web"
|
||||
|
||||
// AppTypeDB specifies the DB span type and can be used as a tag value
|
||||
// for a span's SpanType tag.
|
||||
// for a span's SpanType tag. If possible, use one of the SpanType*
|
||||
// constants for a more accurate indication.
|
||||
AppTypeDB = "db"
|
||||
|
||||
// AppTypeCache specifies the Cache span type and can be used as a tag value
|
||||
// for a span's SpanType tag.
|
||||
// for a span's SpanType tag. If possible, consider using SpanTypeRedis or
|
||||
// SpanTypeMemcached.
|
||||
AppTypeCache = "cache"
|
||||
|
||||
// AppTypeRPC specifies the RPC span type and can be used as a tag value
|
||||
// for a span's SpanType tag.
|
||||
AppTypeRPC = "rpc"
|
||||
)
|
||||
|
||||
// Span types have similar behaviour to "app types" and help categorize
|
||||
// traces in the Datadog application. They can also help fine grain agent
|
||||
// level bahviours such as obfuscation and quantization, when these are
|
||||
// enabled in the agent's configuration.
|
||||
const (
|
||||
// SpanTypeWeb marks a span as an HTTP server request.
|
||||
SpanTypeWeb = "web"
|
||||
|
||||
// SpanTypeHTTP marks a span as an HTTP client request.
|
||||
SpanTypeHTTP = "http"
|
||||
|
||||
// SpanTypeSQL marks a span as an SQL operation. These spans may
|
||||
// have an "sql.command" tag.
|
||||
SpanTypeSQL = "sql"
|
||||
|
||||
// SpanTypeCassandra marks a span as a Cassandra operation. These
|
||||
// spans may have an "sql.command" tag.
|
||||
SpanTypeCassandra = "cassandra"
|
||||
|
||||
// SpanTypeRedis marks a span as a Redis operation. These spans may
|
||||
// also have a "redis.raw_command" tag.
|
||||
SpanTypeRedis = "redis"
|
||||
|
||||
// SpanTypeMemcached marks a span as a memcached operation.
|
||||
SpanTypeMemcached = "memcached"
|
||||
|
||||
// SpanTypeMongoDB marks a span as a MongoDB operation.
|
||||
SpanTypeMongoDB = "mongodb"
|
||||
|
||||
// SpanTypeElasticSearch marks a span as an ElasticSearch operation.
|
||||
// These spans may also have an "elasticsearch.body" tag.
|
||||
SpanTypeElasticSearch = "elasticsearch"
|
||||
|
||||
// SpanTypeLevelDB marks a span as a leveldb operation
|
||||
SpanTypeLevelDB = "leveldb"
|
||||
|
||||
// SpanTypeDNS marks a span as a DNS operation.
|
||||
SpanTypeDNS = "dns"
|
||||
|
||||
// SpanTypeMessageConsumer marks a span as a queue operation
|
||||
SpanTypeMessageConsumer = "queue"
|
||||
|
||||
// SpanTypeMessageProducer marks a span as a queue operation.
|
||||
SpanTypeMessageProducer = "queue"
|
||||
)
|
||||
|
|
16
vendor/gopkg.in/DataDog/dd-trace-go.v1/ddtrace/ext/db.go
generated
vendored
Normal file
16
vendor/gopkg.in/DataDog/dd-trace-go.v1/ddtrace/ext/db.go
generated
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
package ext
|
||||
|
||||
const (
|
||||
// DBApplication indicates the application using the database.
|
||||
DBApplication = "db.application"
|
||||
// DBName indicates the database name.
|
||||
DBName = "db.name"
|
||||
// DBType indicates the type of Database.
|
||||
DBType = "db.type"
|
||||
// DBInstance indicates the instance name of Database.
|
||||
DBInstance = "db.instance"
|
||||
// DBUser indicates the user name of Database, e.g. "readonly_user" or "reporting_user".
|
||||
DBUser = "db.user"
|
||||
// DBStatement records a database statement for the given database type.
|
||||
DBStatement = "db.statement"
|
||||
)
|
14
vendor/gopkg.in/DataDog/dd-trace-go.v1/ddtrace/ext/peer.go
generated
vendored
Normal file
14
vendor/gopkg.in/DataDog/dd-trace-go.v1/ddtrace/ext/peer.go
generated
vendored
Normal file
|
@ -0,0 +1,14 @@
|
|||
package ext
|
||||
|
||||
const (
|
||||
// PeerHostIPV4 records IPv4 host address of the peer.
|
||||
PeerHostIPV4 = "peer.ipv4"
|
||||
// PeerHostIPV6 records the IPv6 host address of the peer.
|
||||
PeerHostIPV6 = "peer.ipv6"
|
||||
// PeerService records the service name of the peer service.
|
||||
PeerService = "peer.service"
|
||||
// PeerHostname records the host name of the peer.
|
||||
PeerHostname = "peer.hostname"
|
||||
// PeerPort records the port number of the peer.
|
||||
PeerPort = "peer.port"
|
||||
)
|
7
vendor/gopkg.in/DataDog/dd-trace-go.v1/ddtrace/ext/tags.go
generated
vendored
7
vendor/gopkg.in/DataDog/dd-trace-go.v1/ddtrace/ext/tags.go
generated
vendored
|
@ -27,6 +27,10 @@ const (
|
|||
// HTTPURL sets the HTTP URL for a span.
|
||||
HTTPURL = "http.url"
|
||||
|
||||
// TODO: In the next major version, suffix these constants (SpanType, etc)
|
||||
// with "*Key" (SpanTypeKey, etc) to more easily differentiate between
|
||||
// constants representing tag values and constants representing keys.
|
||||
|
||||
// SpanType defines the Span type (web, db, cache).
|
||||
SpanType = "span.type"
|
||||
|
||||
|
@ -47,4 +51,7 @@ const (
|
|||
|
||||
// ErrorStack specifies the stack dump.
|
||||
ErrorStack = "error.stack"
|
||||
|
||||
// Environment specifies the environment to use with a trace.
|
||||
Environment = "env"
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue