Skip to content

Commit 0948b9f

Browse files
authored
ci: add md linter rule to only use dash for unordered lists (#2205)
* ci: add md linter rule to only use dash for unordered lists * style: use unordered list as dash in READMEs * chore: comment on markdown lint rule * fix: unintentional replace
1 parent 265000a commit 0948b9f

File tree

15 files changed

+93
-87
lines changed

15 files changed

+93
-87
lines changed

.github/markdown-lint.yml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# MD004 - Unordered list style
2+
# This rule is triggered when the symbols used in the document for unordered list items do not match the configured unordered list style
3+
# * Item 1 // Error: Unordered list style [Expected: dash; Actual: asterisk]
4+
MD004:
5+
style: dash

.github/workflows/lint.yml

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
- name: Lint markdown files
2020
uses: avto-dev/markdown-lint@v1
2121
with:
22+
config: '.github/markdown-lint.yml'
2223
ignore: "./**/CHANGELOG.md"
2324
args: "./**/*.md"
2425

README.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ A repository for OpenTelemetry JavaScript contributions that are not part of the
4242

4343
This project includes:
4444

45-
* [Instrumentations & other plugins](./plugins),
46-
* [Metapackages](./metapackages),
47-
* [Context Propagators](./propagators),
48-
* [Resource Detectors](./detectors).
45+
- [Instrumentations & other plugins](./plugins),
46+
- [Metapackages](./metapackages),
47+
- [Context Propagators](./propagators),
48+
- [Resource Detectors](./detectors).
4949

5050
**Instrumentations**: OpenTelemetry can collect tracing data automatically using instrumentations. Vendors/Users can also create and use their own.
5151

@@ -59,9 +59,9 @@ Stability level for components in this repository follow the definitions in [CON
5959

6060
Packages in this repository have a variable range of support for Node.JS and browser versions which for each package depend on
6161

62-
* the activeness of the owners of those packages,
63-
* used techniques or runtime features and
64-
* in the case of the auto-instrumentations, the supported runtime versions for the underlying package.
62+
- the activeness of the owners of those packages,
63+
- used techniques or runtime features and
64+
- in the case of the auto-instrumentations, the supported runtime versions for the underlying package.
6565

6666
See the `README.md` files and the `engines` field in the `package.json` files for the respective packages for support information about that package.
6767

@@ -79,9 +79,9 @@ We'd love your help! Use tags [up-for-grabs][up-for-grabs-issues] and [good firs
7979

8080
## Useful links
8181

82-
* For more information on OpenTelemetry, visit [OpenTelemetry.io](https://opentelemetry.io/)
83-
* For help or feedback on this project, join us in [GitHub Discussions][discussions-url] or in [Slack](https://cloud-native.slack.com/archives/C01NL1GRPQR)
84-
* For more 3rd party components for JS as well as other languages, check [OpenTelemetry Registry](https://opentelemetry.io/registry/)
82+
- For more information on OpenTelemetry, visit [OpenTelemetry.io](https://opentelemetry.io/)
83+
- For help or feedback on this project, join us in [GitHub Discussions][discussions-url] or in [Slack](https://cloud-native.slack.com/archives/C01NL1GRPQR)
84+
- For more 3rd party components for JS as well as other languages, check [OpenTelemetry Registry](https://opentelemetry.io/registry/)
8585

8686
## License
8787

RELEASING.md

+18-18
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ For posterity, or in the event of any failures with release-please, the process
99

1010
Manual Release Process Steps:
1111

12-
* [Update to latest locally](#update-to-latest-locally)
13-
* [Create a new branch](#create-a-new-branch)
14-
* [Prepare each package for release](#prepare-each-package-for-release)
15-
* [Use the Changelog to create a GitHub Release](#use-the-changelog-to-create-a-github-release)
16-
* [Create a new PR](#create-a-new-pr)
17-
* [Merge and pull](#merge-and-pull)
18-
* [Publish all packages](#publish-all-packages)
19-
* [Publish the GitHub Release](#publish-the-github-release)
20-
* [Update CHANGELOG](#update-changelog)
12+
- [Update to latest locally](#update-to-latest-locally)
13+
- [Create a new branch](#create-a-new-branch)
14+
- [Prepare each package for release](#prepare-each-package-for-release)
15+
- [Use the Changelog to create a GitHub Release](#use-the-changelog-to-create-a-github-release)
16+
- [Create a new PR](#create-a-new-pr)
17+
- [Merge and pull](#merge-and-pull)
18+
- [Publish all packages](#publish-all-packages)
19+
- [Publish the GitHub Release](#publish-the-github-release)
20+
- [Update CHANGELOG](#update-changelog)
2121

2222
## Update to latest locally
2323

@@ -31,9 +31,9 @@ Create a new branch called `x.y.z-proposal` from the current commit.
3131

3232
Decide on the next `major.minor.patch` release number based on [semver](http://semver.org/) guidelines.
3333

34-
* Use `npm install` command to initialize all package directories
35-
* Use `lerna publish --skip-npm --no-git-tag-version --no-push` to bump the version in all `package.json`
36-
* Use `npm run bootstrap` to generate latest `version.ts` files
34+
- Use `npm install` command to initialize all package directories
35+
- Use `lerna publish --skip-npm --no-git-tag-version --no-push` to bump the version in all `package.json`
36+
- Use `npm run bootstrap` to generate latest `version.ts` files
3737

3838
## Use the Changelog to create a GitHub Release
3939

@@ -58,10 +58,10 @@ It will print something like:
5858
## Unreleased (2018-05-24)
5959

6060
#### :bug: Bug Fix
61-
* [#198](https://github.com/my-org/my-repo/pull/198) Avoid an infinite loop ([@helpful-hacker](https://github.com/helpful-hacker))
61+
- [#198](https://github.com/my-org/my-repo/pull/198) Avoid an infinite loop ([@helpful-hacker](https://github.com/helpful-hacker))
6262

6363
#### :house: Internal
64-
* [#183](https://github.com/my-org/my-repo/pull/183) Standardize error messages ([@careful-coder](https://github.com/careful-coder))
64+
- [#183](https://github.com/my-org/my-repo/pull/183) Standardize error messages ([@careful-coder](https://github.com/careful-coder))
6565

6666
#### Commiters: 2
6767
- Helpful Hacker ([@helpful-hacker](https://github.com/helpful-hacker))
@@ -112,10 +112,10 @@ Publish the GitHub release, ensuring that the tag points to the newly landed com
112112

113113
## Update CHANGELOG
114114

115-
* After releasing is done, update the [CHANGELOG.md](https://github.com/open-telemetry/opentelemetry-js/blob/main/CHANGELOG.md) and start new Unreleased label.
116-
* Create a new commit with the exact title: `Post Release: update CHANGELOG.md`.
117-
* Go through PR review and merge it to GitHub main branch.
115+
- After releasing is done, update the [CHANGELOG.md](https://github.com/open-telemetry/opentelemetry-js/blob/main/CHANGELOG.md) and start new Unreleased label.
116+
- Create a new commit with the exact title: `Post Release: update CHANGELOG.md`.
117+
- Go through PR review and merge it to GitHub main branch.
118118

119119
## Known Issues
120120

121-
* The `examples/` and `getting-started/` folders are not part of lerna packages, we need to manually bump the version in `package.json`.
121+
- The `examples/` and `getting-started/` folders are not part of lerna packages, we need to manually bump the version in `package.json`.

archive/opentelemetry-browser-extension-autoinjection/README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ Compatible with OpenTelemetry JS API and SDK `1.0+`.
1313

1414
## Supported Environments
1515

16-
* Google Chrome (with [Manifest Version 3](https://developer.chrome.com/docs/extensions/mv3/intro/) support)
17-
* Chromium (with Manifest Version 2)
18-
* Firefox (*unstable*, with Manifest Version 2)
16+
- Google Chrome (with [Manifest Version 3](https://developer.chrome.com/docs/extensions/mv3/intro/) support)
17+
- Chromium (with Manifest Version 2)
18+
- Firefox (*unstable*, with Manifest Version 2)
1919

2020
## Installation
2121

@@ -32,9 +32,9 @@ npm run build
3232

3333
This will create a so-called unpacked extension into the `build/` folder you now can load into your browser:
3434

35-
* Open a new browser window and go to chrome://extensions
36-
* Turn on "Developer Mode"
37-
* Click on "Load unpacked" and select the `build/mv3` (or `build/mv2`) folder, which contains the extension
35+
- Open a new browser window and go to chrome://extensions
36+
- Turn on "Developer Mode"
37+
- Click on "Load unpacked" and select the `build/mv3` (or `build/mv2`) folder, which contains the extension
3838

3939
If all goes well you should see the extension listed:
4040

archive/opentelemetry-propagator-grpc-census-binary/README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
OpenTelemetry gRPC Census propagator provides gRPC header propagation for systems that use the OpenCensus 'grpc-trace-bin' binary header format. This allows for context propagation when either:
77

8-
* incoming gRPC calls come from services already instrumented using OpenCensus
9-
* outgoing gRPC calls go to services already instrumented using OpenCensus
8+
- incoming gRPC calls come from services already instrumented using OpenCensus
9+
- outgoing gRPC calls go to services already instrumented using OpenCensus
1010

1111
This propagator works in conjunction with the OpenTelemetry [gRPC plugin](https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/exporter-trace-otlp-grpc).
1212

@@ -43,9 +43,9 @@ See [binary-format.ts](https://github.com/census-instrumentation/opencensus-node
4343

4444
## Useful links
4545

46-
* For more information on OpenTelemetry, visit: <https://opentelemetry.io/>
47-
* For more about OpenTelemetry JavaScript: <https://github.com/open-telemetry/opentelemetry-js>
48-
* For help or feedback on this project, join us in [GitHub Discussions][discussions-url]
46+
- For more information on OpenTelemetry, visit: <https://opentelemetry.io/>
47+
- For more about OpenTelemetry JavaScript: <https://github.com/open-telemetry/opentelemetry-js>
48+
- For help or feedback on this project, join us in [GitHub Discussions][discussions-url]
4949

5050
## License
5151

packages/baggage-span-processor/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ sdk.start();
4848

4949
## Useful links
5050

51-
* For more information on OpenTelemetry, visit: <https://opentelemetry.io/>
52-
* For more about OpenTelemetry JavaScript: <https://github.com/open-telemetry/opentelemetry-js>
53-
* For help or feedback on this project, join us in [GitHub Discussions][discussions-url]
51+
- For more information on OpenTelemetry, visit: <https://opentelemetry.io/>
52+
- For more about OpenTelemetry JavaScript: <https://github.com/open-telemetry/opentelemetry-js>
53+
- For help or feedback on this project, join us in [GitHub Discussions][discussions-url]
5454

5555
## License
5656

packages/opentelemetry-host-metrics/README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
This module provides automatic collection of Host Metrics which includes metrics for:
77

8-
* CPU
9-
* Memory
10-
* Network
8+
- CPU
9+
- Memory
10+
- Network
1111

1212
Compatible with OpenTelemetry JS API and SDK `1.0+`.
1313

@@ -41,9 +41,9 @@ hostMetrics.start();
4141

4242
## Useful links
4343

44-
* For more information on OpenTelemetry, visit: <https://opentelemetry.io/>
45-
* For more about OpenTelemetry JavaScript: <https://github.com/open-telemetry/opentelemetry-js>
46-
* For help or feedback on this project, join us in [GitHub Discussions][discussions-url]
44+
- For more information on OpenTelemetry, visit: <https://opentelemetry.io/>
45+
- For more about OpenTelemetry JavaScript: <https://github.com/open-telemetry/opentelemetry-js>
46+
- For help or feedback on this project, join us in [GitHub Discussions][discussions-url]
4747

4848
## License
4949

packages/winston-transport/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ Winston `3.x`
5555

5656
## Useful links
5757

58-
* For more information on OpenTelemetry, visit: <https://opentelemetry.io/>
59-
* For more about OpenTelemetry JavaScript: <https://github.com/open-telemetry/opentelemetry-js>
60-
* For help or feedback on this project, join us in [GitHub Discussions][discussions-url]
58+
- For more information on OpenTelemetry, visit: <https://opentelemetry.io/>
59+
- For more about OpenTelemetry JavaScript: <https://github.com/open-telemetry/opentelemetry-js>
60+
- For help or feedback on this project, join us in [GitHub Discussions][discussions-url]
6161

6262
## License
6363

plugins/node/opentelemetry-instrumentation-cassandra/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ Attributes collected:
6666

6767
## Useful links
6868

69-
* For more information on OpenTelemetry, visit: <https://opentelemetry.io/>
70-
* For more about OpenTelemetry JavaScript: <https://github.com/open-telemetry/opentelemetry-js>
71-
* For help or feedback on this project, join us in [GitHub Discussions][discussions-url]
69+
- For more information on OpenTelemetry, visit: <https://opentelemetry.io/>
70+
- For more about OpenTelemetry JavaScript: <https://github.com/open-telemetry/opentelemetry-js>
71+
- For help or feedback on this project, join us in [GitHub Discussions][discussions-url]
7272

7373
## License
7474

plugins/node/opentelemetry-instrumentation-net/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ Attributes added to `connect` spans:
5252

5353
## Useful links
5454

55-
* For more information on OpenTelemetry, visit: <https://opentelemetry.io/>
56-
* For more about OpenTelemetry JavaScript: <https://github.com/open-telemetry/opentelemetry-js>
57-
* For help or feedback on this project, join us in [GitHub Discussions][discussions-url]
55+
- For more information on OpenTelemetry, visit: <https://opentelemetry.io/>
56+
- For more about OpenTelemetry JavaScript: <https://github.com/open-telemetry/opentelemetry-js>
57+
- For help or feedback on this project, join us in [GitHub Discussions][discussions-url]
5858

5959
## License
6060

plugins/node/opentelemetry-instrumentation-pino/README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ logger.info('foobar');
5555

5656
For the current active span, the following fields are injected. These field names can be optionally configured via `logKeys` in the PinoInstrumentation config:
5757

58-
* `trace_id`
59-
* `span_id`
60-
* `trace_flags`
58+
- `trace_id`
59+
- `span_id`
60+
- `trace_flags`
6161

6262
When no span context is active or the span context is invalid, injection is skipped.
6363

@@ -71,9 +71,9 @@ This package does not currently generate any attributes from semantic convention
7171

7272
## Useful links
7373

74-
* For more information on OpenTelemetry, visit: <https://opentelemetry.io/>
75-
* For more about OpenTelemetry JavaScript: <https://github.com/open-telemetry/opentelemetry-js>
76-
* For help or feedback on this project, join us in [GitHub Discussions][discussions-url]
74+
- For more information on OpenTelemetry, visit: <https://opentelemetry.io/>
75+
- For more about OpenTelemetry JavaScript: <https://github.com/open-telemetry/opentelemetry-js>
76+
- For help or feedback on this project, join us in [GitHub Discussions][discussions-url]
7777

7878
## License
7979

plugins/node/opentelemetry-instrumentation-winston/README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ identifying the span added to the log record. This allows
8484
log records with tracing data. The added fields are
8585
([spec](https://opentelemetry.io/docs/specs/otel/compatibility/logging_trace_context/)):
8686

87-
* `trace_id`
88-
* `span_id`
89-
* `trace_flags`
87+
- `trace_id`
88+
- `span_id`
89+
- `trace_flags`
9090

9191
After adding these fields, the optional `logHook` is called to allow injecting additional fields. For example:
9292

@@ -112,9 +112,9 @@ This package does not currently generate any attributes from semantic convention
112112

113113
## Useful links
114114

115-
* For more information on OpenTelemetry, visit: <https://opentelemetry.io/>
116-
* For more about OpenTelemetry JavaScript: <https://github.com/open-telemetry/opentelemetry-js>
117-
* For help or feedback on this project, join us in [GitHub Discussions][discussions-url]
115+
- For more information on OpenTelemetry, visit: <https://opentelemetry.io/>
116+
- For more about OpenTelemetry JavaScript: <https://github.com/open-telemetry/opentelemetry-js>
117+
- For help or feedback on this project, join us in [GitHub Discussions][discussions-url]
118118

119119
## License
120120

propagators/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ api.propagation.setGlobalPropagator(new GrpcCensusPropagator());
2222

2323
## Useful links
2424

25-
* For more information on OpenTelemetry, visit: <https://opentelemetry.io/>
26-
* For more about OpenTelemetry JavaScript: <https://github.com/open-telemetry/opentelemetry-js>
25+
- For more information on OpenTelemetry, visit: <https://opentelemetry.io/>
26+
- For more about OpenTelemetry JavaScript: <https://github.com/open-telemetry/opentelemetry-js>
2727

2828
## License
2929

propagators/opentelemetry-propagator-instana/README.md

+16-16
Original file line numberDiff line numberDiff line change
@@ -40,36 +40,36 @@ There are three headers that the propagator handles: `X-INSTANA-T` (the trace ID
4040

4141
Example header triplet:
4242

43-
* `X-INSTANA-T: 80f198ee56343ba864fe8b2a57d3eff7`,
44-
* `X-INSTANA-S: e457b5a2e4d86bd1`,
45-
* `X-INSTANA-L: 1`.
43+
- `X-INSTANA-T: 80f198ee56343ba864fe8b2a57d3eff7`,
44+
- `X-INSTANA-S: e457b5a2e4d86bd1`,
45+
- `X-INSTANA-L: 1`.
4646

4747
A short summary for each of the headers is provided below. More details are available at <https://www.ibm.com/docs/en/obi/current?topic=monitoring-traces#tracing-headers>.
4848

4949
### X-INSTANA-T -- trace ID
5050

51-
* A string of either 16 or 32 characters from the alphabet `0-9a-f`, representing either a 64 bit or 128 bit ID.
52-
* This header corresponds to the [OpenTelemetry TraceId](https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/overview.md#spancontext).
53-
* If the propagator receives an X-INSTANA-T header value that is shorter than 32 characters when _extracting_ headers into the OpenTelemetry span context, it will left-pad the string with the character "0" to length 32.
54-
* No length transformation is applied when _injecting_ the span context into headers.
51+
- A string of either 16 or 32 characters from the alphabet `0-9a-f`, representing either a 64 bit or 128 bit ID.
52+
- This header corresponds to the [OpenTelemetry TraceId](https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/overview.md#spancontext).
53+
- If the propagator receives an X-INSTANA-T header value that is shorter than 32 characters when _extracting_ headers into the OpenTelemetry span context, it will left-pad the string with the character "0" to length 32.
54+
- No length transformation is applied when _injecting_ the span context into headers.
5555

5656
### X-INSTANA-S -- parent span ID
5757

58-
* Format: A string of 16 characters from the alphabet `0-9a-f`, representing a 64 bit ID.
59-
* This header corresponds to the [OpenTelemetry SpanId](https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/overview.md#spancontext).
58+
- Format: A string of 16 characters from the alphabet `0-9a-f`, representing a 64 bit ID.
59+
- This header corresponds to the [OpenTelemetry SpanId](https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/overview.md#spancontext).
6060

6161
### X-INSTANA-L - sampling level
6262

63-
* The only two valid values are `1` and `0`.
64-
* A level of `1` means that this request is to be sampled, a level of `0` means that the request should not be sampled.
65-
* This header corresponds to the sampling bit of the [OpenTelemetry TraceFlags](https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/overview.md#spancontext).
63+
- The only two valid values are `1` and `0`.
64+
- A level of `1` means that this request is to be sampled, a level of `0` means that the request should not be sampled.
65+
- This header corresponds to the sampling bit of the [OpenTelemetry TraceFlags](https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/overview.md#spancontext).
6666

6767
## Useful links
6868

69-
* For more information on Instana, visit <https://www.instana.com/> and [Instana' documentation](https://www.ibm.com/docs/en/obi/current).
70-
* For more information on OpenTelemetry, visit: <https://opentelemetry.io/>
71-
* For more about OpenTelemetry JavaScript: <https://github.com/open-telemetry/opentelemetry-js>
72-
* For help or feedback on this project, join us in [GitHub Discussions][discussions-url]
69+
- For more information on Instana, visit <https://www.instana.com/> and [Instana' documentation](https://www.ibm.com/docs/en/obi/current).
70+
- For more information on OpenTelemetry, visit: <https://opentelemetry.io/>
71+
- For more about OpenTelemetry JavaScript: <https://github.com/open-telemetry/opentelemetry-js>
72+
- For help or feedback on this project, join us in [GitHub Discussions][discussions-url]
7373

7474
## License
7575

0 commit comments

Comments
 (0)