Skip to content

Commit 58fda55

Browse files
docs: add cspell to CI (#1061)
* docs: add cspell to CI * docs: Update comment --------- Co-authored-by: Kayla Reopelle <[email protected]>
1 parent 55aa688 commit 58fda55

File tree

35 files changed

+161
-61
lines changed

35 files changed

+161
-61
lines changed

.cspell.yml

+83
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
# cSpell:ignore textlintrc
2+
# For settings, see
3+
# https://www.streetsidesoftware.com/vscode-spell-checker/docs/configuration/
4+
version: '0.2'
5+
caseSensitive: false
6+
patterns:
7+
- name: CodeBlock
8+
pattern: |
9+
/
10+
^(\s*[~`]{3,}) # code-block start
11+
.* # all languages and options, e.g. shell {hl_lines=[12]}
12+
[\s\S]*? # content
13+
\1 # code-block end
14+
/igmx
15+
languageSettings:
16+
- languageId: markdown
17+
ignoreRegExpList:
18+
- CodeBlock
19+
words:
20+
- AWSX
21+
- Azuma
22+
- backports
23+
- behaviour
24+
- Bogsanyi
25+
- callables
26+
- circleci
27+
- Clientcontext
28+
- codeowners
29+
- dalli
30+
- datadog
31+
- enqueuers
32+
- ethon
33+
- excon
34+
- faas
35+
- fanout
36+
- faraday
37+
- gettime
38+
- gemfile
39+
- Gitter
40+
- gruf
41+
- HTTPX
42+
- httpx
43+
- instrumenter
44+
- Laurin
45+
- Lightstep
46+
- linux
47+
- lmdb
48+
- microbenchmarks
49+
- Mustin
50+
- myapp
51+
- namespacing
52+
- opentelemetry
53+
- otelcol
54+
- ottrace
55+
- postgres
56+
- postgresql
57+
- racecar
58+
- rabbitmq
59+
- Railtie
60+
- Rakefile
61+
- Reopelle
62+
- rdkafka
63+
- resque
64+
- restclient
65+
- Robb
66+
- rubocop
67+
- rubydocs
68+
- ruboproof
69+
- rubygems
70+
- Šimánek
71+
- semconv
72+
- sidekiq
73+
- sinatra
74+
- Solarwinds
75+
- spanid
76+
- toolset
77+
- traceid
78+
- traceresponse
79+
- Untrace
80+
- vitess
81+
- webmocks
82+
- Xuan
83+
- yardoc

.github/workflows/check-spelling.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Spelling
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
spelling-check:
8+
name: SPELLING check
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: streetsidesoftware/cspell-action@v6
13+
with:
14+
# Files should be consistent with check:spelling files
15+
files: |
16+
**/*.md
17+
config: .cspell.yml

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ multiple instrumentation libraries.
6262
- [SQL Obfuscation](helpers/sql-obfuscation/)
6363
## Additional Libraries
6464

65-
This repository also contains libraries to aid with interoperablity with vendor specific tracing solutions:
65+
This repository also contains libraries to aid with interoperability with vendor specific tracing solutions:
6666

6767
- [Context Propagation](propagator/): OTTrace and Amazon X-Ray
6868
- [Resource Detectors](resources/):
@@ -74,18 +74,18 @@ This repository also contains libraries to aid with interoperablity with vendor
7474

7575
OpenTelemetry Ruby follows the [versioning and stability document][otel-versioning] in the OpenTelemetry specification. Notably, we adhere to the outlined version numbering exception, which states that experimental signals may have a `0.x` version number.
7676

77-
### Library Compatability
77+
### Library Compatibility
7878

79-
This project is managed on a volunteer basis and therefore we have limited capacity to support compatability with unmaintained or EOL libraries.
79+
This project is managed on a volunteer basis and therefore we have limited capacity to support compatibility with unmaintained or EOL libraries.
8080

81-
We will regularly review the instrumentations to drop compatability for any versions of Ruby or gems that reach EOL or no longer receive regular maintenance.
81+
We will regularly review the instrumentations to drop compatibility for any versions of Ruby or gems that reach EOL or no longer receive regular maintenance.
8282

8383
Should you need instrumentation for _older_ versions of a library then you must pin to a specific version of the instrumentation that supports it,
8484
however, you will no longer receive any updates for the instrumentation from this repository.
8585

8686
> When a release series is no longer supported, it's your own responsibility to deal with bugs and security issues. We may provide backports of the fixes and publish them to git, however there will be no new versions released. If you are not comfortable maintaining your own versions, you should upgrade to a supported version. <https://guides.rubyonrails.org/maintenance_policy.html#security-issues>
8787
88-
Consult instrumentation gem's README file and gemspec for details about library compatability.
88+
Consult instrumentation gem's README file and gemspec for details about library compatibility.
8989

9090
### Releases
9191

instrumentation/CONTRIBUTING.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ For example, the `Werewolf` module generated in the example above is available v
173173

174174
Whenever possible, use first-party extension points (hooks) to instrument libraries. This ensures that the instrumentation is compatible with the latest versions of the library and that the instrumentation is maintained by the library authors. [`ActiveSupport::Notifications`](https://guides.rubyonrails.org/active_support_instrumentation.html) and `Middleware` are good examples of first-party extension points used by our instrumentation libraries.
175175

176-
Monkey patching is discouraged in OpenTelemetry Ruby because it is the most common source of bugs and incompatability with the libraries we instrument. If you must monkey patch, please ensure that the monkey patch is as isolated as possible and that it is clearly documented.
176+
Monkey patching is discouraged in OpenTelemetry Ruby because it is the most common source of bugs and incompatibility with the libraries we instrument. If you must monkey patch, please ensure that the monkey patch is as isolated as possible and that it is clearly documented.
177177

178178
### Use Semantic Conventions
179179

@@ -337,7 +337,7 @@ Add the service container to `jobs/instrumentation_with_services/services` and a
337337

338338
> :information_source: Please refer to the official [GitHub Actions Documentation](https://docs.github.com/en/actions/using-containerized-services/about-service-containers) for more information on how to add a service container.
339339

340-
If we determine the service container slows down the test suite significantly, it may make sense to copy the marix and steps stanzas from an existing instrumentation and update it to use the new service container as a dependency:
340+
If we determine the service container slows down the test suite significantly, it may make sense to copy the matrix and steps stanzas from an existing instrumentation and update it to use the new service container as a dependency:
341341

342342
```yaml
343343
@@ -407,7 +407,7 @@ In addition to that, there should also be redundant `yardoc` comments in the ent
407407

408408
### Examples
409409

410-
Executuable examples should be included in the `examples` directory that demonstrate how to use the instrumentation in a real-world scenario.
410+
Executable examples should be included in the `examples` directory that demonstrate how to use the instrumentation in a real-world scenario.
411411

412412
We recommend using [Bundler's inline gemfile](https://bundler.io/guides/bundler_in_a_single_file_ruby_script.html) to run the examples. Here is an example from the `grape` instrumentation:
413413

instrumentation/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ Instrumentation-specific documentation can be found in each subdirectory's `READ
4040

4141
You also have the option of installing all of the instrumentation libraries by installing `opentelemetry-instrumentation-all`. See that gem's [README](https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/all) for more.
4242

43-
### Maintenance and Version Compatability
43+
### Maintenance and Version Compatibility
4444

4545
We are a community of volunteers who do our best to provide our users with up to date support for instrumentations,
46-
however we have limited capacity and are unable to support compatability with EOL or unmaintained libraries.
46+
however we have limited capacity and are unable to support compatibility with EOL or unmaintained libraries.
4747

4848
Should you need to instrument an _older_ version of a library you will have to ensure to pin to an instrumentation version that is compatible with that library.
4949

50-
Please review the individual instrumentation READMEs for more information about version compatability.
50+
Please review the individual instrumentation READMEs for more information about version compatibility.
5151

5252
## How can I get involved?
5353

instrumentation/action_view/CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
### v0.2.0 / 2021-12-01
4545

46-
* ADDED: Move activesupport notification subsciber out of action_view gem
46+
* ADDED: Move activesupport notification subscriber out of action_view gem
4747
* FIXED: Instrumentation of Rails 7
4848

4949
### v0.1.3 / 2021-10-06

instrumentation/active_model_serializers/CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
### v0.18.0 / 2021-05-21
4545

46-
* ADDED: Updated API depedency for 1.0.0.rc1
46+
* ADDED: Updated API dependency for 1.0.0.rc1
4747

4848
### v0.17.0 / 2021-04-22
4949

instrumentation/all/CHANGELOG.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@
179179

180180
### v0.22.0 / 2021-12-01
181181

182-
* ADDED: Move activesupport notification subsciber out of action_view gem
182+
* ADDED: Move activesupport notification subscriber out of action_view gem
183183

184184
### v0.21.3 / 2021-10-07
185185

@@ -270,7 +270,7 @@
270270

271271
### v0.7.0 / 2020-10-07
272272

273-
* DOCS: Standardize toplevel docs structure and readme
273+
* DOCS: Standardize top-level docs structure and readme
274274

275275
### v0.6.0 / 2020-09-10
276276

instrumentation/aws_sdk/CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
### v0.5.1 / 2024-02-08
1212

13-
* FIXED: Return nil for non-existant key in AwsSdk::MessageAttributeGetter
13+
* FIXED: Return nil for non-existent key in AwsSdk::MessageAttributeGetter
1414

1515
### v0.5.0 / 2023-09-07
1616

instrumentation/base/CHANGELOG.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Release History: opentelemetry-instrumentation-base
22

3-
### v0.22.4 / 2024-06-18
4-
5-
* FIXED: Relax otel common gem constraints
6-
* DOCS: Add function doc for config_overrides_from_env
3+
### v0.22.4 / 2024-06-18
4+
5+
* FIXED: Relax otel common gem constraints
6+
* DOCS: Add function doc for config_overrides_from_env
77

88
### v0.22.3 / 2023-11-23
99

@@ -56,7 +56,7 @@
5656

5757
### v0.18.0 / 2021-05-21
5858

59-
* ADDED: Updated API depedency for 1.0.0.rc1
59+
* ADDED: Updated API dependency for 1.0.0.rc1
6060
* FIXED: Missing instrumentation classes during configuration
6161

6262
### v0.17.0 / 2021-04-22

instrumentation/concurrent_ruby/CHANGELOG.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242

4343
### v0.19.0 / 2021-09-29
4444

45-
* ADDED: Add suport for `Concurrent::Promises::Future`
45+
* ADDED: Add support for `Concurrent::Promises::Future`
4646

4747
### v0.18.2 / 2021-08-12
4848

@@ -54,7 +54,7 @@
5454

5555
### v0.18.0 / 2021-05-21
5656

57-
* ADDED: Updated API depedency for 1.0.0.rc1
57+
* ADDED: Updated API dependency for 1.0.0.rc1
5858

5959
### v0.17.0 / 2021-04-22
6060

@@ -104,7 +104,7 @@
104104
### v0.7.0 / 2020-10-07
105105

106106
* DOCS: Added README for concurrent ruby
107-
* DOCS: Standardize toplevel docs structure and readme
107+
* DOCS: Standardize top-level docs structure and readme
108108

109109
### v0.6.0 / 2020-09-10
110110

instrumentation/dalli/CHANGELOG.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474

7575
### v0.18.0 / 2021-05-21
7676

77-
* ADDED: Updated API depedency for 1.0.0.rc1
77+
* ADDED: Updated API dependency for 1.0.0.rc1
7878

7979
### v0.17.0 / 2021-04-22
8080

@@ -123,7 +123,7 @@
123123

124124
### v0.7.0 / 2020-10-07
125125

126-
* DOCS: Standardize toplevel docs structure and readme
126+
* DOCS: Standardize top-level docs structure and readme
127127

128128
### v0.6.0 / 2020-09-10
129129

instrumentation/delayed_job/CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565

6666
### v0.18.0 / 2021-05-21
6767

68-
* ADDED: Updated API depedency for 1.0.0.rc1
68+
* ADDED: Updated API dependency for 1.0.0.rc1
6969
* BREAKING CHANGE: Replace Time.now with Process.clock_gettime
7070

7171
### v0.17.0 / 2021-04-22

instrumentation/ethon/CHANGELOG.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272

7373
### v0.18.0 / 2021-05-21
7474

75-
* ADDED: Updated API depedency for 1.0.0.rc1
75+
* ADDED: Updated API dependency for 1.0.0.rc1
7676

7777
### v0.17.0 / 2021-04-22
7878

@@ -128,7 +128,7 @@
128128
### v0.7.0 / 2020-10-07
129129

130130
* DOCS: Add README for Ethon
131-
* DOCS: Standardize toplevel docs structure and readme
131+
* DOCS: Standardize top-level docs structure and readme
132132

133133
### v0.6.0 / 2020-09-10
134134

instrumentation/excon/CHANGELOG.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575

7676
### v0.18.0 / 2021-05-21
7777

78-
* ADDED: Updated API depedency for 1.0.0.rc1
78+
* ADDED: Updated API dependency for 1.0.0.rc1
7979
* FIXED: Removed http.status_text attribute #750
8080

8181
### v0.17.0 / 2021-04-22
@@ -130,7 +130,7 @@
130130

131131
### v0.7.0 / 2020-10-07
132132

133-
* DOCS: Standardize toplevel docs structure and readme
133+
* DOCS: Standardize top-level docs structure and readme
134134

135135
### v0.6.0 / 2020-09-10
136136

instrumentation/faraday/CHANGELOG.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191

9292
### v0.18.0 / 2021-05-21
9393

94-
* ADDED: Updated API depedency for 1.0.0.rc1
94+
* ADDED: Updated API dependency for 1.0.0.rc1
9595
* FIXED: Removed http.status_text attribute #750
9696

9797
### v0.17.0 / 2021-04-22
@@ -144,7 +144,7 @@
144144
### v0.7.0 / 2020-10-07
145145

146146
* DOCS: Faraday documentation
147-
* DOCS: Standardize toplevel docs structure and readme
147+
* DOCS: Standardize top-level docs structure and readme
148148

149149
### v0.6.0 / 2020-09-10
150150

instrumentation/graphql/CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116

117117
### v0.18.0 / 2021-05-21
118118

119-
* ADDED: Updated API depedency for 1.0.0.rc1
119+
* ADDED: Updated API dependency for 1.0.0.rc1
120120

121121
### v0.17.0 / 2021-04-22
122122

instrumentation/http/CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565

6666
### v0.18.0 / 2021-05-21
6767

68-
* ADDED: Updated API depedency for 1.0.0.rc1
68+
* ADDED: Updated API dependency for 1.0.0.rc1
6969

7070
### v0.17.0 / 2021-04-22
7171

instrumentation/http_client/CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969

7070
### v0.18.0 / 2021-05-21
7171

72-
* ADDED: Updated API depedency for 1.0.0.rc1
72+
* ADDED: Updated API dependency for 1.0.0.rc1
7373

7474
### v0.17.0 / 2021-04-22
7575

instrumentation/lmdb/CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747

4848
### v0.18.0 / 2021-05-21
4949

50-
* ADDED: Updated API depedency for 1.0.0.rc1
50+
* ADDED: Updated API dependency for 1.0.0.rc1
5151

5252
### v0.17.0 / 2021-04-22
5353

instrumentation/mongo/CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757

5858
* BREAKING CHANGE: Replace Time.now with Process.clock_gettime
5959

60-
* ADDED: Updated API depedency for 1.0.0.rc1
60+
* ADDED: Updated API dependency for 1.0.0.rc1
6161
* FIXED: Replace Time.now with Process.clock_gettime
6262
* FIXED: Mongodb test asserting error message
6363

0 commit comments

Comments
 (0)