SegmentNotFoundException

Format

SegmentNotFoundException
expected
Segment:

  • span[PARENT_SPAN_ID, SPAN_ID] OPERATION_NAME_A
  • span[PARENT_SPAN_ID, SPAN_ID] OPERATION_NAME_B
  • ......

actual:
Segment[SEGMENT_ID_A] validate failed:
expected: span[PARENT_SPAN_ID, SPAN_ID] OPERATION_NAME
actual: span[PARENT_SPAN_ID, SPAN_ID] OPERATION_NAME
reason: [SPAN_FIELD] expected=>{EXPECTED_VALUE}, actual=>{ACTUAL_VALUE}

Segment[SEGMENT_ID_B] validate failed:
expected: span[PARENT_SPAN_ID, SPAN_ID] OPERATION_NAME
actual: span[PARENT_SPAN_ID, SPAN_ID] OPERATION_NAME
reason: [SPAN_FIELD] expected=>{EXPECTED_VALUE}, actual=>{ACTUAL_VALUE}

......

NOTE: The validate tool validates all similar segment similar to what you expect in the actual data file. The rule that the validate tool to check if the segment similar to what you expect is the span size equals.

Cause

The SegmentNotFoundException caused by the segment what you expect cannot found in the actual data file.

Check Points

  1. Check if the span sequence of a segment is right
  2. Check if the field value of the span is right