Skip to content

Commit

Permalink
specify traceId and spanId format
Browse files Browse the repository at this point in the history
  • Loading branch information
mayurkale22 committed Jun 17, 2019
1 parent 52e53ab commit 424c9fd
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions packages/opentelemetry-types/src/trace/span_context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,18 @@
* propagated along side of a distributed context.
*/
export interface SpanContext {
/** The ID of the trace that this span belongs to. */
/**
* The ID of the trace that this span belongs to. It is worldwide unique
* with practically sufficient probability by being made as 16 randomly
* generated bytes, encoded as a 32 lowercase hex characters corresponding to
* 128 bits.
*/
traceId: string;
/** The ID of the Span. */
/**
* The ID of the Span. It is globally unique with practically sufficient
* probability by being made as 8 randomly generated bytes, encoded as a 16
* lowercase hex characters corresponding to 64 bits.
*/
spanId: string;
/**
* Trace options to propagate.
Expand Down

0 comments on commit 424c9fd

Please sign in to comment.