Skip to content

Commit 8727bc3

Browse files
Correct minor typos in the codebase (#1019)
Co-authored-by: Srikanth Chekuri <[email protected]>
1 parent 1bb3dcf commit 8727bc3

File tree

7 files changed

+9
-9
lines changed
  • instrumentation
    • opentelemetry-instrumentation-botocore/src/opentelemetry/instrumentation/botocore
    • opentelemetry-instrumentation-logging/src/opentelemetry/instrumentation/logging
    • opentelemetry-instrumentation-requests/src/opentelemetry/instrumentation/requests
    • opentelemetry-instrumentation-starlette/src/opentelemetry/instrumentation/starlette
    • opentelemetry-instrumentation-tornado/src/opentelemetry/instrumentation/tornado
    • opentelemetry-instrumentation-urllib3/tests
  • scripts

7 files changed

+9
-9
lines changed

instrumentation/opentelemetry-instrumentation-botocore/src/opentelemetry/instrumentation/botocore/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ def _apply_response_attributes(span: Span, result):
257257

258258
retry_attempts = metadata.get("RetryAttempts")
259259
if retry_attempts is not None:
260-
# TODO: update when semantic conventinos exists
260+
# TODO: update when semantic conventions exists
261261
span.set_attribute("retry_attempts", retry_attempts)
262262

263263
status_code = metadata.get("HTTPStatusCode")

instrumentation/opentelemetry-instrumentation-logging/src/opentelemetry/instrumentation/logging/constants.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
This env var must be set to ``true`` in order to enable trace context injection into logs by calling ``logging.basicConfig()`` and
5353
setting a logging format that makes use of the injected tracing variables.
5454
55-
Alternatively, ``set_logging_format`` argument can be set to ``True`` when initializing the ``LoggingInstrumentor`` class to acheive the
55+
Alternatively, ``set_logging_format`` argument can be set to ``True`` when initializing the ``LoggingInstrumentor`` class to achieve the
5656
same effect.
5757
5858
.. code-block::
@@ -65,7 +65,7 @@
6565
6666
This env var can be used to instruct the instrumentation to use a custom logging format.
6767
68-
Alternatively, a custom logging format can be passed to the ``LoggingInsrumentor`` as the ``logging_format`` argument. For example:
68+
Alternatively, a custom logging format can be passed to the ``LoggingInstrumentor`` as the ``logging_format`` argument. For example:
6969
7070
.. code-block::
7171
@@ -108,7 +108,7 @@
108108
109109
If you code or some other library/framework you are using calls logging.basicConfig before this integration is enabled, then this integration's logging
110110
format will not be used and log statements will not contain tracing context. For this reason, you'll need to make sure this integration is enabled as early
111-
as possible in the service lifecycle or your framework is configured to use a logging format with placeholders for tracing context. This can be acheived by
111+
as possible in the service lifecycle or your framework is configured to use a logging format with placeholders for tracing context. This can be achieved by
112112
adding the following placeholders to your logging format:
113113
114114
.. code-block::

instrumentation/opentelemetry-instrumentation-requests/src/opentelemetry/instrumentation/requests/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ def _instrument(self, **kwargs):
255255
``name_callback``: Callback which calculates a generic span name for an
256256
outgoing HTTP request based on the method and url.
257257
Optional: Defaults to get_default_span_name.
258-
``excluded_urls``: A string containing a comma-delimitted
258+
``excluded_urls``: A string containing a comma-delimited
259259
list of regexes used to exclude URLs from tracking
260260
"""
261261
tracer_provider = kwargs.get("tracer_provider")

instrumentation/opentelemetry-instrumentation-starlette/src/opentelemetry/instrumentation/starlette/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def home(request):
5050
Request/Response hooks
5151
**********************
5252
53-
Utilize request/reponse hooks to execute custom logic to be performed before/after performing a request. The server request hook takes in a server span and ASGI
53+
Utilize request/response hooks to execute custom logic to be performed before/after performing a request. The server request hook takes in a server span and ASGI
5454
scope object for every incoming request. The client request hook is called with the internal span and an ASGI scope which is sent as a dictionary for when the method recieve is called.
5555
The client response hook is called with the internal span and an ASGI event which is sent as a dictionary for when the method send is called.
5656

instrumentation/opentelemetry-instrumentation-tornado/src/opentelemetry/instrumentation/tornado/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def _instrument(self, **kwargs):
176176
177177
In order to work around this, we patch the __init__ method of RequestHandler and then dynamically patch
178178
the prepare, on_finish and log_exception methods of the derived classes _only_ the first time we see them.
179-
Note that the patch does not apply on every single __init__ call, only the first one for the enture
179+
Note that the patch does not apply on every single __init__ call, only the first one for the entire
180180
process lifetime.
181181
"""
182182
tracer_provider = kwargs.get("tracer_provider")

instrumentation/opentelemetry-instrumentation-urllib3/tests/test_urllib3_integration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def test_uninstrument(self):
168168
# instrument again to avoid warning message on tearDown
169169
URLLib3Instrumentor().instrument()
170170

171-
def test_suppress_instrumntation(self):
171+
def test_suppress_instrumentation(self):
172172
suppression_keys = (
173173
_SUPPRESS_HTTP_INSTRUMENTATION_KEY,
174174
_SUPPRESS_INSTRUMENTATION_KEY,

scripts/build_a_package.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ pkg_version=${pkg_name_and_version#opentelemetry-*==}
3232
# Get the latest versions of packaging tools
3333
python3 -m pip install --upgrade pip setuptools wheel packaging
3434

35-
# Validate vesrion against PEP 440 conventions: https://packaging.pypa.io/en/latest/version.html
35+
# Validate version against PEP 440 conventions: https://packaging.pypa.io/en/latest/version.html
3636
python3 -c "from packaging.version import Version; Version('${pkg_version}')"
3737

3838
basedir=$(git rev-parse --show-toplevel)

0 commit comments

Comments
 (0)