File tree 8 files changed +26
-16
lines changed
packages/opentelemetry-types
8 files changed +26
-16
lines changed Original file line number Diff line number Diff line change @@ -66,3 +66,6 @@ yarn.lock
66
66
package-lock.json
67
67
packages /** /yarn.lock
68
68
packages /** /package-lock.json
69
+
70
+ # docs files
71
+ docs
Original file line number Diff line number Diff line change @@ -51,3 +51,4 @@ The `opentelemetry-js` project is written in TypeScript.
51
51
- ` yarn bootstrap ` or ` npm run bootstrap ` Bootstrap the packages in the current Lerna repo. Installs all of their dependencies and links any cross-dependencies.
52
52
- ` yarn test ` or ` npm test ` tests code the same way that our CI will test it.
53
53
- ` yarn fix ` or ` npm run fix ` lint (and maybe fix) any changes.
54
+ - ` yarn docs ` or ` npm run docs ` to generate API documentation.
Original file line number Diff line number Diff line change 12
12
"bootstrap" : " lerna bootstrap" ,
13
13
"bump" : " lerna publish" ,
14
14
"codecov" : " lerna run codecov" ,
15
- "check" : " lerna run check"
15
+ "check" : " lerna run check" ,
16
+ "docs" : " lerna run docs"
16
17
},
17
18
"repository" : " open-telemetry/opentelemetry-js" ,
18
19
"keywords" : [
Original file line number Diff line number Diff line change 10
10
"check" : " gts check" ,
11
11
"compile" : " tsc -p ." ,
12
12
"fix" : " gts fix" ,
13
- "test" : " npm run compile && npm run check"
13
+ "test" : " npm run compile && npm run check" ,
14
+ "docs" : " typedoc --tsconfig tsconfig.json"
14
15
},
15
16
"keywords" : [
16
17
" opentelemetry" ,
38
39
},
39
40
"devDependencies" : {
40
41
"gts" : " ^1.0.0" ,
42
+ "typedoc" : " ^0.14.2" ,
41
43
"typescript" : " ^3.4.5"
42
44
}
43
45
}
Original file line number Diff line number Diff line change @@ -18,12 +18,12 @@ import { Attributes } from './attributes';
18
18
import { SpanContext } from './span_context' ;
19
19
20
20
/**
21
- * A pointer from the current span to another span in the same trace or in a
22
- * different trace.
21
+ * A pointer from the current { @link Span} to another span in the same trace or
22
+ * in a different trace.
23
23
*/
24
24
export interface Link {
25
- /** The SpanContext of a linked span. */
25
+ /** The { @link SpanContext} of a linked span. */
26
26
spanContext : SpanContext ;
27
- /** A set of attributes on the link. */
27
+ /** A set of { @link Attributes} on the link. */
28
28
attributes ?: Attributes ;
29
29
}
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ import { Attributes } from './attributes';
27
27
*/
28
28
export interface Span {
29
29
/**
30
- * Returns the SpanContext object associated with this Span.
30
+ * Returns the { @link SpanContext} object associated with this Span.
31
31
*
32
32
* @returns the SpanContext object associated with this Span.
33
33
*/
@@ -62,7 +62,7 @@ export interface Span {
62
62
* @param [attributes] the attributes that will be added; these are
63
63
* associated with this event.
64
64
*/
65
- addEvent ( name : string , attributes ?: { [ key : string ] : unknown } ) : this;
65
+ addEvent ( name : string , attributes ?: Attributes ) : this;
66
66
67
67
/**
68
68
* Adds a link to the Span.
@@ -71,14 +71,11 @@ export interface Span {
71
71
* @param [attributes] the attributes that will be added; these are
72
72
* associated with this link.
73
73
*/
74
- addLink (
75
- spanContext : SpanContext ,
76
- attributes ?: { [ key : string ] : unknown }
77
- ) : this;
74
+ addLink ( spanContext : SpanContext , attributes ?: Attributes ) : this;
78
75
79
76
/**
80
77
* Sets a status to the span. If used, this will override the default Span
81
- * status. Default is 'OK' .
78
+ * status. Default is { @link CanonicalCode.OK} .
82
79
*
83
80
* @param status the Status to set.
84
81
*/
Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ import { TraceState } from './trace_state';
18
18
import { TraceOptions } from './trace_options' ;
19
19
20
20
/**
21
- * A SpanContext represents the portion of a Span which must be serialized and
22
- * propagated along side of a distributed context.
21
+ * A SpanContext represents the portion of a { @link Span} which must be
22
+ * serialized and propagated along side of a distributed context.
23
23
*/
24
24
export interface SpanContext {
25
25
/**
Original file line number Diff line number Diff line change 6
6
},
7
7
"include" : [
8
8
" src/**/*.ts"
9
- ]
9
+ ],
10
+ "typedocOptions" : {
11
+ "name" : " OpenTelemetry Documentation" ,
12
+ "out" : " docs/out" ,
13
+ "mode" : " file" ,
14
+ "hideGenerator" : true
15
+ }
10
16
}
You can’t perform that action at this time.
0 commit comments