Skip to content

Commit

Permalink
Add database columns to jobs for W3C trace context (#1800)
Browse files Browse the repository at this point in the history
  • Loading branch information
divergentdave authored Aug 25, 2023
1 parent 2fbac33 commit 03dbd7e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions db/00000000000001_initial_schema.up.sql
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ CREATE TABLE aggregation_jobs(
round INTEGER NOT NULL, -- current round of the VDAF preparation protocol
last_continue_request_hash BYTEA, -- SHA-256 hash of the most recently received AggregationJobContinueReq
-- (helper only and only after the first round of the job)
trace_context JSONB, -- distributed tracing metadata

lease_expiry TIMESTAMP NOT NULL DEFAULT TIMESTAMP '-infinity', -- when lease on this aggregation job expires; -infinity implies no current lease
lease_token BYTEA, -- a value identifying the current leaseholder; NULL implies no current lease
Expand Down Expand Up @@ -286,6 +287,7 @@ CREATE TABLE collection_jobs(
report_count BIGINT, -- the number of reports included in this collection job (only if in state FINISHED)
helper_aggregate_share BYTEA, -- the helper's encrypted aggregate share (HpkeCiphertext, only if in state FINISHED)
leader_aggregate_share BYTEA, -- the leader's unencrypted aggregate share (opaque VDAF message, only if in state FINISHED)
trace_context JSONB, -- distributed tracing metadata

lease_expiry TIMESTAMP NOT NULL DEFAULT TIMESTAMP '-infinity', -- when lease on this collection job expires; -infinity implies no current lease
lease_token BYTEA, -- a value identifying the current leaseholder; NULL implies no current lease
Expand Down

0 comments on commit 03dbd7e

Please sign in to comment.