Skip to content

Commit caadcf0

Browse files
[Core/OpenTelemetry] Fixed spelling errors (#25610)
* fix: typo, cspell config * fix: second typos * cspell: move inline to cspell.json Co-authored-by: Xiang Yan <xiangsjtu@gmail.com>
1 parent b200856 commit caadcf0

7 files changed

Lines changed: 16 additions & 11 deletions

File tree

.vscode/cspell.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"sdk/communication/azure-communication-sms/**",
5151
"sdk/core/azure/**",
5252
"sdk/core/azure-common/**",
53+
"sdk/core/azure-core-tracing-opencensus/**",
5354
"sdk/core/azure-core-tracing-opentelemetry/**",
5455
"sdk/core/azure-servicemanagement-legacy/**",
5556
"sdk/digitaltwins/azure-digitaltwins-core/**",
@@ -458,6 +459,10 @@
458459
"FHIR"
459460
]
460461
},
462+
{
463+
"filename": "sdk/core/azure-core-tracing-opentelemetry/**",
464+
"words": ["ctxt", "somethingstuid"]
465+
},
461466
{
462467
"filename": "sdk/cognitivelanguage/azure-ai-language-conversations/**",
463468
"words": ["conv"],

sdk/core/azure-core-tracing-opentelemetry/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ from azure.storage.blob import BlobServiceClient
7070

7171
with tracer.start_as_current_span(name="MyApplication"):
7272
client = BlobServiceClient.from_connection_string('connectionstring')
73-
client.create_container('mycontainer') # Call will be traced
73+
client.create_container('my_container') # Call will be traced
7474
```
7575

7676
Azure Exporter can be found in the [package](https://pypi.org/project/opentelemetry-azure-monitor-exporter/) `opentelemetry-azure-monitor-exporter`

sdk/core/azure-core-tracing-opentelemetry/azure/core/tracing/ext/opentelemetry_span/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ def kind(self, value):
140140
self._span_instance._kind = kind # pylint: disable=protected-access
141141
except AttributeError:
142142
warnings.warn(
143-
"""Kind must be set while creating the span for Opentelemetry. It might be possible
144-
that one of the packages you are using doesn't follow the latest Opentelemtry Spec.
143+
"""Kind must be set while creating the span for OpenTelemetry. It might be possible
144+
that one of the packages you are using doesn't follow the latest Opentelemetry Spec.
145145
Try updating the azure packages to the latest versions."""
146146
)
147147

@@ -233,8 +233,8 @@ def link_from_headers(cls, headers, attributes=None):
233233
current_span._links.append(OpenTelemetryLink(span_ctx, attributes)) # pylint: disable=protected-access
234234
except AttributeError:
235235
warnings.warn(
236-
"""Link must be added while creating the span for Opentelemetry. It might be possible
237-
that one of the packages you are using doesn't follow the latest Opentelemtry Spec.
236+
"""Link must be added while creating the span for OpenTelemetry. It might be possible
237+
that one of the packages you are using doesn't follow the latest Opentelemetry Spec.
238238
Try updating the azure packages to the latest versions."""
239239
)
240240

sdk/core/azure-core-tracing-opentelemetry/samples/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ products:
77
urlFragment: azure-core-tracing-opentelemetry-samples
88
---
99

10-
# Azure Core Tracing Opentelemetry Integration Python Samples
10+
# Azure Core Tracing OpenTelemetry Integration Python Samples
1111

12-
These code samples show using the tracing opentelemetry integration with few services including servicebus, storage and eventgrid. A simple console span exporter is used in this example to export the calls. However, the code to use the azure monitor exporter has also been provided and commented in each sample.
12+
These code samples show using the tracing OpenTelemetry integration with few services including servicebus, storage and eventgrid. A simple console span exporter is used in this example to export the calls. However, the code to use the azure monitor exporter has also been provided and commented in each sample.
1313

1414
* Trace Storage Calls to create a container: [sample_storage.py][python-sample-storage]
1515
* Trace Eventgrid calls to publish an event : [sample_eventgrid.py][python-sample-eventgrid]
@@ -24,7 +24,7 @@ It is assumed that the relevant SDKs are installed along with this extension. Be
2424
- [azure-servicebus](https://pypi.org/project/azure-servicebus) v7 or greater.
2525
- [azure-eventgrid](https://pypi.org/project/azure-eventgrid) v4 or greater.
2626
- [azure-eventhub](https://pypi.org/project/azure-eventhub/) v5 or greater
27-
- [opentelemtry-sdk](https://pypi.org/project/opentelemetry-sdk/)
27+
- [opentelemetry-sdk](https://pypi.org/project/opentelemetry-sdk/)
2828

2929
[python-sample-storage]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core-tracing-opentelemetry/samples/sample_storage.py
3030
[python-sample-eventgrid]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core-tracing-opentelemetry/samples/sample_eventgrid.py

sdk/core/azure-core-tracing-opentelemetry/samples/sample_eventhubs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Examples to show usage of the azure-core-tracing-opentelemetry
33
with the Eventhub SDK.
44
5-
This example traces calls for senda batch to eventhub.
5+
This example traces calls for sending a batch to eventhub.
66
77
An alternative path to export using AzureMonitor is also mentioned in the sample. Please take
88
a look at the commented code.

sdk/core/azure-core-tracing-opentelemetry/samples/sample_receive_eh.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Examples to show usage of the azure-core-tracing-opentelemetry
33
with the Eventhub SDK.
44
5-
This example traces calls for senda batch to eventhub.
5+
This example traces calls for sending a batch to eventhub.
66
77
An alternative path to export using AzureMonitor is also mentioned in the sample. Please take
88
a look at the commented code.

sdk/core/azure-core-tracing-opentelemetry/tests/test_tracing_implementations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,4 +188,4 @@ def test_span_kind(self, tracer):
188188
assert wrapped_class.kind == SpanKind.INTERNAL
189189

190190
with pytest.raises(ValueError):
191-
wrapped_class.kind = "somethingstuid"
191+
wrapped_class.kind = "somethingstuid"

0 commit comments

Comments
 (0)