From 9f30afb5074d1a598068e2d7fbdc56dbee7b181a Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 30 Jan 2025 23:20:55 -0500 Subject: [PATCH] [chore] Spelling receiver/u...z (#37611) #### Description Fix spelling in receiver/{u...z}* https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/37128#pullrequestreview-2541561439 https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/37134#issuecomment-2619380966 #### Link to tracking issue * #37128 --------- Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/udplogreceiver/README.md | 4 ++-- receiver/vcenterreceiver/client.go | 2 +- .../vcenterreceiver/internal/mockserver/client_mock.go | 4 ++-- .../internal/mockserver/responses/perf-manager.xml | 4 ++-- receiver/wavefrontreceiver/wavefront_parser.go | 4 ++-- receiver/webhookeventreceiver/req_to_log_test.go | 8 ++++---- receiver/windowsperfcountersreceiver/README.md | 2 +- receiver/zipkinreceiver/trace_receiver_test.go | 2 +- 8 files changed, 15 insertions(+), 15 deletions(-) diff --git a/receiver/udplogreceiver/README.md b/receiver/udplogreceiver/README.md index c08c85d594fc..8ee265275dc1 100644 --- a/receiver/udplogreceiver/README.md +++ b/receiver/udplogreceiver/README.md @@ -45,7 +45,7 @@ Many parsers operators can be configured to embed certain followup operations su If set, the `multiline` configuration block instructs the `udplog` receiver to split log entries on a pattern other than newlines. -**note** If `multiline` is not set at all, it wont't split log entries at all. Every UDP packet is going to be treated as log. +**note** If `multiline` is not set at all, it won't split log entries at all. Every UDP packet is going to be treated as log. **note** `multiline` detection works per UDP packet due to protocol limitations. The `multiline` configuration block must contain exactly one of `line_start_pattern` or `line_end_pattern`. These are regex patterns that @@ -70,7 +70,7 @@ for other encodings available. #### `async` configuration -If set, the `async` configuration block instructs the `udp_input` operator to read and process logs asynchronsouly and concurrently. +If set, the `async` configuration block instructs the `udp_input` operator to read and process logs asynchronously and concurrently. **note** If `async` is not set at all, a single thread will read lines synchronously. diff --git a/receiver/vcenterreceiver/client.go b/receiver/vcenterreceiver/client.go index f72c59b07815..53ddcc55f98d 100644 --- a/receiver/vcenterreceiver/client.go +++ b/receiver/vcenterreceiver/client.go @@ -98,7 +98,7 @@ func (vc *vcenterClient) EnsureConnection(ctx context.Context) error { return nil } -// Disconnect will logout of the autenticated session +// Disconnect will logout of the authenticated session func (vc *vcenterClient) Disconnect(ctx context.Context) error { if vc.sessionManager != nil { return vc.sessionManager.Logout(ctx) diff --git a/receiver/vcenterreceiver/internal/mockserver/client_mock.go b/receiver/vcenterreceiver/internal/mockserver/client_mock.go index 5af34c9d2940..26b07b10fec9 100644 --- a/receiver/vcenterreceiver/internal/mockserver/client_mock.go +++ b/receiver/vcenterreceiver/internal/mockserver/client_mock.go @@ -77,7 +77,7 @@ func routeBody(t *testing.T, requestType string, body map[string]any) ([]byte, e case "Logout": return loadResponse("logout.xml") case "RetrievePropertiesEx": - return routeRetreivePropertiesEx(t, body) + return routeRetrievePropertiesEx(t, body) case "QueryPerf": return routePerformanceQuery(t, body) case "CreateContainerView": @@ -91,7 +91,7 @@ func routeBody(t *testing.T, requestType string, body map[string]any) ([]byte, e return []byte{}, errNotFound } -func routeRetreivePropertiesEx(t *testing.T, body map[string]any) ([]byte, error) { +func routeRetrievePropertiesEx(t *testing.T, body map[string]any) ([]byte, error) { rp, ok := body["RetrievePropertiesEx"].(map[string]any) require.True(t, ok) specSet := rp["specSet"].(map[string]any) diff --git a/receiver/vcenterreceiver/internal/mockserver/responses/perf-manager.xml b/receiver/vcenterreceiver/internal/mockserver/responses/perf-manager.xml index babb5bc0b3de..f7ec17a4c6f8 100644 --- a/receiver/vcenterreceiver/internal/mockserver/responses/perf-manager.xml +++ b/receiver/vcenterreceiver/internal/mockserver/responses/perf-manager.xml @@ -3356,7 +3356,7 @@ 153 - The aggregate network droppped packets for the host + The aggregate network dropped packets for the host throughput.contention @@ -8064,7 +8064,7 @@ 421 - Mininum amount of machine memory that VMkernel likes to keep free + Minimum amount of machine memory that VMkernel likes to keep free kernel.minfree diff --git a/receiver/wavefrontreceiver/wavefront_parser.go b/receiver/wavefrontreceiver/wavefront_parser.go index 7d4d412f5901..e6de15ac6a1b 100644 --- a/receiver/wavefrontreceiver/wavefront_parser.go +++ b/receiver/wavefrontreceiver/wavefront_parser.go @@ -29,11 +29,11 @@ var ( _ protocol.ParserConfig = (*WavefrontParser)(nil) ) -// Only two chars can be espcaped per Wavafront SDK, see +// Only two chars can be escaped per Wavefront SDK, see // https://github.com/wavefrontHQ/wavefront-sdk-go/blob/2c5891318fcd83c35c93bba2b411640495473333/senders/formatter.go#L20 var escapedCharReplacer = strings.NewReplacer( `\"`, `"`, // Replaces escaped double-quotes - `\n`, "\n", // Repaces escaped new-line. + `\n`, "\n", // Replaces escaped new-line. ) // BuildParser creates a new Parser instance that receives Wavefront metric data. diff --git a/receiver/webhookeventreceiver/req_to_log_test.go b/receiver/webhookeventreceiver/req_to_log_test.go index 1bbbd7532309..4195b16fb357 100644 --- a/receiver/webhookeventreceiver/req_to_log_test.go +++ b/receiver/webhookeventreceiver/req_to_log_test.go @@ -51,12 +51,12 @@ func TestReqToLog(t *testing.T) { if v, ok := attributes.Get("qparam1"); ok { require.Equal(t, "hello", v.AsString()) } else { - require.Fail(t, "faild to set attribute from query parameter 1") + require.Fail(t, "failed to set attribute from query parameter 1") } if v, ok := attributes.Get("qparam2"); ok { require.Equal(t, "world", v.AsString()) } else { - require.Fail(t, "faild to set attribute query parameter 2") + require.Fail(t, "failed to set attribute query parameter 2") } }, }, @@ -85,12 +85,12 @@ func TestReqToLog(t *testing.T) { if v, ok := attributes.Get("qparam1"); ok { require.Equal(t, "hello", v.AsString()) } else { - require.Fail(t, "faild to set attribute from query parameter 1") + require.Fail(t, "failed to set attribute from query parameter 1") } if v, ok := attributes.Get("qparam2"); ok { require.Equal(t, "world", v.AsString()) } else { - require.Fail(t, "faild to set attribute query parameter 2") + require.Fail(t, "failed to set attribute query parameter 2") } }, }, diff --git a/receiver/windowsperfcountersreceiver/README.md b/receiver/windowsperfcountersreceiver/README.md index 674573f891c1..fc19c50b141d 100644 --- a/receiver/windowsperfcountersreceiver/README.md +++ b/receiver/windowsperfcountersreceiver/README.md @@ -205,7 +205,7 @@ service: ## Known Limitation -- The network interface is not available inside the container. Hence, the metrics for the object `Network Interface` aren't generated in that scenario. In the case of sub-process, it captures `Network Interface` metrics. There is a similar open issue in [Github](https://github.com/influxdata/telegraf/issues/5357) and [Docker](https://forums.docker.com/t/unable-to-collect-network-metrics-inside-windows-container-on-windows-server-2016-data-center/69480) forum. +- The network interface is not available inside the container. Hence, the metrics for the object `Network Interface` aren't generated in that scenario. In the case of sub-process, it captures `Network Interface` metrics. There is a similar open issue in [GitHub](https://github.com/influxdata/telegraf/issues/5357) and [Docker](https://forums.docker.com/t/unable-to-collect-network-metrics-inside-windows-container-on-windows-server-2016-data-center/69480) forum. - The counter category `Process` is [unreliable with multiple instances of the same process][1]. On Windows 11 and later, it is recommended to use `Process V2` instead as it includes the process ID in the instance name. For versions prior to Windows 11 it is possible to [configure the `Process` counter category to include the PID in the instance name][2]. diff --git a/receiver/zipkinreceiver/trace_receiver_test.go b/receiver/zipkinreceiver/trace_receiver_test.go index 1f5acd59a923..2852e6384995 100644 --- a/receiver/zipkinreceiver/trace_receiver_test.go +++ b/receiver/zipkinreceiver/trace_receiver_test.go @@ -358,7 +358,7 @@ func compressZlib(body []byte) (*bytes.Buffer, error) { return &buf, nil } -func TestConvertSpansToTraceSpans_JSONWithoutSerivceName(t *testing.T) { +func TestConvertSpansToTraceSpans_JSONWithoutServiceName(t *testing.T) { blob, err := os.ReadFile("./testdata/sample2.json") require.NoError(t, err, "Failed to read sample JSON file: %v", err) zi := newTestZipkinReceiver()