File tree Expand file tree Collapse file tree 6 files changed +25
-9
lines changed
packages/opentelemetry-types/src Expand file tree Collapse file tree 6 files changed +25
-9
lines changed Original file line number Diff line number Diff line change 1919 * DistributedContext}.
2020 */
2121export interface EntryValue {
22+ /** `String` value of the `EntryValue`. */
2223 value : string ;
24+ /**
25+ * ttl is an integer that represents number of hops an entry can
26+ * propagate.
27+ */
2328 ttl ?: EntryTtl ;
2429}
2530
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ import { SpanContext } from '../trace/span_context';
2121export interface CounterHandle {
2222 /**
2323 * Adds the given value to the current value. Values cannot be negative.
24- * @param value the value to add
24+ * @param value the value to add.
2525 */
2626 add ( value : number ) : void ;
2727}
Original file line number Diff line number Diff line change @@ -24,24 +24,30 @@ import { Link } from './link';
2424 * Options needed for span creation
2525 */
2626export interface SpanOptions {
27- /** The SpanKind of a span */
27+ /**
28+ * The SpanKind of a span
29+ * @default {@link SpanKind.INTERNAL }
30+ */
2831 kind ?: SpanKind ;
2932
3033 /** A spans attributes */
3134 attributes ?: Attributes ;
3235
33- /** Indicates that if this Span is active and recording information like events with the `AddEvent` operation and attributes using `setAttributes`. */
36+ /**
37+ * Indicates that if this Span is active and recording information like
38+ * events with the `AddEvent` operation and attributes using `setAttributes`.
39+ */
3440 isRecording ?: boolean ;
3541
3642 /** A spans links */
3743 links ?: Link [ ] ;
3844
3945 /**
40- * A parent SpanContext (or Span, for convenience) that the newly-started
46+ * A parent ` SpanContext` (or ` Span` , for convenience) that the newly-started
4147 * span will be the child of.
4248 */
4349 parent ?: Span | SpanContext ;
4450
45- /** A manually specified start time for the created Span object. */
51+ /** A manually specified start time for the created ` Span` object. */
4652 startTime ?: number ;
4753}
Original file line number Diff line number Diff line change @@ -19,7 +19,8 @@ import { SpanContext } from './span_context';
1919
2020/**
2121 * A pointer from the current {@link Span} to another span in the same trace or
22- * in a different trace.
22+ * in a different trace. Used (for example) in batching operations, where a
23+ * single batch handler processes multiple requests from different traces.
2324 */
2425export interface Link {
2526 /** The {@link SpanContext} of a linked span. */
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import { TraceState } from './trace_state';
1919
2020/**
2121 * A SpanContext represents the portion of a {@link Span} which must be
22- * serialized and propagated along side of a distributed context .
22+ * serialized and propagated along side of a { @link DistributedContext} .
2323 */
2424export interface SpanContext {
2525 /**
Original file line number Diff line number Diff line change @@ -70,9 +70,11 @@ export interface Tracer {
7070 * Spans.
7171 *
7272 * If no tracer implementation is provided, this defaults to the W3C Trace
73- * Context binary format ( {@link BinaryFormat}) . For more details see
73+ * Context binary format {@link BinaryFormat}. For more details see
7474 * <a href="https://w3c.github.io/trace-context-binary/">W3C Trace Context
7575 * binary protocol</a>.
76+ *
77+ * @returns the {@link BinaryFormat} for this implementation.
7678 */
7779 getBinaryFormat ( ) : BinaryFormat ;
7880
@@ -81,8 +83,10 @@ export interface Tracer {
8183 * Spans.
8284 *
8385 * If no tracer implementation is provided, this defaults to the W3C Trace
84- * Context HTTP text format ( {@link HttpTraceContext}) . For more details see
86+ * Context HTTP text format {@link HttpTextFormat} . For more details see
8587 * <a href="https://w3c.github.io/trace-context/">W3C Trace Context</a>.
88+ *
89+ * @returns the {@link HttpTextFormat} for this implementation.
8690 */
8791 getHttpTextFormat ( ) : HttpTextFormat ;
8892}
You can’t perform that action at this time.
0 commit comments