github.com/pinpoint-apm/pinpoint-go-agent@v1.4.1-0.20240110120318-a50c2eb18c8c/protobuf/Span.proto (about)

     1  syntax = "proto3";
     2  
     3  import "v1/Annotation.proto";
     4  
     5  
     6  option java_multiple_files = true;
     7  option java_package = "com.navercorp.pinpoint.grpc.trace";
     8  option java_outer_classname = "SpanProto";
     9  option go_package = "/v1";
    10  
    11  package v1;
    12  
    13  message PSpanMessage {
    14      oneof field {
    15          PSpan span = 1;
    16          PSpanChunk spanChunk = 2;
    17      }
    18  }
    19  
    20  message PSpan {
    21      int32 version = 1;
    22  
    23      PTransactionId transactionId = 2;
    24  
    25      sfixed64 spanId = 3 [jstype = JS_STRING];
    26      sfixed64 parentSpanId = 4 [jstype = JS_STRING];
    27  
    28      // span event's startTimestamp
    29      int64 startTime = 5;
    30      int32 elapsed = 6;
    31      int32 apiId = 7;
    32  
    33      int32 serviceType = 8;
    34  
    35      PAcceptEvent acceptEvent = 9;
    36  
    37      repeated PAnnotation annotation = 10;
    38  
    39      int32 flag = 11;
    40      sint32 err = 12;
    41  
    42      repeated PSpanEvent spanEvent = 13;
    43  
    44      PIntStringValue exceptionInfo = 14;
    45  
    46      int32 applicationServiceType = 15;
    47      int32 loggingTransactionInfo = 16;
    48  }
    49  
    50  message PTransactionId {
    51      // identical to agentId if null
    52      string agentId = 1; //nullable
    53      int64 agentStartTime = 2 [jstype = JS_STRING];
    54      int64 sequence = 3 [jstype = JS_STRING];
    55  }
    56  
    57  message PAcceptEvent {
    58      string rpc = 1;
    59      string endPoint = 2;
    60      string remoteAddr = 3;
    61      PParentInfo parentInfo = 4;
    62  }
    63  
    64  message PParentInfo {
    65      string parentApplicationName = 1;
    66      int32 parentApplicationType = 2;
    67      string acceptorHost = 3;
    68  }
    69  
    70  message PLocalAsyncId {
    71      int32 asyncId = 1;
    72      int32 sequence = 2;
    73  }
    74  
    75  
    76  message PSpanEvent {
    77      int32 sequence = 1;
    78      int32 depth = 2;
    79  
    80      int32 startElapsed = 3;
    81      int32 endElapsed = 4;
    82  
    83      sint32 serviceType = 5;
    84  
    85      repeated PAnnotation annotation = 6;
    86  
    87      sint32 apiId = 10;
    88      PIntStringValue exceptionInfo = 11;
    89  
    90      PNextEvent nextEvent = 12;
    91      int32 asyncEvent = 13;
    92  }
    93  
    94  message PNextEvent {
    95      oneof field {
    96          PMessageEvent messageEvent = 1;
    97      }
    98  }
    99  
   100  message PMessageEvent {
   101      sfixed64 nextSpanId = 1;
   102      string endPoint = 2;
   103      string destinationId = 3;
   104  }
   105  
   106  message PSpanChunk {
   107      int32 version = 1;
   108  
   109      PTransactionId transactionId = 2;
   110  
   111      sfixed64 spanId = 3 [jstype = JS_STRING];
   112  
   113      string endPoint = 4;
   114  
   115      repeated PSpanEvent spanEvent = 5;
   116  
   117      int32 applicationServiceType = 6;
   118  
   119      int64 keyTime = 7;
   120  
   121      PLocalAsyncId localAsyncId = 8;
   122  }
   123  
   124  // 1.6.x- : version = 0;
   125  // 1.7.x+ : version = 1;
   126  //const i8 TRACE_V1 = 0;
   127  //const i8 TRACE_V2 = 1;
   128  //
   129  
   130  
   131  message PResult {
   132      bool success = 1;
   133      string message = 2;
   134  }
   135  
   136  message PSqlMetaData {
   137      int32 sqlId = 1;
   138      string sql = 2;
   139  }
   140  
   141  message PSqlUidMetaData {
   142      bytes sqlUid = 1;
   143      string sql = 2;
   144  }
   145  
   146  message PApiMetaData {
   147      int32 apiId = 1;
   148      string apiInfo = 2;
   149      int32 line = 3;
   150      int32 type = 4;
   151      string location = 5;
   152  }
   153  
   154  message PStringMetaData {
   155      int32 stringId = 1;
   156      string stringValue = 2;
   157  }
   158  
   159  message PExceptionMetaData {
   160      repeated PException exceptions = 1;
   161      PTransactionId transactionId = 2;
   162      sfixed64 spanId = 3 [jstype = JS_STRING];
   163      string uriTemplate = 4;
   164  }
   165  
   166  message PException {
   167      string exceptionClassName = 1;
   168      string exceptionMessage = 2;
   169      int64 startTime = 3;
   170      int64 exceptionId = 4;
   171      int32 exceptionDepth = 5;
   172  
   173      repeated PStackTraceElement stackTraceElement = 6;
   174  }
   175  
   176  message PStackTraceElement {
   177      string className = 1;
   178      string fileName = 2;
   179      int32 lineNumber = 3;
   180      string methodName = 4;
   181  }