Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[chore] Spelling #37128

Draft
wants to merge 450 commits into
base: main
Choose a base branch
from
Draft

[chore] Spelling #37128

wants to merge 450 commits into from

Conversation

jsoref
Copy link
Contributor

@jsoref jsoref commented Jan 10, 2025

Description

This PR corrects misspellings identified by the check-spelling action

The misspellings have been reported at https://github.com/jsoref/opentelemetry-collector-contrib/actions/runs/12703384198#summary-35411084604

Testing

The action reports that the changes in this PR would make it happy: https://github.com/jsoref/opentelemetry-collector-contrib/actions/runs/12703386265#summary-35411089865

Merging

I understand this is a bit big... Some of my PRs can be up to ~1k commits, so this is only really a medium size PR by my standards.

It's pretty easy for me to split into series of n commits if that's desired (as long as there aren't too many overlapping commits -- iirc there are a handful, but that's fine, I can leave the conflicting ones off).

Generally I'm quite flexible, but I don't have as much time as I used to, so it's quite possible I won't be able to do much until the middle of next week...

jsoref added 30 commits January 9, 2025 20:58
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
CHANGELOG.md Show resolved Hide resolved
@@ -150,7 +150,7 @@ type DispatchArtifactContent struct {
ScheduledCount string `json:"scheduled_count"`
SavedSearchesCount string `json:"ss_count"`
CompletedCount string `json:"completed_count"`
IncompleteCount string `json:"incomple_count"`
IncompleteCount string `json:"incomplete_count"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this might be impactful.

Copy link
Contributor

@atoulme atoulme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a massive PR so it's hard to review, I picked up a few issues. Recommend you go by chunks, maybe receivers/processors/exporters and so on. Very appreciated, thanks!

@atoulme atoulme added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Jan 10, 2025
@@ -41,7 +41,7 @@ func TestMetricValidation(t *testing.T) {
expectedError: errors.New("url scheme must be http or https"),
},
{
desc: "unparseable url",
desc: "unparsable url",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

from memory this repository is evenly split between [un]pars(e)able. I often don't push in a direction when they're evenly split, and I'm happy to drop, but...

receiver/k8sclusterreceiver/watcher.go Show resolved Hide resolved
@@ -20,15 +20,15 @@ type ResourceID string
// been changes to resource metadata such as Kubernetes labels.
// An example of how this is used. Let's say we are dealing with a
// Pod that has the following labels -
// {"env": "test", "team": "otell", "usser": "bob"}. Now, let's say
// {"env": "test", "team": "otell", "user_": "bob"}. Now, let's say
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tend to suggest using _ to indicate "this is intentionally not the correct token" -- otherwise people are forced to think "is this intentionally a typo or accidentally a typo?" -- and in this PR, it's quite rare that things appear to be intentionally misspelled...

@@ -17,7 +17,7 @@

**This exporter is undergoing major changes right now.**

For some time we have been developing the [new Sumo Logic exporter](https://github.com/SumoLogic/sumologic-otel-collector/tree/main/pkg/exporter/sumologicexporter#sumo-logic-exporter) and now we are in the process of moving it into this repository.
We are in the process of [moving the Sumo Logic exporter into this repository](https://github.com/SumoLogic/sumologic-otel-collector/pull/1601).
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a notable change

Comment on lines +298 to 299
## Calculate an extra disk_ops.total metric as number of all read and write operations happened since the last report.
- action: copy_metrics
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is an atypical correction

@@ -997,7 +997,7 @@ func TestWALOnExporterRoundTrip(t *testing.T) {
errs := prwe.handleExport(ctx, tsMap, nil)
assert.NoError(t, errs)
// Shutdown after we've written to the WAL. This ensures that our
// exported data in-flight will flushed flushed to the WAL before exiting.
// exported data in-flight will be flushed to the WAL before exiting.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

another atypical correction

{"https://doesnotexist.com", "", "https://doesnotexist.com"},
{"https://doesnotexist.com", "us", "https://doesnotexist.com"},
{"https://doesnotexist.com", "not-valid", "https://doesnotexist.com"},
{"https://nonexistent.com", "", "https://nonexistent.com"},
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I sometimes encourage people to use RFC 2606 domains in which case this should be https://nonexistent.example.com, but I skipped that step here...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree. Maybe good to track with an other issue.

@@ -53,7 +53,7 @@ func buildEventFromSpan(
}

attrs["sca:schema"] = "tracing"
attrs["sca:schemVer"] = 1
attrs["sca:schemaVer"] = 1
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hopefully this is ok...

codeboten pushed a commit that referenced this pull request Jan 10, 2025
#### Description

Fix spelling in processor/

#37128 (review)

#### Link to tracking issue

* #37128

---------

Signed-off-by: Josh Soref <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants