Skip to content

Clean up Span format #60

@aryanjassal

Description

@aryanjassal

Specification

As per some comments on #15, some design changes have been proposed and must be implemented.

Additional context

Example new type (instead of a single unified one):

type SpanId = IdSortableEncoded;

type SpanStart = {
  type: 'Start';
  id: SpanId;
  parentId?: SpanId;
};

type SpanStop = {
  type = 'Stop';
  id: SpanId;
  startId: SpanId;
  parentId?: SpanId;
};

Tasks

  1. Change the terminology to start and stop or begin and end instead of start and end.
  2. Need to incorporate the nodeId into the IdSortable
  3. The parentId may or may not exist for both start and stop, and that means there's a possibility of a spans in one location and then fading out and then fading into another location

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions