forked from DataDog/dd-trace-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
span_kind.go
32 lines (25 loc) · 1.52 KB
/
span_kind.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Unless explicitly stated otherwise all files in this repository are licensed
// under the Apache License Version 2.0.
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2016 Datadog, Inc.
package ext
// span_kind values are set per span following the opentelemetry standard
// falls under the values of client, server, producer, consumer, and internal
const (
// SpanKindServer indicates that the span covers server-side handling of a synchronous RPC or other remote request
// This span should not have any local parents but can have other distributed parents
SpanKindServer = "server"
// SpanKindClient indicates that the span describes a request to some remote service.
// This span should not have any local children but can have other distributed children
SpanKindClient = "client"
// SpanKindConsumer indicates that the span describes the initiators of an asynchronous request.
// This span should not have any local parents but can have other distributed parents
SpanKindConsumer = "consumer"
// SpanKindProducer indicates that the span describes a child of an asynchronous producer request.
// This span should not have any local children but can have other distributed children
SpanKindProducer = "producer"
// SpanKindInternal indicates that the span represents an internal operation within an application,
// as opposed to an operations with remote parents or children.
// This is the default value and not explicitly set to save memory
SpanKindInternal = "internal"
)