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

Lines changed: 83 additions & 0 deletions
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

Lines changed: 17 additions & 0 deletions
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

Lines changed: 5 additions & 5 deletions
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

Lines changed: 3 additions & 3 deletions
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

Lines changed: 3 additions & 3 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 5 additions & 5 deletions
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

0 commit comments

Comments
 (0)