Skip to content

Commit 8e3c6c6

Browse files
authored
chore: Fix typos and linguistic errors in documentation / hacktoberfest (#1737)
Fix typos and linguistic errors in documentation Signed-off-by: Sebastien Dionne <[email protected]>
1 parent b5bc21c commit 8e3c6c6

File tree

24 files changed

+40
-40
lines changed

24 files changed

+40
-40
lines changed

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ merge. You'll probably get some feedback from these fine folks which helps to
214214
make the project that much better. Respond to the feedback and work with your
215215
reviewer(s) to resolve any issues.
216216

217-
The some of the things the code owners are looking for include:
217+
Some of the things the code owners are looking for include:
218218

219219
* a signed [CNCF CLA][cncf-cla]
220220
* a passing CI build
@@ -246,10 +246,10 @@ Releases are normally performed using GitHub Actions.
246246
`Open release request` workflow, and run the workflow manually using the
247247
dropdown in the upper right.
248248
* Releases must be run from the main branch.
249-
* If you leave the `Gems to release` field, blank, and the script will
249+
* If you leave the `Gems to release` field blank, the script will
250250
find all the gems that have had conventional-commit-tagged changes since
251251
their last release. Alternately, you can specify which gems to release
252-
by including their names, space-delimited, in this this field. You can
252+
by including their names, space-delimited, in this field. You can
253253
optionally append `:<version>` to any gem in the list to specify the
254254
version to release, or omit the version to let the script decide based
255255
on conventional commits. You can also use the special name `all` to

helpers/mysql/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# OpenTelemetry Instrumentation Helpers: MySQL
22

3-
This Ruby gem contains logic shared among MySQL adapter libraries, such as mysql2 and trilogy. It's intended for use by by gem authors instrumenting MySQL adapter libraries.
3+
This Ruby gem contains logic shared among MySQL adapter libraries, such as mysql2 and trilogy. It's intended for use by gem authors instrumenting MySQL adapter libraries.
44

55
## Usage
66

helpers/sql-obfuscation/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ All future development, bug fixes, and feature releases will occur in the new ge
88

99
## OpenTelemetry Instrumentation Helpers: SQL Obfuscation
1010

11-
This Ruby gem contains logic to obfuscate SQL. It's intended for use by by gem authors instrumenting SQL adapter libraries, such as mysql2, pg, and trilogy.
11+
This Ruby gem contains logic to obfuscate SQL. It's intended for use by gem authors instrumenting SQL adapter libraries, such as mysql2, pg, and trilogy.
1212

1313
The logic is largely drawn from the [New Relic Ruby agent's SQL Obfuscation Helpers module][new-relic-obfuscation-helpers].
1414

helpers/sql-obfuscation/lib/opentelemetry/helpers/sql_obfuscation.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ def generate_regex(dialect)
9696
# @param sql [String] The SQL to obfuscate.
9797
# @param obfuscation_limit [optional Integer] the length at which the SQL string will not be obfuscated
9898
# @param adapter [optional Symbol] the type of database adapter calling the method. `:default`, `:mysql` and `:postgres` are supported.
99-
# @return [String] The SQL query string where the values are replaced with "?". When the sql statement exceeds the obufscation limit
100-
# the first matched pair from the SQL statement will be returned, with an appended truncation message. If trunaction is unsuccessful,
99+
# @return [String] The SQL query string where the values are replaced with "?". When the sql statement exceeds the obfuscation limit
100+
# the first matched pair from the SQL statement will be returned, with an appended truncation message. If truncation is unsuccessful,
101101
# a string describing the error will be returned.
102102
#
103103
# @api public

helpers/sql-processor/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# OpenTelemetry Instrumentation Helpers: SQL Processor
22

3-
This Ruby gem contains logic to process SQL, including obfuscation. It's intended for use by by gem authors instrumenting SQL adapter libraries, such as mysql2, pg, and trilogy.
3+
This Ruby gem contains logic to process SQL, including obfuscation. It's intended for use by gem authors instrumenting SQL adapter libraries, such as mysql2, pg, and trilogy.
44

55
Obfuscation logic is largely drawn from the [New Relic Ruby agent's SQL Obfuscation Helpers module][new-relic-obfuscation-helpers].
66

helpers/sql-processor/lib/opentelemetry/helpers/sql_obfuscation.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ def generate_regex(dialect)
9696
# @param sql [String] The SQL to obfuscate.
9797
# @param obfuscation_limit [optional Integer] the length at which the SQL string will not be obfuscated
9898
# @param adapter [optional Symbol] the type of database adapter calling the method. `:default`, `:mysql` and `:postgres` are supported.
99-
# @return [String] The SQL query string where the values are replaced with "?". When the sql statement exceeds the obufscation limit
100-
# the first matched pair from the SQL statement will be returned, with an appended truncation message. If trunaction is unsuccessful,
99+
# @return [String] The SQL query string where the values are replaced with "?". When the sql statement exceeds the obfuscation limit
100+
# the first matched pair from the SQL statement will be returned, with an appended truncation message. If truncation is unsuccessful,
101101
# a string describing the error will be returned.
102102
#
103103
# @api public

instrumentation/CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ The following steps are required to contribute a new instrumentation library:
4747

4848
This repository contains a script to generate a new instrumentation library.
4949

50-
The snippet below demonstrates how to generate a an instrumentation for the `werewolf` gem, starting from the repository root.
50+
The snippet below demonstrates how to generate an instrumentation for the `werewolf` gem, starting from the repository root.
5151

5252
```console
5353

@@ -137,7 +137,7 @@ module OpenTelemetry
137137
end
138138

139139
compatible do
140-
Gem::Version.new(::Wereworlf::VERSION) >= MINIMUM_VERSION
140+
Gem::Version.new(::Werewolf::VERSION) >= MINIMUM_VERSION
141141
end
142142
end
143143
end
@@ -189,7 +189,7 @@ If the attribute is specific to your instrumentation, then consider namespacing
189189

190190
Code that is not tested will not be accepted by maintainers. We understand that providing 100% test coverage is not always possible but we still ask that you provide your best effort when writing automated tests.
191191

192-
Most of the libraries instrument introduce changes outside of our control. For this reason, integration or state-based tests are preferred over interaction (mock) tests.
192+
Most of the libraries we instrument introduce changes outside of our control. For this reason, integration or state-based tests are preferred over interaction (mock) tests.
193193

194194
When you do in fact run into cases where test doubles or API stubs are absolutely necessary, we recommend using the [`rspec-mocks`](https://github.com/rspec/rspec-mocks) and [`webmocks`](https://github.com/bblimke/webmock) gems.
195195

instrumentation/aws_sdk/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ This instrumentation offers the following configuration options:
3838
to Message Attributes for SQS/SNS messages.
3939
* `:enable_internal_instrumentation` (default: `false`): When set to `true`, any spans with
4040
span kind of `internal` are traced.
41-
* `:suppress_internal_instrumentation`: **Deprecated**. This configuration has been
42-
deprecated in a favor of `:enable_internal_instrumentation`
41+
* `:suppress_internal_instrumentation`: **Deprecated**. This configuration has been
42+
deprecated in favor of `:enable_internal_instrumentation`
4343

4444
## Integration with SDK V3's Telemetry support
4545
AWS SDK for Ruby V3 added support for Observability which includes a new configuration,

instrumentation/aws_sdk/lib/opentelemetry/instrumentation/aws_sdk/instrumentation.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ module AwsSdk
2626
# - `true` - Internal spans are traced.
2727
#
2828
# ### `:suppress_internal_instrumentation` (deprecated)
29-
# This configuration has been deprecated in a favor of `:enable_internal_instrumentation`
29+
# This configuration has been deprecated in favor of `:enable_internal_instrumentation`
3030
#
31-
# @example An explicit default configurations
31+
# @example An explicit default configuration
3232
# OpenTelemetry::SDK.configure do |c|
3333
# c.use 'OpenTelemetry::Instrumentation::AwsSdk', {
3434
# inject_messaging_context: false,
@@ -105,7 +105,7 @@ def telemetry_plugin?
105105

106106
# Patches AWS SDK V3's telemetry plugin for integration
107107
# This patch supports configuration set by this gem and
108-
# additional span attributes that was not provided by the plugin
108+
# additional span attributes that were not provided by the plugin
109109
def patch_telemetry_plugin
110110
::Aws::Plugins::Telemetry::Handler.prepend(Patches::Handler)
111111
end
@@ -125,7 +125,7 @@ def loaded_service_clients
125125

126126
# This check does the following:
127127
# 1 - Checks if the service client is autoload or not
128-
# 2 - Validates whether if is a service client
128+
# 2 - Validates whether it is a service client
129129
# note that Seahorse::Client::Base is a superclass for V3 clients
130130
# but for V2, it is Aws::Client
131131
# rubocop:disable Style/MultipleComparison

instrumentation/base/lib/opentelemetry/instrumentation/base.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ module Instrumentation
5353
#
5454
# OpenTelemetry::Instrumentation::Sinatra.instance.tracer
5555
#
56-
# The instrumention class establishes a convention for disabling an instrumentation
56+
# The instrumentation class establishes a convention for disabling an instrumentation
5757
# by environment variable and local configuration. An instrumentation disabled
5858
# by environment variable will take precedence over local config. The
5959
# convention for environment variable name is the library name, upcased with

0 commit comments

Comments
 (0)