Skip to content

Commit

Permalink
docs: add cspell to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahramadan committed Jul 15, 2024
1 parent 542fa91 commit f272e74
Show file tree
Hide file tree
Showing 35 changed files with 164 additions and 61 deletions.
86 changes: 86 additions & 0 deletions .cspell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
# cSpell:ignore textlintrc
# For settings, see
# https://www.streetsidesoftware.com/vscode-spell-checker/docs/configuration/
version: '0.2'
caseSensitive: false
# words here are only listed for their spelling, if there is a certain way
# to write a word (e.g. OpenTelemetry vs Opentelemetry or cloud native vs
# cloud-native), edit the text-lint rules in .textlintrc.yml
patterns:
- name: CodeBlock
pattern: |
/
^(\s*[~`]{3,}) # code-block start
.* # all languages and options, e.g. shell {hl_lines=[12]}
[\s\S]*? # content
\1 # code-block end
/igmx
languageSettings:
- languageId: markdown
ignoreRegExpList:
- CodeBlock
words:
- AWSX
- Azuma
- backports
- behaviour
- Bogsanyi
- callables
- circleci
- Clientcontext
- codeowners
- dalli
- datadog
- enqueuers
- ethon
- excon
- faas
- fanout
- faraday
- gettime
- gemfile
- Gitter
- gruf
- HTTPX
- httpx
- instrumenter
- Laurin
- Lightstep
- linux
- lmdb
- microbenchmarks
- Mustin
- myapp
- namespacing
- opentelemetry
- otelcol
- ottrace
- postgres
- postgresql
- racecar
- rabbitmq
- Railtie
- Rakefile
- Reopelle
- rdkafka
- resque
- restclient
- Robb
- rubocop
- rubydocs
- ruboproof
- rubygems
- Šimánek
- semconv
- sidekiq
- sinatra
- Solarwinds
- spanid
- toolset
- traceid
- traceresponse
- Untrace
- vitess
- webmocks
- Xuan
- yardoc
17 changes: 17 additions & 0 deletions .github/workflows/check-spelling.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Spelling

on:
pull_request:

jobs:
spelling-check:
name: SPELLING check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: streetsidesoftware/cspell-action@v6
with:
# Files should be consistent with check:spelling files
files: |
**/*.md
config: .cspell.yml
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ multiple instrumentation libraries.
- [SQL Obfuscation](helpers/sql-obfuscation/)
## Additional Libraries

This repository also contains libraries to aid with interoperablity with vendor specific tracing solutions:
This repository also contains libraries to aid with interoperability with vendor specific tracing solutions:

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

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.

### Library Compatability
### Library Compatibility

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

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.
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.

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

> 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>
Consult instrumentation gem's README file and gemspec for details about library compatability.
Consult instrumentation gem's README file and gemspec for details about library compatibility.

### Releases

Expand Down
6 changes: 3 additions & 3 deletions instrumentation/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ For example, the `Werewolf` module generated in the example above is available v

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.

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.
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.

### Use Semantic Conventions

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

> :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.

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:
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:

```yaml
Expand Down Expand Up @@ -407,7 +407,7 @@ In addition to that, there should also be redundant `yardoc` comments in the ent

### Examples

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

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:

Expand Down
6 changes: 3 additions & 3 deletions instrumentation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ Instrumentation-specific documentation can be found in each subdirectory's `READ

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.

### Maintenance and Version Compatability
### Maintenance and Version Compatibility

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

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.

Please review the individual instrumentation READMEs for more information about version compatability.
Please review the individual instrumentation READMEs for more information about version compatibility.

## How can I get involved?

Expand Down
2 changes: 1 addition & 1 deletion instrumentation/action_view/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

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

* ADDED: Move activesupport notification subsciber out of action_view gem
* ADDED: Move activesupport notification subscriber out of action_view gem
* FIXED: Instrumentation of Rails 7

### v0.1.3 / 2021-10-06
Expand Down
2 changes: 1 addition & 1 deletion instrumentation/active_model_serializers/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

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

* ADDED: Updated API depedency for 1.0.0.rc1
* ADDED: Updated API dependency for 1.0.0.rc1

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

Expand Down
4 changes: 2 additions & 2 deletions instrumentation/all/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@

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

* ADDED: Move activesupport notification subsciber out of action_view gem
* ADDED: Move activesupport notification subscriber out of action_view gem

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

Expand Down Expand Up @@ -270,7 +270,7 @@

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

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

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

Expand Down
2 changes: 1 addition & 1 deletion instrumentation/aws_sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

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

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

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

Expand Down
10 changes: 5 additions & 5 deletions instrumentation/base/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Release History: opentelemetry-instrumentation-base

### v0.22.4 / 2024-06-18

* FIXED: Relax otel common gem constraints
* DOCS: Add function doc for config_overrides_from_env
### v0.22.4 / 2024-06-18

* FIXED: Relax otel common gem constraints
* DOCS: Add function doc for config_overrides_from_env

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

Expand Down Expand Up @@ -56,7 +56,7 @@

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

* ADDED: Updated API depedency for 1.0.0.rc1
* ADDED: Updated API dependency for 1.0.0.rc1
* FIXED: Missing instrumentation classes during configuration

### v0.17.0 / 2021-04-22
Expand Down
6 changes: 3 additions & 3 deletions instrumentation/concurrent_ruby/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

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

* ADDED: Add suport for `Concurrent::Promises::Future`
* ADDED: Add support for `Concurrent::Promises::Future`

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

Expand All @@ -54,7 +54,7 @@

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

* ADDED: Updated API depedency for 1.0.0.rc1
* ADDED: Updated API dependency for 1.0.0.rc1

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

Expand Down Expand Up @@ -104,7 +104,7 @@
### v0.7.0 / 2020-10-07

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

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

Expand Down
4 changes: 2 additions & 2 deletions instrumentation/dalli/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@

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

* ADDED: Updated API depedency for 1.0.0.rc1
* ADDED: Updated API dependency for 1.0.0.rc1

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

Expand Down Expand Up @@ -123,7 +123,7 @@

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

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

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

Expand Down
2 changes: 1 addition & 1 deletion instrumentation/delayed_job/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@

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

* ADDED: Updated API depedency for 1.0.0.rc1
* ADDED: Updated API dependency for 1.0.0.rc1
* BREAKING CHANGE: Replace Time.now with Process.clock_gettime

### v0.17.0 / 2021-04-22
Expand Down
4 changes: 2 additions & 2 deletions instrumentation/ethon/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@

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

* ADDED: Updated API depedency for 1.0.0.rc1
* ADDED: Updated API dependency for 1.0.0.rc1

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

Expand Down Expand Up @@ -128,7 +128,7 @@
### v0.7.0 / 2020-10-07

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

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

Expand Down
4 changes: 2 additions & 2 deletions instrumentation/excon/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@

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

* ADDED: Updated API depedency for 1.0.0.rc1
* ADDED: Updated API dependency for 1.0.0.rc1
* FIXED: Removed http.status_text attribute #750

### v0.17.0 / 2021-04-22
Expand Down Expand Up @@ -130,7 +130,7 @@

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

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

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

Expand Down
4 changes: 2 additions & 2 deletions instrumentation/faraday/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@

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

* ADDED: Updated API depedency for 1.0.0.rc1
* ADDED: Updated API dependency for 1.0.0.rc1
* FIXED: Removed http.status_text attribute #750

### v0.17.0 / 2021-04-22
Expand Down Expand Up @@ -144,7 +144,7 @@
### v0.7.0 / 2020-10-07

* DOCS: Faraday documentation
* DOCS: Standardize toplevel docs structure and readme
* DOCS: Standardize top-level docs structure and readme

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

Expand Down
2 changes: 1 addition & 1 deletion instrumentation/graphql/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@

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

* ADDED: Updated API depedency for 1.0.0.rc1
* ADDED: Updated API dependency for 1.0.0.rc1

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

Expand Down
2 changes: 1 addition & 1 deletion instrumentation/http/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@

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

* ADDED: Updated API depedency for 1.0.0.rc1
* ADDED: Updated API dependency for 1.0.0.rc1

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

Expand Down
2 changes: 1 addition & 1 deletion instrumentation/http_client/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@

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

* ADDED: Updated API depedency for 1.0.0.rc1
* ADDED: Updated API dependency for 1.0.0.rc1

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

Expand Down
2 changes: 1 addition & 1 deletion instrumentation/lmdb/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

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

* ADDED: Updated API depedency for 1.0.0.rc1
* ADDED: Updated API dependency for 1.0.0.rc1

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

Expand Down
Loading

0 comments on commit f272e74

Please sign in to comment.