span.proto 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. syntax = "proto3";
  2. package dapper.trace;
  3. import "google/protobuf/timestamp.proto";
  4. import "google/protobuf/duration.proto";
  5. option go_package = "protogen";
  6. message Tag {
  7. enum Kind {
  8. STRING = 0;
  9. INT = 1;
  10. BOOL = 2;
  11. FLOAT = 3;
  12. }
  13. string key = 1;
  14. Kind kind = 2;
  15. bytes value = 3;
  16. }
  17. message Field {
  18. string key = 1;
  19. bytes value = 2;
  20. }
  21. message Log {
  22. // Deprecated: Kind no long use
  23. enum Kind {
  24. STRING = 0;
  25. INT = 1;
  26. BOOL = 2;
  27. FLOAT = 3;
  28. }
  29. string key = 1;
  30. // Deprecated: Kind no long use
  31. Kind kind = 2;
  32. // Deprecated: Value no long use
  33. bytes value = 3;
  34. int64 timestamp = 4;
  35. repeated Field fields = 5;
  36. }
  37. // SpanRef describes causal relationship of the current span to another span (e.g. 'child-of')
  38. message SpanRef {
  39. enum RefType {
  40. CHILD_OF = 0;
  41. FOLLOWS_FROM = 1;
  42. }
  43. RefType ref_type = 1;
  44. uint64 trace_id = 2;
  45. uint64 span_id = 3;
  46. }
  47. // Span represents a named unit of work performed by a service.
  48. message Span {
  49. int32 version = 99;
  50. string service_name = 1;
  51. string operation_name = 2;
  52. // Deprecated: caller no long required
  53. string caller = 3;
  54. uint64 trace_id = 4;
  55. uint64 span_id = 5;
  56. uint64 parent_id = 6;
  57. // Deprecated: level no long required
  58. int32 level = 7;
  59. // Deprecated: use start_time instead instead of start_at
  60. int64 start_at = 8;
  61. // Deprecated: use duration instead instead of finish_at
  62. int64 finish_at = 9;
  63. float sampling_probability = 10;
  64. string env = 19;
  65. google.protobuf.Timestamp start_time = 20;
  66. google.protobuf.Duration duration = 21;
  67. repeated SpanRef references = 22;
  68. repeated Tag tags = 11;
  69. repeated Log logs = 12;
  70. }