span_kind.go 1.5 KB

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