Skip to content

Commit

Permalink
Update the initial event and span db tables
Browse files Browse the repository at this point in the history
  • Loading branch information
goetzrrGit committed Jul 8, 2024
1 parent fc328c0 commit b133efa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ create table merlin.event (

value jsonb,
topic_index integer not null,
span_index integer not null,

constraint event_natural_key
primary key (dataset_id, real_time, transaction_index, causal_time)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@ create table merlin.span (
duration interval null,
type text not null,
attributes jsonb not null,
span_index integer not null,

constraint span_synthetic_key
primary key (dataset_id, id)
primary key (dataset_id, id),
constraint dataset_span_index_unique
unique (dataset_id, span_index)
)
partition by list (dataset_id);

Expand All @@ -32,6 +35,8 @@ comment on column merlin.span.type is e''
'The type of span, implying the shape of its attributes.';
comment on column merlin.span.attributes is e''
'A set of named values annotating this span as a whole.';
comment on column merlin.span.span_index is e''
'The true simulation span index';

create function merlin.span_integrity_function()
returns trigger
Expand Down

0 comments on commit b133efa

Please sign in to comment.