Skip to content
This repository was archived by the owner on Nov 10, 2022. It is now read-only.

Commit 633dbde

Browse files
authored
chore: add markdown link check (#141)
1 parent b5fd0ed commit 633dbde

File tree

4 files changed

+8
-13
lines changed

4 files changed

+8
-13
lines changed

README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@
3232
# OpenTelemetry API for JavaScript
3333

3434
[![NPM Published Version][npm-img]][npm-url]
35-
[![dependencies][dependencies-image]][dependencies-url]
36-
[![devDependencies][devDependencies-image]][devDependencies-url]
3735

3836
This package provides everything needed to interact with the OpenTelemetry API, including all TypeScript interfaces, enums, and no-op implementations. It is intended for use both on the server and in the browser.
3937

@@ -136,10 +134,6 @@ Apache 2.0 - See [LICENSE][license-url] for more information.
136134
[discussions-url]: https://github.com/open-telemetry/opentelemetry-js/discussions
137135
[license-url]: https://github.com/open-telemetry/opentelemetry-js-api/blob/main/LICENSE
138136
[license-image]: https://img.shields.io/badge/license-Apache_2.0-green.svg?style=flat
139-
[dependencies-image]: https://status.david-dm.org/gh/open-telemetry/opentelemetry-js-api.svg
140-
[dependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-api
141-
[devDependencies-image]: https://status.david-dm.org/gh/open-telemetry/opentelemetry-js-api.svg?type=dev
142-
[devDependencies-url]: https://david-dm.org/open-telemetry/opentelemetry-js-api?type=dev
143137
[npm-url]: https://www.npmjs.com/package/@opentelemetry/api
144138
[npm-img]: https://badge.fury.io/js/%40opentelemetry%2Fapi.svg
145139
[docs-tracing]: https://github.com/open-telemetry/opentelemetry-js-api/blob/main/docs/tracing.md

docs/tracing.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ const tracer = trace.getTracer("my-application", "0.1.0");
3333

3434
## Starting and Ending a Span
3535

36-
In OpenTelemetry, all _traces_ are composed of [`Spans`](https://open-telemetry.github.io/opentelemetry-js/interfaces/span.html). A span describes a single operation with a start time and and end time like a database request, outgoing remote request, or a function invocation. These spans are linked together by parent-child relationships to form a tree. The resultant tree is your trace, and the root of the tree is commonly called the _root span_.
36+
In OpenTelemetry, all _traces_ are composed of [`Spans`](https://open-telemetry.github.io/opentelemetry-js-api/interfaces/span.html). A span describes a single operation with a start time and and end time like a database request, outgoing remote request, or a function invocation. These spans are linked together by parent-child relationships to form a tree. The resultant tree is your trace, and the root of the tree is commonly called the _root span_.
3737

38-
You can create a span by calling [`Tracer#startSpan`](https://open-telemetry.github.io/opentelemetry-js/interfaces/tracer.html#startspan). The only required argument to `startSpan` is the _span name_, which should describe the operation being performed with low cardinality.
38+
You can create a span by calling [`Tracer#startSpan`](https://open-telemetry.github.io/opentelemetry-js-api/interfaces/tracer.html#startspan). The only required argument to `startSpan` is the _span name_, which should describe the operation being performed with low cardinality.
3939

4040
```typescript
4141
const span = tracer.startSpan("my-span-name");
@@ -102,18 +102,18 @@ async function onGet(request, response) {
102102

103103
// Create a new context from the current context which has the span "active"
104104
const ctx = trace.setSpan(context.active(), span);
105-
105+
106106
// Call getUser with the newly created context
107-
//
107+
//
108108
// context.with calls a function with an associated "active" context. Within
109109
// the function, calling context.active() returns the currently active context.
110110
// If there is no active context, the ROOT_CONTEXT will be returned, which
111111
// has no key-value pairs.
112-
//
112+
//
113113
// context.with requires at least 2 arguments: a context and a function to be called.
114114
// If a third argument is provided, it will be bound to `this` `this` inside the function.
115115
// Any additional parameters are used as arguments when calling the function.
116-
//
116+
//
117117
// Return value is the value returned from getUser
118118
// | Context to be used as the "active" context
119119
// | | Function to be called

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"compile": "tsc --build tsconfig.json tsconfig.esm.json",
2020
"docs": "typedoc",
2121
"docs:deploy": "gh-pages --dist docs/out",
22-
"docs:test": "linkinator docs/out --silent --skip david-dm.org",
22+
"docs:test": "linkinator docs/out --silent && linkinator docs/*.md *.md --markdown --silent",
2323
"lint:fix": "eslint src test --ext .ts --fix",
2424
"lint": "eslint src test --ext .ts",
2525
"test:browser": "nyc karma start --single-run",

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"name": "OpenTelemetry API for JavaScript",
3434
"out": "docs/out",
3535
"entryPoints": ["./src/index.ts"],
36+
"excludePrivate": true,
3637
"hideGenerator": true
3738
}
3839
}

0 commit comments

Comments
 (0)