From 8259997c99c39fe5045f57bfde6d8770d71455c8 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 20:14:53 -0500 Subject: [PATCH 001/450] spelling: a Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../sqlserverreceiver/testdata/scrape-available-counters.ps1 | 2 +- .../testdata/scrape-named-instance-counters.ps1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/receiver/sqlserverreceiver/testdata/scrape-available-counters.ps1 b/receiver/sqlserverreceiver/testdata/scrape-available-counters.ps1 index 9872c1ec2ad7..175bae66dfd1 100644 --- a/receiver/sqlserverreceiver/testdata/scrape-available-counters.ps1 +++ b/receiver/sqlserverreceiver/testdata/scrape-available-counters.ps1 @@ -1,3 +1,3 @@ # This powershell script finds all SQLServer counter paths and dumps them to counters.txt. -# This should be run on a system with the a running SQLServer. +# This should be run on a system with a running SQLServer. (Get-Counter -ListSet "SQLServer:*").Paths | Set-Content -Path "$PSScriptRoot\counters.txt" diff --git a/receiver/sqlserverreceiver/testdata/scrape-named-instance-counters.ps1 b/receiver/sqlserverreceiver/testdata/scrape-named-instance-counters.ps1 index 12ca2a78b79c..7416b826c2d2 100644 --- a/receiver/sqlserverreceiver/testdata/scrape-named-instance-counters.ps1 +++ b/receiver/sqlserverreceiver/testdata/scrape-named-instance-counters.ps1 @@ -1,4 +1,4 @@ # This powershell script finds all SQLServer counter paths and dumps them to counters.txt for a named instance. -# This should be run on a system with the a running SQLServer and named instance. +# This should be run on a system with a running SQLServer and named instance. # This example uses a named instance of TEST_NAME. (Get-Counter -ListSet "MSSQL$*").Paths| Set-Content -Path "$PSScriptRoot\counters.txt" From 5e9f8f568617f4310dca7fcdf776dcc044a5f69e Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 17:09:09 -0500 Subject: [PATCH 002/450] spelling: ability Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ae3efe22bd74..9ebfc9eabb1c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -222,7 +222,7 @@ If you are looking for developer-facing changes, check out [CHANGELOG-API.md](./ - `tailsamplingprocessor`: Adds decision cache for non-sampled trace IDs (#31583) - `cmd/opampsupervisor`: Support environment variable expansion in the OpAMP supervisor config. (#36269) - `pkg/ottl`: Move debug log to `Statement.Execute` so that components using it instead of `StatementSequence` also get debug logs. (#36456) -- `routingconnector`: Add abiilty to route by 'datapoint' context (#36523) +- `routingconnector`: Add ability to route by 'datapoint' context (#36523) - `signalfxreceiver`: Follow receiver contract based on type of error (#5909) Use 503 error code for retryable and 400 error code for not-retryable errors instead of responding with a 500 unconditionally. From b00f66f3df2cb5cc1f53f413455092f06139a475 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 17:09:22 -0500 Subject: [PATCH 003/450] spelling: achieve Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ebfc9eabb1c..7cb1c3ff0c2b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -212,7 +212,7 @@ If you are looking for developer-facing changes, check out [CHANGELOG-API.md](./ - `awsemfexporter`: Add support for 1 second metric resolution in CloudWatch Embedded Metrics Format based on metric attributes (#29506) - `awsemfexporter`: Improvement unit conversion during EMF log translation (#35937) - `sumologicexporter`: adding new products for auto discovery (#35622) -- `postgresqlreceiver`: Added new postgresql metrics to acheive parity with Telegraf (#36528) +- `postgresqlreceiver`: Added new postgresql metrics to achieve parity with Telegraf (#36528) - `loadbalancingexporter`: Adding sending_queue, retry_on_failure and timeout settings to loadbalancing exporter configuration (#35378, #16826) When switching to top-level sending_queue configuration - users should carefully review queue size In some rare cases setting top-level queue size to n*queueSize might be not enough to prevent data loss From 97f90f7ff2c6341037920eda45e4282d37969102 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 17:09:47 -0500 Subject: [PATCH 004/450] spelling: adapted Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../internal/k8sapiserver/k8sapiserver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/awscontainerinsightreceiver/internal/k8sapiserver/k8sapiserver.go b/receiver/awscontainerinsightreceiver/internal/k8sapiserver/k8sapiserver.go index 4477a27bba13..7455b08db777 100644 --- a/receiver/awscontainerinsightreceiver/internal/k8sapiserver/k8sapiserver.go +++ b/receiver/awscontainerinsightreceiver/internal/k8sapiserver/k8sapiserver.go @@ -34,7 +34,7 @@ const ( lockName = "otel-container-insight-clusterleader" ) -// eventBroadcaster is adpated from record.EventBroadcaster +// eventBroadcaster is adapted from record.EventBroadcaster type eventBroadcaster interface { // StartRecordingToSink starts sending events received from this EventBroadcaster to the given // sink. The return value can be ignored or used to stop recording, if desired. From a96ea9a22667612b2c5d85c27465f43e69e038c9 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 07:59:38 -0500 Subject: [PATCH 005/450] spelling: add Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/awscloudwatchlogsexporter/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/awscloudwatchlogsexporter/config.go b/exporter/awscloudwatchlogsexporter/config.go index 24cce8c0f9bd..b5a095c6bdf5 100644 --- a/exporter/awscloudwatchlogsexporter/config.go +++ b/exporter/awscloudwatchlogsexporter/config.go @@ -37,7 +37,7 @@ type Config struct { // Possible values are 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, 2192, 2557, 2922, 3288, or 3653 LogRetention int64 `mapstructure:"log_retention"` - // Tags is the option to set tags for the CloudWatch Log Group. If specified, please add add at least 1 and at most 50 tags. Input is a string to string map like so: { 'key': 'value' } + // Tags is the option to set tags for the CloudWatch Log Group. If specified, please add at least 1 and at most 50 tags. Input is a string to string map like so: { 'key': 'value' } // Keys must be between 1-128 characters and follow the regex pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-@]+)$ // Values must be between 1-256 characters and follow the regex pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-@]*)$ Tags map[string]*string `mapstructure:"tags"` From 204090273e7d4b71889461b48543e9a0ffc03e96 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 17:09:54 -0500 Subject: [PATCH 006/450] spelling: address Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/stanza/docs/operators/syslog_input.md | 4 ++-- pkg/stanza/docs/operators/udp_input.md | 2 +- .../testdata/sample_payloads/nodes_linux.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/stanza/docs/operators/syslog_input.md b/pkg/stanza/docs/operators/syslog_input.md index 596bad91028c..014d2ba566ab 100644 --- a/pkg/stanza/docs/operators/syslog_input.md +++ b/pkg/stanza/docs/operators/syslog_input.md @@ -26,7 +26,7 @@ TCP Configuration: ```yaml - type: syslog_input tcp: - listen_adress: "0.0.0.0:54526" + listen_address: "0.0.0.0:54526" syslog: protocol: rfc5424 ``` @@ -36,7 +36,7 @@ UDP Configuration: ```yaml - type: syslog_input udp: - listen_adress: "0.0.0.0:54526" + listen_address: "0.0.0.0:54526" syslog: protocol: rfc3164 location: UTC diff --git a/pkg/stanza/docs/operators/udp_input.md b/pkg/stanza/docs/operators/udp_input.md index 555ddc97faba..5f3bd43dac5e 100644 --- a/pkg/stanza/docs/operators/udp_input.md +++ b/pkg/stanza/docs/operators/udp_input.md @@ -66,7 +66,7 @@ Configuration: ```yaml - type: udp_input - listen_adress: "0.0.0.0:54526" + listen_address: "0.0.0.0:54526" ``` Send a log: diff --git a/receiver/elasticsearchreceiver/testdata/sample_payloads/nodes_linux.json b/receiver/elasticsearchreceiver/testdata/sample_payloads/nodes_linux.json index 04607eb3faaa..37bc9c7dfc16 100644 --- a/receiver/elasticsearchreceiver/testdata/sample_payloads/nodes_linux.json +++ b/receiver/elasticsearchreceiver/testdata/sample_payloads/nodes_linux.json @@ -455,7 +455,7 @@ "version": "7.17.7", "elasticsearch_version": "7.17.7", "java_version": "1.8", - "description": "Ingest processor that uses looksup geo data based on ip adresses using the Maxmind geo database", + "description": "Ingest processor that uses looksup geo data based on ip addresses using the Maxmind geo database", "classname": "org.elasticsearch.ingest.geoip.IngestGeoIpPlugin", "extended_plugins": [], "has_native_controller": false, From 852f4be8e68d4a815417d128f8cddf78aab266ac Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 17:10:10 -0500 Subject: [PATCH 007/450] spelling: agent Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/stanza/docs/operators/journald_input.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/stanza/docs/operators/journald_input.md b/pkg/stanza/docs/operators/journald_input.md index f1643d7de1b0..63d1ca61aaf0 100644 --- a/pkg/stanza/docs/operators/journald_input.md +++ b/pkg/stanza/docs/operators/journald_input.md @@ -1,6 +1,6 @@ ## `journald_input` operator -The `journald_input` operator reads logs from the systemd journal using the `journalctl` binary, which must be in the `$PATH` of the agentt. +The `journald_input` operator reads logs from the systemd journal using the `journalctl` binary, which must be in the `$PATH` of the agent. By default, `journalctl` will read from `/run/journal` or `/var/log/journal`. If either `directory` or `files` are set, `journalctl` will instead read from those. From 2a6d4aa2fa78006ffa018a5378e19aa3e26c868c Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 17:10:22 -0500 Subject: [PATCH 008/450] spelling: aggregated Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/prometheusexporter/accumulator.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exporter/prometheusexporter/accumulator.go b/exporter/prometheusexporter/accumulator.go index 3a6559118fe5..2089a41953d5 100644 --- a/exporter/prometheusexporter/accumulator.go +++ b/exporter/prometheusexporter/accumulator.go @@ -29,9 +29,9 @@ type accumulatedValue struct { scope pcommon.InstrumentationScope } -// accumulator stores aggragated values of incoming metrics +// accumulator stores aggregated values of incoming metrics type accumulator interface { - // Accumulate stores aggragated metric values + // Accumulate stores aggregated metric values Accumulate(resourceMetrics pmetric.ResourceMetrics) (processed int) // Collect returns a slice with relevant aggregated metrics and their resource attributes. // The number or metrics and attributes returned will be the same. From 62292e0e5957e8e406b5c30bc583b0c4fd1ff94c Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 17:10:28 -0500 Subject: [PATCH 009/450] spelling: aggregates Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/alertmanagerexporter/alertmanager_exporter_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/alertmanagerexporter/alertmanager_exporter_test.go b/exporter/alertmanagerexporter/alertmanager_exporter_test.go index 991d14c04432..f80516145ae2 100644 --- a/exporter/alertmanagerexporter/alertmanager_exporter_test.go +++ b/exporter/alertmanagerexporter/alertmanager_exporter_test.go @@ -278,7 +278,7 @@ func TestAlertManagerTracesExporterNoErrors(t *testing.T) { type ( MockServer struct { - mockserver *httptest.Server // this means MockServer aggreagates 'httptest.Server', but can it's more like inheritance in C++ + mockserver *httptest.Server // this means MockServer aggregates 'httptest.Server', but can it's more like inheritance in C++ fooCalledSuccessfully bool // this is false by default } ) From b42d152cffab367d5db53d0e9257e3e760548fbc Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 17:10:38 -0500 Subject: [PATCH 010/450] spelling: aggregations Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/datadogexporter/examples/collector.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/datadogexporter/examples/collector.yaml b/exporter/datadogexporter/examples/collector.yaml index 711d8b22eda5..9b4bfa277d20 100644 --- a/exporter/datadogexporter/examples/collector.yaml +++ b/exporter/datadogexporter/examples/collector.yaml @@ -283,7 +283,7 @@ exporters: # # mode: distributions - ## Deprecated [v0.75.0]: use `send_aggreggations` instead. + ## Deprecated [v0.75.0]: use `send_aggregations` instead. ## @param send_count_sum_metrics - boolean - optional - default: false ## Whether to report sum, count, min and max as separate histogram metrics. # From bd1bac7518ee5c087b8e67a12df040f9086c6876 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 17:15:08 -0500 Subject: [PATCH 011/450] spelling: alternate Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../signalfxexporter/internal/translation/translator_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exporter/signalfxexporter/internal/translation/translator_test.go b/exporter/signalfxexporter/internal/translation/translator_test.go index 23fa4194074f..af47b59e2c53 100644 --- a/exporter/signalfxexporter/internal/translation/translator_test.go +++ b/exporter/signalfxexporter/internal/translation/translator_test.go @@ -1210,7 +1210,7 @@ func TestTranslateDataPoints(t *testing.T) { }, { Key: "dim2", - Value: "val2-aleternate", + Value: "val2-alternate", }, }, }, @@ -1280,7 +1280,7 @@ func TestTranslateDataPoints(t *testing.T) { Dimensions: []*sfxpb.Dimension{ { Key: "dim2", - Value: "val2-aleternate", + Value: "val2-alternate", }, }, }, From f70992bdc933525dfe4f5f144ed2298769fee4ae Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 17:15:27 -0500 Subject: [PATCH 012/450] spelling: ambiguous Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/elasticsearchexporter/internal/objmodel/objmodel.go | 2 +- exporter/opensearchexporter/internal/objmodel/objmodel.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/exporter/elasticsearchexporter/internal/objmodel/objmodel.go b/exporter/elasticsearchexporter/internal/objmodel/objmodel.go index 0f514e06aaaa..e98d5c693ae0 100644 --- a/exporter/elasticsearchexporter/internal/objmodel/objmodel.go +++ b/exporter/elasticsearchexporter/internal/objmodel/objmodel.go @@ -6,7 +6,7 @@ // // The JSON parsing in Elasticsearch does not support parsing JSON documents // with duplicate fields. The fields in the docuemt can be sort and duplicate entries -// can be removed before serializing. Deduplication ensures that ambigious +// can be removed before serializing. Deduplication ensures that ambiguous // events can still be indexed. // // With attributes map encoded as a list of key value diff --git a/exporter/opensearchexporter/internal/objmodel/objmodel.go b/exporter/opensearchexporter/internal/objmodel/objmodel.go index de7d93da9b04..655356fca24f 100644 --- a/exporter/opensearchexporter/internal/objmodel/objmodel.go +++ b/exporter/opensearchexporter/internal/objmodel/objmodel.go @@ -6,7 +6,7 @@ // // The JSON parsing in OpenSearch does not support parsing JSON documents // with duplicate fields. The fields in the docuemt can be sort and duplicate entries -// can be removed before serializing. Deduplication ensures that ambigious +// can be removed before serializing. Deduplication ensures that ambiguous // events can still be indexed. // // With attributes map encoded as a list of key value From b0cab31ae34259c11fcb7ccb9ba7b66bf9a9d749 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 3 Jan 2025 09:41:24 -0500 Subject: [PATCH 013/450] spelling: an Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- .../internal/provider/maxmindprovider/provider.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7cb1c3ff0c2b..50978cd25d0f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -139,7 +139,7 @@ If you are looking for developer-facing changes, check out [CHANGELOG-API.md](./ respond to GET requests for the health check only. - `kafkaexporter, kafkareceiver`: Add a new mechanism "AWS_MSK_IAM_OAUTHBEARER" for kafka exporter and kafka receiver. This mechanism use the AWS MSK IAM SASL Signer for Go https://github.com/aws/aws-msk-iam-sasl-signer-go. (#19747) -- `loadbalancingexporter`: Adds a an optional configuration to the k8s resolver which returns hostnames instead of IPs for headless services pointing at statefulsets (#18412) +- `loadbalancingexporter`: Adds an optional configuration to the k8s resolver which returns hostnames instead of IPs for headless services pointing at statefulsets (#18412) - `mongodbatlasreceiver`: Adds additional metrics to the MongoDB Atlas receiver (#36525) Adds a number of new default disabled metrics to the MongoDB Atlas receiver. These metrics are: - mongodbatlas.disk.partition.queue.depth diff --git a/processor/geoipprocessor/internal/provider/maxmindprovider/provider.go b/processor/geoipprocessor/internal/provider/maxmindprovider/provider.go index f56b02fe4de0..9fb128b69bcc 100644 --- a/processor/geoipprocessor/internal/provider/maxmindprovider/provider.go +++ b/processor/geoipprocessor/internal/provider/maxmindprovider/provider.go @@ -58,7 +58,7 @@ func (g *maxMindProvider) Location(_ context.Context, ipAddress net.IP) (attribu } } -// cityAttributes returns a list of key-values containing geographical metadata associated to the provided IP. The key names are populated using the internal geo IP conventions package. If the an invalid or nil IP is provided, an error is returned. +// cityAttributes returns a list of key-values containing geographical metadata associated to the provided IP. The key names are populated using the internal geo IP conventions package. If an invalid or nil IP is provided, an error is returned. func (g *maxMindProvider) cityAttributes(ipAddress net.IP) (*[]attribute.KeyValue, error) { attributes := make([]attribute.KeyValue, 0, 11) From f952d17b809a11e9a28328ec1181210954e6bace Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 17:16:35 -0500 Subject: [PATCH 014/450] spelling: analogous Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/stanza/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/stanza/README.md b/pkg/stanza/README.md index 88a496bcd603..bcc73a77e17e 100644 --- a/pkg/stanza/README.md +++ b/pkg/stanza/README.md @@ -22,7 +22,7 @@ is modeled as an [`entry.Entry`](./docs/types/entry.md). Functionality in this module is primarily organized into distinct [operators](./docs/operators/README.md). There are four types of operators: -- Input operators are the point of ingestion, e.g. reading from a file, or a TCP socket. These are anologous to receivers in the collector. +- Input operators are the point of ingestion, e.g. reading from a file, or a TCP socket. These are analogous to receivers in the collector. - Parser operators are responsible for extracting structured information from unstructured elements of a log record. - Transform operators are responsible for modifying log records in some way, e.g. adding or removing a field. - Output operators emit logs to an external destination. Most of these were removed because they were redundant with From b3432fc84839b543cbcc9b51ac85dc72f09f7b0c Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 08:00:24 -0500 Subject: [PATCH 015/450] spelling: and Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/awskinesisexporter/README.md | 2 +- extension/observer/ecsobserver/internal/ecsmock/service.go | 2 +- receiver/snmpreceiver/config.go | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/exporter/awskinesisexporter/README.md b/exporter/awskinesisexporter/README.md index 64edd9fc41ea..85cd75436f1e 100644 --- a/exporter/awskinesisexporter/README.md +++ b/exporter/awskinesisexporter/README.md @@ -13,7 +13,7 @@ The kinesis exporter currently exports dynamic encodings to the configured kinesis stream. -The exporter relies heavily on the kinesis.PutRecords api to reduce network I/O and and reduces records into smallest atomic representation +The exporter relies heavily on the kinesis.PutRecords api to reduce network I/O and reduces records into smallest atomic representation to avoid hitting the hard limits placed on Records (No greater than 1Mb). This producer will block until the operation is done to allow for retryable and queued data to help during high loads. diff --git a/extension/observer/ecsobserver/internal/ecsmock/service.go b/extension/observer/ecsobserver/internal/ecsmock/service.go index 2225ef7546da..3c76aeab0825 100644 --- a/extension/observer/ecsobserver/internal/ecsmock/service.go +++ b/extension/observer/ecsobserver/internal/ecsmock/service.go @@ -17,7 +17,7 @@ import ( ) // PageLimit defines number of items in a single page for different APIs. -// Those numbers can be found on the Input and and Output struct comments. +// Those numbers can be found on the Input and Output struct comments. // Call DefaultPageLimit() to config the mock to use numbers same as the actual AWS API. type PageLimit struct { ListTaskOutput int // default 100, max 100 diff --git a/receiver/snmpreceiver/config.go b/receiver/snmpreceiver/config.go index 2f43460e7d1a..d717122f1099 100644 --- a/receiver/snmpreceiver/config.go +++ b/receiver/snmpreceiver/config.go @@ -190,7 +190,7 @@ type MetricConfig struct { // GaugeMetric contains info about the value of the gauge metric type GaugeMetric struct { - // ValueType is required can can be either int or double + // ValueType is required and can be either int or double ValueType string `mapstructure:"value_type"` } @@ -200,7 +200,7 @@ type SumMetric struct { Aggregation string `mapstructure:"aggregation"` // Monotonic is required and can be true or false Monotonic bool `mapstructure:"monotonic"` - // ValueType is required can can be either int or double + // ValueType is required and can be either int or double ValueType string `mapstructure:"value_type"` } From 582d933d7de260eeeee674e0dd6d982068950e4b Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 17:04:04 -0500 Subject: [PATCH 016/450] spelling: annotation Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/awsxrayexporter/internal/translator/segment.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/awsxrayexporter/internal/translator/segment.go b/exporter/awsxrayexporter/internal/translator/segment.go index fb134dd7abf9..df94f4ed411e 100644 --- a/exporter/awsxrayexporter/internal/translator/segment.go +++ b/exporter/awsxrayexporter/internal/translator/segment.go @@ -739,7 +739,7 @@ func fixSegmentName(name string) string { return name } -// fixAnnotationKey removes any invalid characters from the annotaiton key. AWS X-Ray defines +// fixAnnotationKey removes any invalid characters from the annotation key. AWS X-Ray defines // the list of valid characters here: // https://docs.aws.amazon.com/xray/latest/devguide/xray-api-segmentdocuments.html func fixAnnotationKey(key string) string { From 0e90daabc09c97454cc9c310fbed9491d06744b3 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 17:17:12 -0500 Subject: [PATCH 017/450] spelling: appendarguments Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/ottl/ottlfuncs/func_append.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/ottl/ottlfuncs/func_append.go b/pkg/ottl/ottlfuncs/func_append.go index 3bf6cb2a9021..57661081254c 100644 --- a/pkg/ottl/ottlfuncs/func_append.go +++ b/pkg/ottl/ottlfuncs/func_append.go @@ -25,7 +25,7 @@ func NewAppendFactory[K any]() ottl.Factory[K] { func createAppendFunction[K any](_ ottl.FunctionContext, oArgs ottl.Arguments) (ottl.ExprFunc[K], error) { args, ok := oArgs.(*AppendArguments[K]) if !ok { - return nil, fmt.Errorf("AppendFactory args must be of type *Appendrguments[K]") + return nil, fmt.Errorf("AppendFactory args must be of type *AppendArguments[K]") } return appendTo(args.Target, args.Value, args.Values) From 2192750f3dd4e1c56b0c3e80d651d038c178c0f1 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 17:16:53 -0500 Subject: [PATCH 018/450] spelling: applicable Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/kineticaexporter/metrics_exporter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/kineticaexporter/metrics_exporter.go b/exporter/kineticaexporter/metrics_exporter.go index f8036b35ac92..8241520af74d 100644 --- a/exporter/kineticaexporter/metrics_exporter.go +++ b/exporter/kineticaexporter/metrics_exporter.go @@ -376,7 +376,7 @@ func (e *kineticaMetricsExporter) pushMetricsData(_ context.Context, md pmetric. // createSummaryRecord - creates a Summary type record // -// @receiver e - Method aplicable to [kineticaMetricsExporter] +// @receiver e - Method applicable to [kineticaMetricsExporter] // @param resAttr - a map of key to value of resource attributes // @param _ schemaURL - unused // @param scopeInstr - the instrumentation scope From 0de9213f20e7683a9779c84a8ce7034b000f5238 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 17:17:31 -0500 Subject: [PATCH 019/450] spelling: applies Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../schemaprocessor/internal/migrate/conditional_test.go | 4 ++-- .../internal/migrate/multi_conditional_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/processor/schemaprocessor/internal/migrate/conditional_test.go b/processor/schemaprocessor/internal/migrate/conditional_test.go index de6e5cad298c..18db1f9186f4 100644 --- a/processor/schemaprocessor/internal/migrate/conditional_test.go +++ b/processor/schemaprocessor/internal/migrate/conditional_test.go @@ -48,7 +48,7 @@ func TestConditionalAttributeSetApply(t *testing.T) { }), }, { - name: "No condition set, applys to all", + name: "No condition set, applies to all", cond: NewConditionalAttributeSet[string]( map[string]string{ "service.version": "application.version", @@ -127,7 +127,7 @@ func TestConditionalAttributeSetRollback(t *testing.T) { }), }, { - name: "No condition set, applys to all", + name: "No condition set, applies to all", cond: NewConditionalAttributeSet[string]( map[string]string{ "service.version": "application.version", diff --git a/processor/schemaprocessor/internal/migrate/multi_conditional_test.go b/processor/schemaprocessor/internal/migrate/multi_conditional_test.go index 98c2c204b43a..5f81d6d4dbbf 100644 --- a/processor/schemaprocessor/internal/migrate/multi_conditional_test.go +++ b/processor/schemaprocessor/internal/migrate/multi_conditional_test.go @@ -49,7 +49,7 @@ func TestMultiConditionalAttributeSetApply(t *testing.T) { }), }, { - name: "No condition set, applys to all", + name: "No condition set, applies to all", cond: NewMultiConditionalAttributeSet[string]( map[string]string{ "service.version": "application.version", From 15f36cc0d98f627ebc663e702828616ce9c59453 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 17:11:13 -0500 Subject: [PATCH 020/450] spelling: arguments Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/ottl/ottlfuncs/func_convert_attributes_to_elements_xml.go | 2 +- pkg/ottl/ottlfuncs/func_convert_text_to_elements_xml.go | 2 +- pkg/ottl/ottlfuncs/func_get_xml.go | 2 +- pkg/ottl/ottlfuncs/func_insert_xml.go | 2 +- pkg/ottl/ottlfuncs/func_parse_simplified_xml.go | 2 +- pkg/ottl/ottlfuncs/func_remove_xml.go | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg/ottl/ottlfuncs/func_convert_attributes_to_elements_xml.go b/pkg/ottl/ottlfuncs/func_convert_attributes_to_elements_xml.go index 64d4ecc5fde5..3ed591adffb3 100644 --- a/pkg/ottl/ottlfuncs/func_convert_attributes_to_elements_xml.go +++ b/pkg/ottl/ottlfuncs/func_convert_attributes_to_elements_xml.go @@ -25,7 +25,7 @@ func createConvertAttributesToElementsXMLFunction[K any](_ ottl.FunctionContext, args, ok := oArgs.(*ConvertAttributesToElementsXMLArguments[K]) if !ok { - return nil, fmt.Errorf("ConvertAttributesToElementsXML args must be of type *ConvertAttributesToElementsXMLAguments[K]") + return nil, fmt.Errorf("ConvertAttributesToElementsXML args must be of type *ConvertAttributesToElementsXMLArguments[K]") } xPath := args.XPath.Get() diff --git a/pkg/ottl/ottlfuncs/func_convert_text_to_elements_xml.go b/pkg/ottl/ottlfuncs/func_convert_text_to_elements_xml.go index a0fb108c4069..ae0ce004881a 100644 --- a/pkg/ottl/ottlfuncs/func_convert_text_to_elements_xml.go +++ b/pkg/ottl/ottlfuncs/func_convert_text_to_elements_xml.go @@ -26,7 +26,7 @@ func createConvertTextToElementsXMLFunction[K any](_ ottl.FunctionContext, oArgs args, ok := oArgs.(*ConvertTextToElementsXMLArguments[K]) if !ok { - return nil, fmt.Errorf("ConvertTextToElementsXML args must be of type *ConvertTextToElementsXMLAguments[K]") + return nil, fmt.Errorf("ConvertTextToElementsXML args must be of type *ConvertTextToElementsXMLArguments[K]") } xPath := args.XPath.Get() diff --git a/pkg/ottl/ottlfuncs/func_get_xml.go b/pkg/ottl/ottlfuncs/func_get_xml.go index c344dd5b8efe..ae77c18f937f 100644 --- a/pkg/ottl/ottlfuncs/func_get_xml.go +++ b/pkg/ottl/ottlfuncs/func_get_xml.go @@ -25,7 +25,7 @@ func createGetXMLFunction[K any](_ ottl.FunctionContext, oArgs ottl.Arguments) ( args, ok := oArgs.(*GetXMLArguments[K]) if !ok { - return nil, fmt.Errorf("GetXML args must be of type *GetXMLAguments[K]") + return nil, fmt.Errorf("GetXML args must be of type *GetXMLArguments[K]") } if err := validateXPath(args.XPath); err != nil { diff --git a/pkg/ottl/ottlfuncs/func_insert_xml.go b/pkg/ottl/ottlfuncs/func_insert_xml.go index 778b16938a07..479e54c07ac2 100644 --- a/pkg/ottl/ottlfuncs/func_insert_xml.go +++ b/pkg/ottl/ottlfuncs/func_insert_xml.go @@ -27,7 +27,7 @@ func createInsertXMLFunction[K any](_ ottl.FunctionContext, oArgs ottl.Arguments args, ok := oArgs.(*InsertXMLArguments[K]) if !ok { - return nil, fmt.Errorf("InsertXML args must be of type *InsertXMLAguments[K]") + return nil, fmt.Errorf("InsertXML args must be of type *InsertXMLArguments[K]") } if err := validateXPath(args.XPath); err != nil { diff --git a/pkg/ottl/ottlfuncs/func_parse_simplified_xml.go b/pkg/ottl/ottlfuncs/func_parse_simplified_xml.go index 7e4f1e2753fa..3f9c5fd5eaea 100644 --- a/pkg/ottl/ottlfuncs/func_parse_simplified_xml.go +++ b/pkg/ottl/ottlfuncs/func_parse_simplified_xml.go @@ -25,7 +25,7 @@ func createParseSimplifiedXMLFunction[K any](_ ottl.FunctionContext, oArgs ottl. args, ok := oArgs.(*ParseSimplifiedXMLArguments[K]) if !ok { - return nil, fmt.Errorf("ParseSimplifiedXML args must be of type *ParseSimplifiedXMLAguments[K]") + return nil, fmt.Errorf("ParseSimplifiedXML args must be of type *ParseSimplifiedXMLArguments[K]") } return parseSimplifiedXML(args.Target), nil diff --git a/pkg/ottl/ottlfuncs/func_remove_xml.go b/pkg/ottl/ottlfuncs/func_remove_xml.go index b45ee74fcd1f..5845d24d0784 100644 --- a/pkg/ottl/ottlfuncs/func_remove_xml.go +++ b/pkg/ottl/ottlfuncs/func_remove_xml.go @@ -27,7 +27,7 @@ func createRemoveXMLFunction[K any](_ ottl.FunctionContext, oArgs ottl.Arguments args, ok := oArgs.(*RemoveXMLArguments[K]) if !ok { - return nil, fmt.Errorf("RemoveXML args must be of type *RemoveXMLAguments[K]") + return nil, fmt.Errorf("RemoveXML args must be of type *RemoveXMLArguments[K]") } if err := validateXPath(args.XPath); err != nil { From bd253375ed7b965cd538133006e745481720fca9 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 17:18:02 -0500 Subject: [PATCH 021/450] spelling: arithmetic Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- processor/metricsgenerationprocessor/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/processor/metricsgenerationprocessor/config.go b/processor/metricsgenerationprocessor/config.go index d9be98b559f0..54c857c5604b 100644 --- a/processor/metricsgenerationprocessor/config.go +++ b/processor/metricsgenerationprocessor/config.go @@ -61,7 +61,7 @@ type GenerationType string const ( - // Generates a new metric applying an arithmatic operation with two operands + // Generates a new metric applying an arithmetic operation with two operands calculate GenerationType = "calculate" // Generates a new metric scaling the value of s given metric with a provided constant From 711c06bafffeaf352353adca0877d61c2ac2a6a2 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 17:18:16 -0500 Subject: [PATCH 022/450] spelling: associated Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/snowflakereceiver/documentation.md | 6 +++--- receiver/snowflakereceiver/metadata.yaml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/receiver/snowflakereceiver/documentation.md b/receiver/snowflakereceiver/documentation.md index 9847fef0405a..23bf637616ef 100644 --- a/receiver/snowflakereceiver/documentation.md +++ b/receiver/snowflakereceiver/documentation.md @@ -306,7 +306,7 @@ Reported total credits used in the cloud service over the last 24 hour window. | Name | Description | Values | | ---- | ----------- | ------ | -| service_type | Service type associateed with metric query. | Any Str | +| service_type | Service type associated with metric query. | Any Str | ### snowflake.billing.total_credit.total @@ -320,7 +320,7 @@ Reported total credits used across account over the last 24 hour window. | Name | Description | Values | | ---- | ----------- | ------ | -| service_type | Service type associateed with metric query. | Any Str | +| service_type | Service type associated with metric query. | Any Str | ### snowflake.billing.virtual_warehouse.total @@ -334,7 +334,7 @@ Reported total credits used by virtual warehouse service over the last 24 hour w | Name | Description | Values | | ---- | ----------- | ------ | -| service_type | Service type associateed with metric query. | Any Str | +| service_type | Service type associated with metric query. | Any Str | ### snowflake.billing.warehouse.cloud_service.total diff --git a/receiver/snowflakereceiver/metadata.yaml b/receiver/snowflakereceiver/metadata.yaml index 335110846567..023a47cd7c53 100644 --- a/receiver/snowflakereceiver/metadata.yaml +++ b/receiver/snowflakereceiver/metadata.yaml @@ -17,7 +17,7 @@ resource_attributes: attributes: service_type: - description: Service type associateed with metric query. + description: Service type associated with metric query. type: string error_message: description: Error message reported by query if present. From a6623d2c98fe9e7ed9ea622f16c26a8ba590435a Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 17:18:22 -0500 Subject: [PATCH 023/450] spelling: asymmetrical Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- connector/routingconnector/internal/plogutiltest/logs_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connector/routingconnector/internal/plogutiltest/logs_test.go b/connector/routingconnector/internal/plogutiltest/logs_test.go index c00cef21bec4..7863cc5fcd8a 100644 --- a/connector/routingconnector/internal/plogutiltest/logs_test.go +++ b/connector/routingconnector/internal/plogutiltest/logs_test.go @@ -104,7 +104,7 @@ func TestNewLogs(t *testing.T) { ))) }) - t.Run("asymetrical_scopes", func(t *testing.T) { + t.Run("asymmetrical_scopes", func(t *testing.T) { expected := func() plog.Logs { ld := plog.NewLogs() r := ld.ResourceLogs().AppendEmpty() From 011b364fd8c61d85f184086ce94bb305b7c45489 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 17:18:31 -0500 Subject: [PATCH 024/450] spelling: asynchronous Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/stanza/adapter/receiver_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/stanza/adapter/receiver_test.go b/pkg/stanza/adapter/receiver_test.go index 1e08e9498e24..497c010f98d2 100644 --- a/pkg/stanza/adapter/receiver_test.go +++ b/pkg/stanza/adapter/receiver_test.go @@ -52,7 +52,7 @@ func TestStart(t *testing.T) { stanzaReceiver.consumeEntries(context.Background(), []*entry.Entry{entry.New()}) - // Eventually because of asynchronuous nature of the receiver. + // Eventually because of asynchronous nature of the receiver. require.Equal(t, 1, mockConsumer.LogRecordCount()) require.NoError(t, logsReceiver.Shutdown(context.Background())) @@ -87,7 +87,7 @@ func TestHandleConsume(t *testing.T) { stanzaReceiver.consumeEntries(context.Background(), []*entry.Entry{entry.New()}) - // Eventually because of asynchronuous nature of the receiver. + // Eventually because of asynchronous nature of the receiver. require.Eventually(t, func() bool { return mockConsumer.LogRecordCount() == 1 @@ -155,7 +155,7 @@ func TestShutdownFlush(t *testing.T) { close(closeCh) - // Eventually because of asynchronuous nature of the receiver. + // Eventually because of asynchronous nature of the receiver. require.EventuallyWithT(t, func(t *assert.CollectT) { assert.Equal(t, consumedLogCount.Load(), int32(mockConsumer.LogRecordCount())) From 1be5397736e090a350495deb7eef970b10887895 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 17:18:26 -0500 Subject: [PATCH 025/450] spelling: asynchronously Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/stanza/docs/operators/udp_input.md | 2 +- receiver/udplogreceiver/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/stanza/docs/operators/udp_input.md b/pkg/stanza/docs/operators/udp_input.md index 5f3bd43dac5e..0d02bbdb37d9 100644 --- a/pkg/stanza/docs/operators/udp_input.md +++ b/pkg/stanza/docs/operators/udp_input.md @@ -48,7 +48,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 & process lines synchronously. diff --git a/receiver/udplogreceiver/README.md b/receiver/udplogreceiver/README.md index c08c85d594fc..a401361fd75b 100644 --- a/receiver/udplogreceiver/README.md +++ b/receiver/udplogreceiver/README.md @@ -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. From 4f0c328dc7acea75a95cbef1ace1926dd441b801 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 17:18:54 -0500 Subject: [PATCH 026/450] spelling: attachment Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../internal/host/ebsvolume.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/receiver/awscontainerinsightreceiver/internal/host/ebsvolume.go b/receiver/awscontainerinsightreceiver/internal/host/ebsvolume.go index e2e98a3e5ea4..a9a3f3b2e261 100644 --- a/receiver/awscontainerinsightreceiver/internal/host/ebsvolume.go +++ b/receiver/awscontainerinsightreceiver/internal/host/ebsvolume.go @@ -125,16 +125,16 @@ func (e *ebsVolume) refresh(ctx context.Context) { } } -func (e *ebsVolume) addEBSVolumeMapping(zone *string, attachement *ec2.VolumeAttachment) string { - // *attachement.Device is sth like: /dev/xvda - devPath := e.findNvmeBlockNameIfPresent(*attachement.Device) +func (e *ebsVolume) addEBSVolumeMapping(zone *string, attachment *ec2.VolumeAttachment) string { + // *attachment.Device is sth like: /dev/xvda + devPath := e.findNvmeBlockNameIfPresent(*attachment.Device) if devPath == "" { - devPath = *attachement.Device + devPath = *attachment.Device } e.mu.Lock() defer e.mu.Unlock() - e.dev2Vol[devPath] = fmt.Sprintf("aws://%s/%s", *zone, *attachement.VolumeId) + e.dev2Vol[devPath] = fmt.Sprintf("aws://%s/%s", *zone, *attachment.VolumeId) return devPath } From a4cf948437d2c4ef9df2c453aeffa269b7b76bf8 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 17:18:49 -0500 Subject: [PATCH 027/450] spelling: attribute Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/kineticaexporter/metrics_exporter.go | 20 +++++++++---------- exporter/kineticaexporter/writer.go | 2 +- .../jaeger/jaegerproto_to_traces.go | 4 ++-- .../logdedupprocessor/field_remover_test.go | 2 +- receiver/snmpreceiver/README.md | 4 ++-- 5 files changed, 16 insertions(+), 16 deletions(-) diff --git a/exporter/kineticaexporter/metrics_exporter.go b/exporter/kineticaexporter/metrics_exporter.go index 8241520af74d..17dd7cc98b2d 100644 --- a/exporter/kineticaexporter/metrics_exporter.go +++ b/exporter/kineticaexporter/metrics_exporter.go @@ -40,15 +40,15 @@ type kineticaSumRecord struct { } type kineticaHistogramRecord struct { - histogram *Histogram - histogramResourceAttribute []HistogramResourceAttribute - histogramScopeAttribute []HistogramScopeAttribute - histogramDatapoint []HistogramDatapoint - histogramDatapointAtribute []HistogramDataPointAttribute - histogramBucketCount []HistogramDatapointBucketCount - histogramExplicitBound []HistogramDatapointExplicitBound - exemplars []HistogramDatapointExemplar - exemplarAttribute []HistogramDataPointExemplarAttribute + histogram *Histogram + histogramResourceAttribute []HistogramResourceAttribute + histogramScopeAttribute []HistogramScopeAttribute + histogramDatapoint []HistogramDatapoint + histogramDatapointAttribute []HistogramDataPointAttribute + histogramBucketCount []HistogramDatapointBucketCount + histogramExplicitBound []HistogramDatapointExplicitBound + exemplars []HistogramDatapointExemplar + exemplarAttribute []HistogramDataPointExemplarAttribute } type kineticaExponentialHistogramRecord struct { @@ -815,7 +815,7 @@ func (e *kineticaMetricsExporter) createHistogramRecord(resAttr pcommon.Map, _ s datapointAttribute = append(datapointAttribute, *sa) } } - kiHistogramRecord.histogramDatapointAtribute = append(kiHistogramRecord.histogramDatapointAtribute, datapointAttribute...) + kiHistogramRecord.histogramDatapointAttribute = append(kiHistogramRecord.histogramDatapointAttribute, datapointAttribute...) for k := range datapointAttributes { delete(datapointAttributes, k) diff --git a/exporter/kineticaexporter/writer.go b/exporter/kineticaexporter/writer.go index 6cfb2655ddba..cb5811971b88 100644 --- a/exporter/kineticaexporter/writer.go +++ b/exporter/kineticaexporter/writer.go @@ -632,7 +632,7 @@ func (kiwriter *KiWriter) persistHistogramRecord(histogramRecords []kineticaHist datapoints = append(datapoints, dp) } - for _, dpattr := range histogramrecord.histogramDatapointAtribute { + for _, dpattr := range histogramrecord.histogramDatapointAttribute { datapointAttributes = append(datapointAttributes, dpattr) } diff --git a/pkg/translator/jaeger/jaegerproto_to_traces.go b/pkg/translator/jaeger/jaegerproto_to_traces.go index a0864b24cf10..7ee02de5397f 100644 --- a/pkg/translator/jaeger/jaegerproto_to_traces.go +++ b/pkg/translator/jaeger/jaegerproto_to_traces.go @@ -151,7 +151,7 @@ func jProcessToInternalResource(process *model.Process, dest pcommon.Resource) { translateJaegerVersionAttr(attrs) } -// translateHostnameAttr translates "hostname" atttribute +// translateHostnameAttr translates "hostname" attribute func translateHostnameAttr(attrs pcommon.Map) { hostname, hostnameFound := attrs.Get("hostname") _, convHostNameFound := attrs.Get(conventions.AttributeHostName) @@ -161,7 +161,7 @@ func translateHostnameAttr(attrs pcommon.Map) { } } -// translateHostnameAttr translates "jaeger.version" atttribute +// translateHostnameAttr translates "jaeger.version" attribute func translateJaegerVersionAttr(attrs pcommon.Map) { jaegerVersion, jaegerVersionFound := attrs.Get("jaeger.version") _, exporterVersionFound := attrs.Get(occonventions.AttributeExporterVersion) diff --git a/processor/logdedupprocessor/field_remover_test.go b/processor/logdedupprocessor/field_remover_test.go index 173bee6b2e9e..9972acd3ee9d 100644 --- a/processor/logdedupprocessor/field_remover_test.go +++ b/processor/logdedupprocessor/field_remover_test.go @@ -73,7 +73,7 @@ func TestRemoveFields(t *testing.T) { nestedAttrMap := logRecord.Attributes().PutEmptyMap("nested") nestedAttrMap.PutInt("int", 2) - // Expected attribut map + // Expected attribute map expectedAttrsMap := pcommon.NewMap() expectedAttrsMap.PutStr("str", "attr str") expectedAttrHash := pdatautil.MapHash(expectedAttrsMap) diff --git a/receiver/snmpreceiver/README.md b/receiver/snmpreceiver/README.md index 7083140b19fe..fe2c7cedf63b 100644 --- a/receiver/snmpreceiver/README.md +++ b/receiver/snmpreceiver/README.md @@ -126,14 +126,14 @@ Attribute configurations are used to define what resource attributes will be use | -- | -- | -- | -- | | `oid` | The SNMP scalar OID value to grab data from (must end in .0). | string | | | `resource_attributes` | The names of the related resource attribute configurations, allowing scalar oid metrics to be added to resources that have one or more scalar oid resource attributes. Cannot have indexed resource attributes as values. | string[] | | -| `attributes` | The names of the related attribute enum configurations as well as the values to attach to this returned SNMP scalar data. This can be used to have a metric config with multiple ScalarOIDs as different datapoints with different attributue values within the same metric | Attribute | | +| `attributes` | The names of the related attribute enum configurations as well as the values to attach to this returned SNMP scalar data. This can be used to have a metric config with multiple ScalarOIDs as different datapoints with different attribute values within the same metric | Attribute | | #### ColumnOID Configuration | Field Name | Description | Value | Default | | -- | -- | -- | -- | | `oid` | The SNMP scalar OID value to grab data from (must end in .0). | string | | -| `attributes` | The names of the related attribute configurations as well as the enum values to attach to this returned SNMP indexed data if the attribute configuration has enum data. This can be used to attach a specific metric SNMP column OID to an attribute. In doing so, multiple datapoints for a single metric will be created for each returned SNMP indexed data value for the metric along with different attribute values to differentiate them. This also can be used to have a metric config with multiple ColumnOIDs as different datapoints with different attributue values within the same metric | Attribute[] | | +| `attributes` | The names of the related attribute configurations as well as the enum values to attach to this returned SNMP indexed data if the attribute configuration has enum data. This can be used to attach a specific metric SNMP column OID to an attribute. In doing so, multiple datapoints for a single metric will be created for each returned SNMP indexed data value for the metric along with different attribute values to differentiate them. This also can be used to have a metric config with multiple ColumnOIDs as different datapoints with different attribute values within the same metric | Attribute[] | | | `resource_attributes` | The names of the related resource attribute configurations. This is used to attach a specific metric SNMP column OID to a resource attribute. In doing so, multiple resources will be created for each returned SNMP indexed data value for the metric | string[] | | #### Attribute From 1c69796ae51e09feb5ebadd04437fcb8ff7f492a Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 17:18:59 -0500 Subject: [PATCH 028/450] spelling: attributes Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 6 +++--- exporter/awsemfexporter/config.go | 2 +- pkg/stanza/operator/input/tcp/input_test.go | 2 +- .../translate_docker_metrics_processor_test.go | 2 +- processor/transformprocessor/README.md | 8 ++++---- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 50978cd25d0f..708eb3734f6b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2907,7 +2907,7 @@ This release fixes CVE-2024-42368 on the `bearerauthtokenextension` (#34516) - `processor/routing`: When using attributes instead of resource attributes, the routing processor would crash the collector. This does not affect the connector version of this component. (#26462) - `awsemfexporter`: Fix possible panic in when configuration option `awsemf.output_destination:stdout` is set (#26250) - `snmpreceiver`: Fix how to determine how many RAs on a metric are scalar (#26363) - We now create the proper number of resources for configurations where a resource uses fewer than the available number of scalar resource attribtues. + We now create the proper number of resources for configurations where a resource uses fewer than the available number of scalar resource attributes. - `processor/tailsampling`: Added saving instrumentation library information for tail-sampling (#13642) - `receiver/kubeletstats`: Fixes client to refresh service account token when authenticating with kubelet (#26120) - `datadogexporter`: Fixes crash when mapping OTLP Exponential Histograms with no buckets. These will now be dropped instead. (#26103) @@ -2937,7 +2937,7 @@ This release fixes CVE-2024-42368 on the `bearerauthtokenextension` (#34516) - `redisreceiver`: Adding username parameter for connecting to redis (#24408) - `postgresqlreceiver`: Added `postgresql.temp_files` metric. (#26080) -- `receiver/azuremonitor`: Added new attrbutes to the metrics like name, type and resource_group. (#24774) +- `receiver/azuremonitor`: Added new attributes to the metrics like name, type and resource_group. (#24774) - `clickhouseexporter`: Change writing of metrics data to batch (#24403) - `signalfxexporter`: Added a mechanism to drop histogram buckets (#25845) - `journaldreceiver`: add support for identifiers (#20295) @@ -3962,7 +3962,7 @@ This release fixes CVE-2024-42368 on the `bearerauthtokenextension` (#34516) Add emf and raw log support for aws cloudwatch exporter. - `awsemfexporter`: The AWS EMF exporter now supports the additional configuration flag `retain_initial_value_of_delta_metric`. With this flag active the first value of a metric is not discarded but instead sent to AWS. (#16218) - `processor/tailsampling`: adds support for a BooleanAttribute PolicyType (#17545) - enables use of boolean attrbiutes in defining tail sampling policies + enables use of boolean attributes in defining tail sampling policies - `pkg/stanza`: Add `header_delimiter` option to the `csv_parser`. (#18198) - `datadogexporter`: Enable gzip compression for metric payloads submitted by native Datadog client (#17373) - `hostmetrics`: Have the hostmetrics receiver file system scraper use more debug messages (#18236) diff --git a/exporter/awsemfexporter/config.go b/exporter/awsemfexporter/config.go index 7495277e1c2a..ca3e8249fd74 100644 --- a/exporter/awsemfexporter/config.go +++ b/exporter/awsemfexporter/config.go @@ -73,7 +73,7 @@ type Config struct { // Note that at the moment in order to use this feature the value "kubernetes" must also be added to the ParseJSONEncodedAttributeValues array in order to be used EKSFargateContainerInsightsEnabled bool `mapstructure:"eks_fargate_container_insights_enabled"` - // ResourceToTelemetrySettings is an option for converting resource attrihutes to telemetry attributes. + // ResourceToTelemetrySettings is an option for converting resource attributes to telemetry attributes. // "Enabled" - A boolean field to enable/disable this option. Default is `false`. // If enabled, all the resource attributes will be converted to metric labels by default. ResourceToTelemetrySettings resourcetotelemetry.Settings `mapstructure:"resource_to_telemetry_conversion"` diff --git a/pkg/stanza/operator/input/tcp/input_test.go b/pkg/stanza/operator/input/tcp/input_test.go index 359385f17b5d..7face5cef98a 100644 --- a/pkg/stanza/operator/input/tcp/input_test.go +++ b/pkg/stanza/operator/input/tcp/input_test.go @@ -364,7 +364,7 @@ func TestTCPInput(t *testing.T) { t.Run("CarriageReturn", tcpInputTest([]byte("message\r\n"), []string{"message"})) } -func TestTCPInputAattributes(t *testing.T) { +func TestTCPInputAttributes(t *testing.T) { t.Run("Simple", tcpInputAttributesTest([]byte("message\n"), []string{"message"})) t.Run("CarriageReturn", tcpInputAttributesTest([]byte("message\r\n"), []string{"message"})) } diff --git a/processor/sumologicprocessor/translate_docker_metrics_processor_test.go b/processor/sumologicprocessor/translate_docker_metrics_processor_test.go index a6dd12f78ae6..5f3c871bdc87 100644 --- a/processor/sumologicprocessor/translate_docker_metrics_processor_test.go +++ b/processor/sumologicprocessor/translate_docker_metrics_processor_test.go @@ -77,7 +77,7 @@ func TestTranslateDockerMetric_NamesAreTranslatedCorrectly(t *testing.T) { } } -func TestTranslateDockerMetric_ResourceAttrbutesAreTranslatedCorrectly(t *testing.T) { +func TestTranslateDockerMetric_ResourceAttributesAreTranslatedCorrectly(t *testing.T) { testcases := []struct { nameIn string nameOut string diff --git a/processor/transformprocessor/README.md b/processor/transformprocessor/README.md index c207dbdf63b8..4651ab6be710 100644 --- a/processor/transformprocessor/README.md +++ b/processor/transformprocessor/README.md @@ -264,7 +264,7 @@ The `extract_count_metric` function creates a new Sum metric from a Histogram, E `is_monotonic` is a boolean representing the monotonicity of the new metric. -The name for the new metric will be `_count`. The fields that are copied are: `timestamp`, `starttimestamp`, `attibutes`, `description`, and `aggregation_temporality`. As metrics of type Summary don't have an `aggregation_temporality` field, this field will be set to `AGGREGATION_TEMPORALITY_CUMULATIVE` for those metrics. +The name for the new metric will be `_count`. The fields that are copied are: `timestamp`, `starttimestamp`, `attributes`, `description`, and `aggregation_temporality`. As metrics of type Summary don't have an `aggregation_temporality` field, this field will be set to `AGGREGATION_TEMPORALITY_CUMULATIVE` for those metrics. The new metric that is created will be passed to all subsequent statements in the metrics statements list. @@ -288,7 +288,7 @@ The `extract_sum_metric` function creates a new Sum metric from a Histogram, Exp `is_monotonic` is a boolean representing the monotonicity of the new metric. -The name for the new metric will be `_sum`. The fields that are copied are: `timestamp`, `starttimestamp`, `attibutes`, `description`, and `aggregation_temporality`. As metrics of type Summary don't have an `aggregation_temporality` field, this field will be set to `AGGREGATION_TEMPORALITY_CUMULATIVE` for those metrics. +The name for the new metric will be `_sum`. The fields that are copied are: `timestamp`, `starttimestamp`, `attributes`, `description`, and `aggregation_temporality`. As metrics of type Summary don't have an `aggregation_temporality` field, this field will be set to `AGGREGATION_TEMPORALITY_CUMULATIVE` for those metrics. The new metric that is created will be passed to all subsequent statements in the metrics statements list. @@ -309,7 +309,7 @@ The `convert_summary_count_val_to_sum` function creates a new Sum metric from a `aggregation_temporality` is a string (`"cumulative"` or `"delta"`) representing the desired aggregation temporality of the new metric. `is_monotonic` is a boolean representing the monotonicity of the new metric. -The name for the new metric will be `_count`. The fields that are copied are: `timestamp`, `starttimestamp`, `attibutes`, and `description`. The new metric that is created will be passed to all functions in the metrics statements list. Function conditions will apply. +The name for the new metric will be `_count`. The fields that are copied are: `timestamp`, `starttimestamp`, `attributes`, and `description`. The new metric that is created will be passed to all functions in the metrics statements list. Function conditions will apply. **NOTE:** This function may cause a metric to break semantics for [Sum metrics](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/data-model.md#sums). Use at your own risk. @@ -328,7 +328,7 @@ The `convert_summary_sum_val_to_sum` function creates a new Sum metric from a Su `aggregation_temporality` is a string (`"cumulative"` or `"delta"`) representing the desired aggregation temporality of the new metric. `is_monotonic` is a boolean representing the monotonicity of the new metric. -The name for the new metric will be `_sum`. The fields that are copied are: `timestamp`, `starttimestamp`, `attibutes`, and `description`. The new metric that is created will be passed to all functions in the metrics statements list. Function conditions will apply. +The name for the new metric will be `_sum`. The fields that are copied are: `timestamp`, `starttimestamp`, `attributes`, and `description`. The new metric that is created will be passed to all functions in the metrics statements list. Function conditions will apply. **NOTE:** This function may cause a metric to break semantics for [Sum metrics](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/data-model.md#sums). Use at your own risk. From f335b6aef5593ffda10c3fa6f6bdefd8729f7068 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 17:20:13 -0500 Subject: [PATCH 029/450] spelling: authenticated Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/vcenterreceiver/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) From 5839e636bae7ef4b91aa5e85660369c9afe79ece Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 17:20:20 -0500 Subject: [PATCH 030/450] spelling: authentication Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/huaweicloudcesreceiver/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/receiver/huaweicloudcesreceiver/README.md b/receiver/huaweicloudcesreceiver/README.md index 28e006ebe991..a874006d42d0 100644 --- a/receiver/huaweicloudcesreceiver/README.md +++ b/receiver/huaweicloudcesreceiver/README.md @@ -38,9 +38,9 @@ The following settings are required: - `no_verify_ssl`: A boolean flag indicating whether SSL verification should be disabled. Set to True to disable SSL verification. -- `access_key`: The access key needed for CES authentification. Check `Huawei Cloud SDK Authentication Setup` section for more details. +- `access_key`: The access key needed for CES authentication. Check `Huawei Cloud SDK Authentication Setup` section for more details. -- `secret_key`: The secret key needed for CES authentification. Check `Huawei Cloud SDK Authentication Setup` section for more details. +- `secret_key`: The secret key needed for CES authentication. Check `Huawei Cloud SDK Authentication Setup` section for more details. The following settings are optional: From f77b0915c9ace2601e6353c01ce86c6f8ae55872 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 17:20:36 -0500 Subject: [PATCH 031/450] spelling: awesome Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/stanza/docs/operators/container.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/stanza/docs/operators/container.md b/pkg/stanza/docs/operators/container.md index 9935c04b3ddc..3cf3e8746469 100644 --- a/pkg/stanza/docs/operators/container.md +++ b/pkg/stanza/docs/operators/container.md @@ -219,7 +219,7 @@ Configuration: } { "timestamp": "", - "body": "2023-06-22T10:27:25.813799277Z stdout F s super awesomne", + "body": "2023-06-22T10:27:25.813799277Z stdout F s super awesome", "log.file.path": "/var/log/pods/some_kube-controller-kind-control-plane_49cc7c1fd3702c40b2686ea7486091d6/kube-controller/1.log" } ``` From 15852b36f4284a8e6de9d802b3c5f3fa3e6c9710 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 17:21:35 -0500 Subject: [PATCH 032/450] spelling: batch Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/splunkhecexporter/client_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/exporter/splunkhecexporter/client_test.go b/exporter/splunkhecexporter/client_test.go index 24f611458dda..62c8f67508d3 100644 --- a/exporter/splunkhecexporter/client_test.go +++ b/exporter/splunkhecexporter/client_test.go @@ -1716,7 +1716,7 @@ func Benchmark_pushLogData_compressed_10_10_1024(b *testing.B) { benchPushLogData(b, 10, 10, 1024, true) } -// 10 resources, 10 records, 8Kb max HEC batch: 1 HEC batche +// 10 resources, 10 records, 8Kb max HEC batch: 1 HEC batch func Benchmark_pushLogData_compressed_10_10_8K(b *testing.B) { benchPushLogData(b, 10, 10, 8*1024, true) } @@ -1805,7 +1805,7 @@ func Benchmark_pushMetricData_compressed_10_10_1024(b *testing.B) { benchPushMetricData(b, 10, 10, 1024, true, false) } -// 10 resources, 10 records, 8Kb max HEC batch: 1 HEC batche +// 10 resources, 10 records, 8Kb max HEC batch: 1 HEC batch func Benchmark_pushMetricData_compressed_10_10_8K(b *testing.B) { benchPushMetricData(b, 10, 10, 8*1024, true, false) } @@ -1865,7 +1865,7 @@ func Benchmark_pushMetricData_compressed_10_10_1024_MultiMetric(b *testing.B) { benchPushMetricData(b, 10, 10, 1024, true, true) } -// 10 resources, 10 records, 8Kb max HEC batch: 1 HEC batche +// 10 resources, 10 records, 8Kb max HEC batch: 1 HEC batch func Benchmark_pushMetricData_compressed_10_10_8K_MultiMetric(b *testing.B) { benchPushMetricData(b, 10, 10, 8*1024, true, true) } From be47a456903968682dce28f2a2708975614108ad Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 08:05:37 -0500 Subject: [PATCH 033/450] spelling: be Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/prometheusremotewriteexporter/exporter_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/prometheusremotewriteexporter/exporter_test.go b/exporter/prometheusremotewriteexporter/exporter_test.go index ae8d930edf88..56dc9d7298cc 100644 --- a/exporter/prometheusremotewriteexporter/exporter_test.go +++ b/exporter/prometheusremotewriteexporter/exporter_test.go @@ -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. require.NoError(t, prwe.Shutdown(ctx)) // 3. Let's now read back all of the WAL records and ensure From 2193bded7ca4c32f1e07a5fef1da8fe83aede49d Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 17:22:05 -0500 Subject: [PATCH 034/450] spelling: because Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- internal/coreinternal/attraction/attraction_test.go | 4 ++-- .../internal/scraper/githubscraper/schema.graphql | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/coreinternal/attraction/attraction_test.go b/internal/coreinternal/attraction/attraction_test.go index 6d2b3cbe5441..275eeac52a64 100644 --- a/internal/coreinternal/attraction/attraction_test.go +++ b/internal/coreinternal/attraction/attraction_test.go @@ -87,13 +87,13 @@ func TestAttributes_InsertValue(t *testing.T) { func TestAttributes_InsertFromAttribute(t *testing.T) { testCases := []testCase{ - // Ensure no attribute is inserted because because attributes do not exist. + // Ensure no attribute is inserted because attributes do not exist. { name: "InsertEmptyAttributes", inputAttributes: map[string]any{}, expectedAttributes: map[string]any{}, }, - // Ensure no attribute is inserted because because from_attribute `string_key` does not exist. + // Ensure no attribute is inserted because from_attribute `string_key` does not exist. { name: "InsertMissingFromAttribute", inputAttributes: map[string]any{ diff --git a/receiver/githubreceiver/internal/scraper/githubscraper/schema.graphql b/receiver/githubreceiver/internal/scraper/githubscraper/schema.graphql index c1276a91ad94..960a7aa955bd 100644 --- a/receiver/githubreceiver/internal/scraper/githubscraper/schema.graphql +++ b/receiver/githubreceiver/internal/scraper/githubscraper/schema.graphql @@ -22370,7 +22370,7 @@ enum ThreadSubscriptionState { SUBSCRIBED_TO_THREAD_EVENTS "The User is never notified because they are ignoring the thread" IGNORING_THREAD - "The User is notified becuase they are watching the list" + "The User is notified because they are watching the list" SUBSCRIBED_TO_LIST "The User is notified because they chose custom settings for this thread." SUBSCRIBED_TO_THREAD_TYPE From a7fdd1ad0daa306506f50411f6f1b14359ea19d5 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 17:22:21 -0500 Subject: [PATCH 035/450] spelling: before Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../internal/host/hostinfo_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/receiver/awscontainerinsightreceiver/internal/host/hostinfo_test.go b/receiver/awscontainerinsightreceiver/internal/host/hostinfo_test.go index 21da9ea2ce8c..bd6cd505d428 100644 --- a/receiver/awscontainerinsightreceiver/internal/host/hostinfo_test.go +++ b/receiver/awscontainerinsightreceiver/internal/host/hostinfo_test.go @@ -124,7 +124,7 @@ func TestInfo(t *testing.T) { assert.NoError(t, err) assert.NotNil(t, m) - // befoe ebsVolume and ec2Tags are initialized + // before ebsVolume and ec2Tags are initialized assert.Equal(t, "", m.GetEBSVolumeID("dev")) assert.Equal(t, "", m.GetClusterName()) assert.Equal(t, "", m.GetAutoScalingGroupName()) @@ -201,7 +201,7 @@ func TestInfoForECS(t *testing.T) { assert.NoError(t, err) assert.NotNil(t, m) - // befoe ebsVolume and ec2Tags are initialized + // before ebsVolume and ec2Tags are initialized assert.Equal(t, "", m.GetEBSVolumeID("dev")) assert.Equal(t, "", m.GetAutoScalingGroupName()) From 4acd5989172ee55414f56b87f67921a226d3caf5 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 17:22:10 -0500 Subject: [PATCH 036/450] spelling: being Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 708eb3734f6b..eda6b9b2a409 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3539,7 +3539,7 @@ This release fixes CVE-2024-42368 on the `bearerauthtokenextension` (#34516) - `filelogreceiver`: Fix issue where empty files would not be skipped, resulting in extraneous errors. (#22815) - `servicegraphprocessor`: consume traces even metric count is equal to 0 (#23028) - `fileexporter`: Fixes broken lines when rotation is set. (#22747) -- `receiver/purefareceiver`: Ensure that all endpoints beyond volumes and hosts are beeing scraped. (#14886) +- `receiver/purefareceiver`: Ensure that all endpoints beyond volumes and hosts are being scraped. (#14886) - `exporter/datadog`: `tls::insecure_skip_verify` is now honored when exporting traces. (#22772) - `exporter/splunk_hec`: Make sure the `max_event_size` option is used to drop events larger than `max_event_size` instead of using it for batch size. (#18066) - `httpcheckreceiver`: Update default collection interval to match documented value (#23019) From 341c6ac770b3ebe0b98fb7a4be5a74cafd8ac2eb Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 17:22:42 -0500 Subject: [PATCH 037/450] spelling: below Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/receivercreator/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/receiver/receivercreator/README.md b/receiver/receivercreator/README.md index 4fe12d38bcbe..f7ece3ca8926 100644 --- a/receiver/receivercreator/README.md +++ b/receiver/receivercreator/README.md @@ -458,7 +458,7 @@ receiver_creator/metrics: # ignore_receivers: [] ``` -Find bellow the supported annotations that user can define to automatically enable receivers to start +Find below the supported annotations that user can define to automatically enable receivers to start collecting metrics and logs signals from the target Pods/containers. ### Supported metrics annotations @@ -506,7 +506,7 @@ io.opentelemetry.discovery.metrics.80/config: | where `80` is the port that the target container exposes. If a Pod is annotated with both container level hints and pod level hints the container level hints have priority and -the Pod level hints are used as a fallback (see detailed example bellow). +the Pod level hints are used as a fallback (see detailed example below). The current implementation relies on the implementation of `k8sobserver` extension and specifically the [pod_endpoint](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/v0.111.0/extension/observer/k8sobserver/pod_endpoint.go). @@ -572,7 +572,7 @@ io.opentelemetry.discovery.logs.busybox/config: | where `busybox` is the name of the target container. If a Pod is annotated with both container level hints and pod level hints the container level hints have priority and -the Pod level hints are used as a fallback (see detailed example bellow). +the Pod level hints are used as a fallback (see detailed example below). The current implementation relies on the implementation of `k8sobserver` extension and specifically the [pod_endpoint](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/v0.111.0/extension/observer/k8sobserver/pod_endpoint.go). From 11286c0132ad07643babe7efa5d058c42ee11979 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 17:22:15 -0500 Subject: [PATCH 038/450] spelling: between Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index eda6b9b2a409..d4b20a0620fc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4524,7 +4524,7 @@ This release fixes CVE-2024-42368 on the `bearerauthtokenextension` (#34516) ### 💡 Enhancements 💡 -- `exporter/loki`: Automatic mapping beetwen `LogRecord.SeverityNumber` to `LogRecord.Attributes["level"]` (#14313) +- `exporter/loki`: Automatic mapping between `LogRecord.SeverityNumber` to `LogRecord.Attributes["level"]` (#14313) - `jmxreceiver`: Add the JMX metrics gatherer version 1.20.0-alpha to the supported jars hash list (#16356) - `mongodbreceiver`: Add additional metrics for mongodb locks (#13661) Add additional metrics for locks.acquire_count, locks.acquire_wait_count, locks.deadlock_count, locks.time_acquiring_micros From 4aaacb326f191cf76d6b0b36bfd1271358d7b000 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 08:01:23 -0500 Subject: [PATCH 039/450] spelling: both Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- examples/nomad/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/nomad/README.md b/examples/nomad/README.md index 6b23637c2c75..480ab4660de1 100644 --- a/examples/nomad/README.md +++ b/examples/nomad/README.md @@ -1,6 +1,6 @@ # OpenTelemetry Collector Demo -This demo provides you with all you need to run the OpenTelemetry Collector on a local installation of HashiCorp [Nomad](https://nomadproject.io) using [Traefik](https://traefik.io) as your load balancer. It configures both both HTTP and gRPC endpoints on Traefik. +This demo provides you with all you need to run the OpenTelemetry Collector on a local installation of HashiCorp [Nomad](https://nomadproject.io) using [Traefik](https://traefik.io) as your load balancer. It configures both HTTP and gRPC endpoints on Traefik. For a detailed, step-by-step tutorial on how to run the files included in this directory, check out [Just-in-Time Nomad: Running the OpenTelemetry Collector on HashiCorp Nomad with HashiQube](https://storiesfromtheherd.com/just-in-time-nomad-running-the-opentelemetry-collector-on-hashicorp-nomad-with-hashiqube-4eaf009b8382). From e1550ab6e729ac7a21fcd64c5d3a2994dcbbdcc3 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 17:25:26 -0500 Subject: [PATCH 040/450] spelling: buffer Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/stanza/split/split.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/stanza/split/split.go b/pkg/stanza/split/split.go index 310a8f031c66..c8efdabeced3 100644 --- a/pkg/stanza/split/split.go +++ b/pkg/stanza/split/split.go @@ -80,7 +80,7 @@ func LineStartSplitFunc(re *regexp.Regexp, omitPattern bool, flushAtEOF bool) bu } if firstMatchEnd == len(data) { - // the first match goes to the end of the bufer, so don't look for a second match + // the first match goes to the end of the buffer, so don't look for a second match return 0, nil, nil } @@ -122,7 +122,7 @@ func LineEndSplitFunc(re *regexp.Regexp, omitPattern bool, flushAtEOF bool) bufi return 0, nil, nil // read more data and try again } - // If the match goes up to the end of the current bufer, do another + // If the match goes up to the end of the current buffer, do another // read until we can capture the entire match if loc[1] == len(data)-1 && !atEOF { return 0, nil, nil From 63e78fd747e55daf8d90f1ae2870e5196c120462 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 17:25:47 -0500 Subject: [PATCH 041/450] spelling: builder Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/sumologicexporter/prometheus_formatter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/sumologicexporter/prometheus_formatter.go b/exporter/sumologicexporter/prometheus_formatter.go index b33a18398b10..24d64ba279f7 100644 --- a/exporter/sumologicexporter/prometheus_formatter.go +++ b/exporter/sumologicexporter/prometheus_formatter.go @@ -96,7 +96,7 @@ func formatKeyValuePair(key []byte, value string) string { // stringsJoinAndSurround joins the strings in s slice using the separator adds front // to the front of the resulting string and back at the end. // -// This has a benefit over using the strings.Join() of using just one strings.Buidler +// This has a benefit over using the strings.Join() of using just one strings.Builder // instance and hence using less allocations to produce the final string. func stringsJoinAndSurround(s []string, separator, front, back string) string { switch len(s) { From 5f64cc432e2bac898bad185ed9f3177f493342db Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 17:26:19 -0500 Subject: [PATCH 042/450] spelling: bypasses Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../internal/scraper/githubscraper/schema.graphql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/githubreceiver/internal/scraper/githubscraper/schema.graphql b/receiver/githubreceiver/internal/scraper/githubscraper/schema.graphql index 960a7aa955bd..b7e2a12c9fda 100644 --- a/receiver/githubreceiver/internal/scraper/githubscraper/schema.graphql +++ b/receiver/githubreceiver/internal/scraper/githubscraper/schema.graphql @@ -24667,7 +24667,7 @@ input RepositoryRulesetBypassActorInput { actorId: ID "For role bypasses, the role database ID" repositoryRoleDatabaseId: Int - "For org admin bupasses, true" + "For org admin bypasses, true" organizationAdmin: Boolean "The bypass mode for this actor." bypassMode: RepositoryRulesetBypassActorBypassMode! From b5020035085896de228ea3dd6f2e5570f8870041 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 17:26:42 -0500 Subject: [PATCH 043/450] spelling: calculate Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- connector/signaltometricsconnector/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/connector/signaltometricsconnector/README.md b/connector/signaltometricsconnector/README.md index be38b041b716..22f8dd82d14c 100644 --- a/connector/signaltometricsconnector/README.md +++ b/connector/signaltometricsconnector/README.md @@ -105,7 +105,7 @@ histogram: recorded in the histogram from the incoming data. If no expression is provided then it defaults to the count of the signal. [OTTL converters](https://pkg.go.dev/github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl/ottlfuncs#readme-converters) can be used to transform the data. For spans, a special converter [adjusted count](#custom-ottl-functions), - is provided to help calculte the span's [adjusted count](https://opentelemetry.io/docs/specs/otel/trace/tracestate-probability-sampling-experimental/#adjusted-count). + is provided to help calculate the span's [adjusted count](https://opentelemetry.io/docs/specs/otel/trace/tracestate-probability-sampling-experimental/#adjusted-count). - [**Required**] `value` represents an OTTL expression to extract the value to be recorded in the histogram from the incoming data. [OTTL converters](https://pkg.go.dev/github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl/ottlfuncs#readme-converters) can be used to transform the data. @@ -127,7 +127,7 @@ exponential_histogram: recorded in the expoential histogram from the incoming data. If no expression is provided then it defaults to the count of the signal. [OTTL converters](https://pkg.go.dev/github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl/ottlfuncs#readme-converters) can be used to transform the data. For spans, a special converter [adjusted count](#custom-ottl-functions), - is provided to help calculte the span's [adjusted count](https://opentelemetry.io/docs/specs/otel/trace/tracestate-probability-sampling-experimental/#adjusted-count). + is provided to help calculate the span's [adjusted count](https://opentelemetry.io/docs/specs/otel/trace/tracestate-probability-sampling-experimental/#adjusted-count). - [**Required**] `value` represents an OTTL expression to extract the value to be recorded in the exponential histogram from the incoming data. [OTTL converters](https://pkg.go.dev/github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl/ottlfuncs#readme-converters) can be used to transform the data. From e8dd123d70682cb370d95c16f6841149545dcc39 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 17:26:54 -0500 Subject: [PATCH 044/450] spelling: called Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../metrics_transform_processor_otlp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/processor/metricstransformprocessor/metrics_transform_processor_otlp.go b/processor/metricstransformprocessor/metrics_transform_processor_otlp.go index 398cd67cd96e..d7ec6444e57e 100644 --- a/processor/metricstransformprocessor/metrics_transform_processor_otlp.go +++ b/processor/metricstransformprocessor/metrics_transform_processor_otlp.go @@ -442,7 +442,7 @@ func combine(transform internalTransform, metrics pmetric.MetricSlice) pmetric.M // groupMetrics groups all the provided timeseries that will be aggregated together based on all the label values. // Returns a map of grouped timeseries and the corresponding selected labels -// canBeCombined must be callled before. +// canBeCombined must be called before. func groupMetrics(metrics pmetric.MetricSlice, aggType aggregateutil.AggregationType, to pmetric.Metric) { ag := aggregateutil.AggGroups{} for i := 0; i < metrics.Len(); i++ { From 1f4d485647417771ba2b2420f4172b9754bb288a Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 3 Jan 2025 09:41:47 -0500 Subject: [PATCH 045/450] spelling: cannot Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CONTRIBUTING.md | 4 ++-- .../internal/translator/cause.go | 4 ++-- internal/aws/xray/tracesegment.go | 8 +++---- internal/aws/xray/tracesegment_test.go | 10 ++++----- pkg/ottl/expression_test.go | 2 +- pkg/pdatatest/pmetrictest/options.go | 2 +- pkg/stanza/entry/entry.go | 20 ++++++++--------- pkg/stanza/entry/entry_test.go | 6 ++--- pkg/stanza/operator/helper/input.go | 4 ++-- pkg/stanza/operator/helper/input_test.go | 2 +- pkg/stanza/operator/helper/output.go | 2 +- pkg/stanza/operator/helper/output_test.go | 2 +- pkg/stanza/operator/helper/writer.go | 2 +- pkg/stanza/operator/helper/writer_test.go | 4 ++-- .../transformer/router/transformer_test.go | 2 +- pkg/stanza/pipeline/directed.go | 2 +- pkg/stanza/pipeline/directed_test.go | 2 +- pkg/stanza/testutil/mocks.go | 2 +- .../internal/data/expo/scale.go | 2 +- processor/k8sattributesprocessor/README.md | 2 +- .../awscontainerinsightreceiver/README.md | 2 +- .../awscontainerinsightreceiver/config.go | 2 +- .../internal/translator/translator_test.go | 4 ++-- .../internal/udppoller/poller_test.go | 10 ++++----- receiver/awsxrayreceiver/receiver_test.go | 10 ++++----- .../scraper/githubscraper/schema.graphql | 22 +++++++++---------- receiver/k8sclusterreceiver/config.go | 2 +- receiver/mongodbreceiver/metrics.go | 4 ++-- 28 files changed, 70 insertions(+), 70 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7b2ca3c127d2..dee3171959a6 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -158,9 +158,9 @@ and its contributors. [`cmd/otelcontribcol/builder-config.yaml`](./cmd/otelcontribcol/builder-config.yaml) and in the respective testing harnesses. To align with the test goal of the project, components must be testable within the framework defined within the - folder. If a component can not be properly tested within the existing + folder. If a component cannot be properly tested within the existing framework, it must increase the non testable components number with a comment - within the PR explaining as to why it can not be tested. **(Note: this does + within the PR explaining as to why it cannot be tested. **(Note: this does not automatically include any components in official release binaries. See [Releasing new components](#releasing-new-components).)** diff --git a/exporter/awsxrayexporter/internal/translator/cause.go b/exporter/awsxrayexporter/internal/translator/cause.go index 4f6989b136e3..af1028b887c0 100644 --- a/exporter/awsxrayexporter/internal/translator/cause.go +++ b/exporter/awsxrayexporter/internal/translator/cause.go @@ -301,7 +301,7 @@ func fillJavaStacktrace(stacktrace string, exceptions []awsxray.Exception) []aws // when append causes `exceptions` to outgrow its existing // capacity, re-allocation will happen so the place // `exception` points to is no longer `exceptions[len(exceptions)-2]`, - // consequently, we can not write `exception.Cause = newException.ID` + // consequently, we cannot write `exception.Cause = newException.ID` // below. newException := &exceptions[len(exceptions)-1] exceptions[len(exceptions)-2].Cause = newException.ID @@ -398,7 +398,7 @@ func fillPythonStacktrace(stacktrace string, exceptions []awsxray.Exception) []a // when append causes `exceptions` to outgrow its existing // capacity, re-allocation will happen so the place // `exception` points to is no longer `exceptions[len(exceptions)-2]`, - // consequently, we can not write `exception.Cause = newException.ID` + // consequently, we cannot write `exception.Cause = newException.ID` // below. newException := &exceptions[len(exceptions)-1] exceptions[len(exceptions)-2].Cause = newException.ID diff --git a/internal/aws/xray/tracesegment.go b/internal/aws/xray/tracesegment.go index 0fe82ce2d5b0..a63055d14c85 100644 --- a/internal/aws/xray/tracesegment.go +++ b/internal/aws/xray/tracesegment.go @@ -63,22 +63,22 @@ type Segment struct { // Validate checks whether the segment is valid or not func (s *Segment) Validate() error { if s.Name == nil { - return errors.New(`segment "name" can not be nil`) + return errors.New(`segment "name" cannot be nil`) } if s.ID == nil { - return errors.New(`segment "id" can not be nil`) + return errors.New(`segment "id" cannot be nil`) } if s.StartTime == nil { - return errors.New(`segment "start_time" can not be nil`) + return errors.New(`segment "start_time" cannot be nil`) } // it's ok for embedded subsegments to not have trace_id // but the root segment and independent subsegments must all // have trace_id. if s.TraceID == nil { - return errors.New(`segment "trace_id" can not be nil`) + return errors.New(`segment "trace_id" cannot be nil`) } return nil diff --git a/internal/aws/xray/tracesegment_test.go b/internal/aws/xray/tracesegment_test.go index c5daf8156f28..5954ec1cb3fd 100644 --- a/internal/aws/xray/tracesegment_test.go +++ b/internal/aws/xray/tracesegment_test.go @@ -627,7 +627,7 @@ func TestTraceBodyUnMarshalling(t *testing.T) { for _, tc := range tests { content, err := os.ReadFile(tc.samplePath) - assert.NoErrorf(t, err, "[%s] can not read raw segment", tc.testCase) + assert.NoErrorf(t, err, "[%s] cannot read raw segment", tc.testCase) assert.NotEmptyf(t, content, "[%s] content length is 0", tc.testCase) @@ -647,14 +647,14 @@ func TestValidate(t *testing.T) { { testCase: "missing segment name", input: &Segment{}, - expectedErrorStr: `segment "name" can not be nil`, + expectedErrorStr: `segment "name" cannot be nil`, }, { testCase: "missing segment id", input: &Segment{ Name: String("a name"), }, - expectedErrorStr: `segment "id" can not be nil`, + expectedErrorStr: `segment "id" cannot be nil`, }, { testCase: "missing segment start_time", @@ -662,7 +662,7 @@ func TestValidate(t *testing.T) { Name: String("a name"), ID: String("an ID"), }, - expectedErrorStr: `segment "start_time" can not be nil`, + expectedErrorStr: `segment "start_time" cannot be nil`, }, { testCase: "missing segment trace_id", @@ -671,7 +671,7 @@ func TestValidate(t *testing.T) { ID: String("an ID"), StartTime: aws.Float64(10), }, - expectedErrorStr: `segment "trace_id" can not be nil`, + expectedErrorStr: `segment "trace_id" cannot be nil`, }, { testCase: "happy case", diff --git a/pkg/ottl/expression_test.go b/pkg/ottl/expression_test.go index e5cffbfcd547..119baa90ce55 100644 --- a/pkg/ottl/expression_test.go +++ b/pkg/ottl/expression_test.go @@ -707,7 +707,7 @@ func Test_newGetter(t *testing.T) { switch v := val.(type) { case pcommon.Map: - // need to compare the raw map here as require.EqualValues can not seem to handle + // need to compare the raw map here as require.EqualValues cannot seem to handle // the comparison of pcommon.Map assert.EqualValues(t, tt.want, v.AsRaw()) default: diff --git a/pkg/pdatatest/pmetrictest/options.go b/pkg/pdatatest/pmetrictest/options.go index 3a6ce4cb9651..d20f3d94bce9 100644 --- a/pkg/pdatatest/pmetrictest/options.go +++ b/pkg/pdatatest/pmetrictest/options.go @@ -154,7 +154,7 @@ func roundDataPointSliceValues(dataPoints pmetric.NumberDataPointSlice, precisio case dataPoint.DoubleValue() != 0.0: dataPoint.SetDoubleValue(math.Round(dataPoint.DoubleValue()*factor) / factor) case dataPoint.IntValue() != 0: - panic(fmt.Sprintf("integers can not have float precision ignored: %v", dataPoints.At(i))) + panic(fmt.Sprintf("integers cannot have float precision ignored: %v", dataPoints.At(i))) } } } diff --git a/pkg/stanza/entry/entry.go b/pkg/stanza/entry/entry.go index 882f22695f41..fa01d7fcefbf 100644 --- a/pkg/stanza/entry/entry.go +++ b/pkg/stanza/entry/entry.go @@ -75,7 +75,7 @@ func (entry *Entry) Read(field FieldInterface, dest any) error { case *any: return entry.readToInterface(field, dest) default: - return fmt.Errorf("can not read to unsupported type '%T'", dest) + return fmt.Errorf("cannot read to unsupported type '%T'", dest) } } @@ -83,7 +83,7 @@ func (entry *Entry) Read(field FieldInterface, dest any) error { func (entry *Entry) readToInterface(field FieldInterface, dest *any) error { val, ok := entry.Get(field) if !ok { - return fmt.Errorf("field '%s' is missing and can not be read as a any", field) + return fmt.Errorf("field '%s' is missing and cannot be read as a any", field) } *dest = val @@ -94,7 +94,7 @@ func (entry *Entry) readToInterface(field FieldInterface, dest *any) error { func (entry *Entry) readToString(field FieldInterface, dest *string) error { val, ok := entry.Get(field) if !ok { - return fmt.Errorf("field '%s' is missing and can not be read as a string", field) + return fmt.Errorf("field '%s' is missing and cannot be read as a string", field) } switch typed := val.(type) { @@ -103,7 +103,7 @@ func (entry *Entry) readToString(field FieldInterface, dest *string) error { case []byte: *dest = string(typed) default: - return fmt.Errorf("field '%s' of type '%T' can not be cast to a string", field, val) + return fmt.Errorf("field '%s' of type '%T' cannot be cast to a string", field, val) } return nil @@ -113,13 +113,13 @@ func (entry *Entry) readToString(field FieldInterface, dest *string) error { func (entry *Entry) readToInterfaceMap(field FieldInterface, dest *map[string]any) error { val, ok := entry.Get(field) if !ok { - return fmt.Errorf("field '%s' is missing and can not be read as a map[string]any", field) + return fmt.Errorf("field '%s' is missing and cannot be read as a map[string]any", field) } if m, ok := val.(map[string]any); ok { *dest = m } else { - return fmt.Errorf("field '%s' of type '%T' can not be cast to a map[string]any", field, val) + return fmt.Errorf("field '%s' of type '%T' cannot be cast to a map[string]any", field, val) } return nil @@ -129,7 +129,7 @@ func (entry *Entry) readToInterfaceMap(field FieldInterface, dest *map[string]an func (entry *Entry) readToStringMap(field FieldInterface, dest *map[string]string) error { val, ok := entry.Get(field) if !ok { - return fmt.Errorf("field '%s' is missing and can not be read as a map[string]string{}", field) + return fmt.Errorf("field '%s' is missing and cannot be read as a map[string]string{}", field) } switch m := val.(type) { @@ -139,7 +139,7 @@ func (entry *Entry) readToStringMap(field FieldInterface, dest *map[string]strin if vStr, ok := v.(string); ok { newDest[k] = vStr } else { - return fmt.Errorf("can not cast map members '%s' of type '%s' to string", k, v) + return fmt.Errorf("cannot cast map members '%s' of type '%s' to string", k, v) } } *dest = newDest @@ -148,11 +148,11 @@ func (entry *Entry) readToStringMap(field FieldInterface, dest *map[string]strin for k, v := range m { keyStr, ok := k.(string) if !ok { - return fmt.Errorf("can not cast map key of type '%T' to string", k) + return fmt.Errorf("cannot cast map key of type '%T' to string", k) } vStr, ok := v.(string) if !ok { - return fmt.Errorf("can not cast map value of type '%T' to string", v) + return fmt.Errorf("cannot cast map value of type '%T' to string", v) } newDest[keyStr] = vStr } diff --git a/pkg/stanza/entry/entry_test.go b/pkg/stanza/entry/entry_test.go index 8d944156d947..bbc50f63b69c 100644 --- a/pkg/stanza/entry/entry_test.go +++ b/pkg/stanza/entry/entry_test.go @@ -275,7 +275,7 @@ func TestReadToInterfaceMapWithMissingField(t *testing.T) { field := NewAttributeField("label") dest := map[string]any{} err := entry.readToInterfaceMap(field, &dest) - require.ErrorContains(t, err, "can not be read as a map[string]any") + require.ErrorContains(t, err, "cannot be read as a map[string]any") } func TestReadToStringMapWithMissingField(t *testing.T) { @@ -283,7 +283,7 @@ func TestReadToStringMapWithMissingField(t *testing.T) { field := NewAttributeField("label") dest := map[string]string{} err := entry.readToStringMap(field, &dest) - require.ErrorContains(t, err, "can not be read as a map[string]string") + require.ErrorContains(t, err, "cannot be read as a map[string]string") } func TestReadToInterfaceMissingField(t *testing.T) { @@ -291,7 +291,7 @@ func TestReadToInterfaceMissingField(t *testing.T) { field := NewAttributeField("label") var dest any err := entry.readToInterface(field, &dest) - require.ErrorContains(t, err, "can not be read as a any") + require.ErrorContains(t, err, "cannot be read as a any") } func TestDefaultTimestamps(t *testing.T) { diff --git a/pkg/stanza/operator/helper/input.go b/pkg/stanza/operator/helper/input.go index b42b1d33c329..ee5bfb8f3721 100644 --- a/pkg/stanza/operator/helper/input.go +++ b/pkg/stanza/operator/helper/input.go @@ -84,9 +84,9 @@ func (i *InputOperator) CanProcess() bool { // Process will always return an error if called. func (i *InputOperator) Process(_ context.Context, _ *entry.Entry) error { - i.Logger().Error("Operator received an entry, but can not process") + i.Logger().Error("Operator received an entry, but cannot process") return errors.NewError( - "Operator can not process logs.", + "Operator cannot process logs.", "Ensure that operator is not configured to receive logs from other operators", ) } diff --git a/pkg/stanza/operator/helper/input_test.go b/pkg/stanza/operator/helper/input_test.go index cfa58c304936..3e0b970dd408 100644 --- a/pkg/stanza/operator/helper/input_test.go +++ b/pkg/stanza/operator/helper/input_test.go @@ -88,7 +88,7 @@ func TestInputOperatorProcess(t *testing.T) { ctx := context.Background() err := input.Process(ctx, entry) require.Error(t, err) - require.Equal(t, "Operator can not process logs.", err.Error()) + require.Equal(t, "Operator cannot process logs.", err.Error()) } func TestInputOperatorNewEntry(t *testing.T) { diff --git a/pkg/stanza/operator/helper/output.go b/pkg/stanza/operator/helper/output.go index de777a5fe5c4..e3380b8e7148 100644 --- a/pkg/stanza/operator/helper/output.go +++ b/pkg/stanza/operator/helper/output.go @@ -64,7 +64,7 @@ func (o *OutputOperator) GetOutputIDs() []string { // SetOutputs will return an error if called. func (o *OutputOperator) SetOutputs(_ []operator.Operator) error { return errors.NewError( - "Operator can not output, but is attempting to set an output.", + "Operator cannot output, but is attempting to set an output.", "This is an unexpected internal error. Please submit a bug/issue.", ) } diff --git a/pkg/stanza/operator/helper/output_test.go b/pkg/stanza/operator/helper/output_test.go index b55e33abd4ca..8059da0adb34 100644 --- a/pkg/stanza/operator/helper/output_test.go +++ b/pkg/stanza/operator/helper/output_test.go @@ -83,5 +83,5 @@ func TestOutputOperatorSetOutputs(t *testing.T) { } err := output.SetOutputs([]operator.Operator{}) - require.ErrorContains(t, err, "Operator can not output") + require.ErrorContains(t, err, "Operator cannot output") } diff --git a/pkg/stanza/operator/helper/writer.go b/pkg/stanza/operator/helper/writer.go index a07b91a714c5..4cbe65bc2405 100644 --- a/pkg/stanza/operator/helper/writer.go +++ b/pkg/stanza/operator/helper/writer.go @@ -87,7 +87,7 @@ func (w *WriterOperator) SetOutputs(operators []operator.Operator) error { } if !operator.CanProcess() { - return fmt.Errorf("operator '%s' can not process entries", operatorID) + return fmt.Errorf("operator '%s' cannot process entries", operatorID) } outputOperators[i] = operator diff --git a/pkg/stanza/operator/helper/writer_test.go b/pkg/stanza/operator/helper/writer_test.go index 385c536cf080..1a63980b3e13 100644 --- a/pkg/stanza/operator/helper/writer_test.go +++ b/pkg/stanza/operator/helper/writer_test.go @@ -62,7 +62,7 @@ func TestWriterOperatorWrite(t *testing.T) { func TestWriterOperatorWriteAfterError(t *testing.T) { output1 := testutil.NewMockOperator("output1") - output1.On("Process", mock.Anything, mock.Anything).Return(errors.NewError("Operator can not process logs.", "")) + output1.On("Process", mock.Anything, mock.Anything).Return(errors.NewError("Operator cannot process logs.", "")) output2 := testutil.NewMockOperator("output2") output2.On("Process", mock.Anything, mock.Anything).Return(nil) @@ -131,7 +131,7 @@ func TestWriterSetOutputsInvalid(t *testing.T) { } err := writer.SetOutputs([]operator.Operator{output1}) - require.ErrorContains(t, err, "can not process entries") + require.ErrorContains(t, err, "cannot process entries") } func TestWriterSetOutputsValid(t *testing.T) { diff --git a/pkg/stanza/operator/transformer/router/transformer_test.go b/pkg/stanza/operator/transformer/router/transformer_test.go index 85c6861143db..0c777a0140fc 100644 --- a/pkg/stanza/operator/transformer/router/transformer_test.go +++ b/pkg/stanza/operator/transformer/router/transformer_test.go @@ -196,7 +196,7 @@ func TestTransformer(t *testing.T) { mock1.On( "Process", mock.Anything, mock.Anything, ).Return( - errors.NewError("Operator can not process logs.", ""), + errors.NewError("Operator cannot process logs.", ""), ).Run(func(args mock.Arguments) { results["output1"]++ if entry, ok := args[1].(*entry.Entry); ok { diff --git a/pkg/stanza/pipeline/directed.go b/pkg/stanza/pipeline/directed.go index 56a652343efd..feff14b3850d 100644 --- a/pkg/stanza/pipeline/directed.go +++ b/pkg/stanza/pipeline/directed.go @@ -158,7 +158,7 @@ func connectNode(graph *simple.DirectedGraph, inputNode OperatorNode) error { outputNode := graph.Node(outputNodeID).(OperatorNode) if !outputNode.Operator().CanProcess() { return stanzaerrors.NewError( - "operators cannot be connected, because the output operator can not process logs", + "operators cannot be connected, because the output operator cannot process logs", "ensure that the output operator can process logs (like a parser or destination)", "input_operator", inputNode.Operator().ID(), "output_operator", outputOperatorID, diff --git a/pkg/stanza/pipeline/directed_test.go b/pkg/stanza/pipeline/directed_test.go index 079ac9253565..c90bfcc323dc 100644 --- a/pkg/stanza/pipeline/directed_test.go +++ b/pkg/stanza/pipeline/directed_test.go @@ -130,7 +130,7 @@ func TestPipeline(t *testing.T) { operator2.On("Outputs").Return([]operator.Operator{operator1}) _, err := NewDirectedPipeline([]operator.Operator{operator1, operator2}) - require.ErrorContains(t, err, "can not process") + require.ErrorContains(t, err, "cannot process") }) t.Run("DuplicateEdges", func(t *testing.T) { diff --git a/pkg/stanza/testutil/mocks.go b/pkg/stanza/testutil/mocks.go index 185f5871d6c2..1d407b4fbe9b 100644 --- a/pkg/stanza/testutil/mocks.go +++ b/pkg/stanza/testutil/mocks.go @@ -87,7 +87,7 @@ func (f *FakeOutput) Type() string { return "fake_output" } func (f *FakeOutput) Process(_ context.Context, entry *entry.Entry) error { f.Received <- entry if f.processWithError { - return errors.NewError("Operator can not process logs.", "") + return errors.NewError("Operator cannot process logs.", "") } return nil } diff --git a/processor/deltatocumulativeprocessor/internal/data/expo/scale.go b/processor/deltatocumulativeprocessor/internal/data/expo/scale.go index c19830071eaf..cd6932de7fe9 100644 --- a/processor/deltatocumulativeprocessor/internal/data/expo/scale.go +++ b/processor/deltatocumulativeprocessor/internal/data/expo/scale.go @@ -107,7 +107,7 @@ func Collapse(bs Buckets) { // zero the excess area. its not needed to represent the observation // anymore, but kept for two reasons: // 1. future observations may need it, no need to re-alloc then if kept - // 2. [pcommon.Uint64Slice] can not, in fact, be sliced, so getting rid + // 2. [pcommon.Uint64Slice] cannot, in fact, be sliced, so getting rid // of it would alloc ¯\_(ツ)_/¯ for i := size; i < counts.Len(); i++ { counts.SetAt(i, 0) diff --git a/processor/k8sattributesprocessor/README.md b/processor/k8sattributesprocessor/README.md index ca38d8599ff9..c13667c0e25e 100644 --- a/processor/k8sattributesprocessor/README.md +++ b/processor/k8sattributesprocessor/README.md @@ -341,7 +341,7 @@ k8sattributes: filter: namespace: ``` -With the namespace filter set, the processor will only look up pods and replicasets in the selected namespace. Note that with just a role binding, the processor can not query metadata such as labels and annotations from k8s `nodes` and `namespaces` which are cluster-scoped objects. This also means that the processor can not set the value for `k8s.cluster.uid` attribute if enabled, since the `k8s.cluster.uid` attribute is set to the uid of the namespace `kube-system` which is not queryable with namespaced rbac. +With the namespace filter set, the processor will only look up pods and replicasets in the selected namespace. Note that with just a role binding, the processor cannot query metadata such as labels and annotations from k8s `nodes` and `namespaces` which are cluster-scoped objects. This also means that the processor cannot set the value for `k8s.cluster.uid` attribute if enabled, since the `k8s.cluster.uid` attribute is set to the uid of the namespace `kube-system` which is not queryable with namespaced rbac. Example `Role` and `RoleBinding` to create in the namespace being watched. ```yaml diff --git a/receiver/awscontainerinsightreceiver/README.md b/receiver/awscontainerinsightreceiver/README.md index ebb2c10903e0..095a8e491b5d 100644 --- a/receiver/awscontainerinsightreceiver/README.md +++ b/receiver/awscontainerinsightreceiver/README.md @@ -56,7 +56,7 @@ Whether to add the associated service name as attribute. The default is true **prefer_full_pod_name (optional)** -The "PodName" attribute is set based on the name of the relevant controllers like Daemonset, Job, ReplicaSet, ReplicationController, ... If it can not be set that way and PrefFullPodName is true, the "PodName" attribute is set to the pod's own name. The default value is false. +The "PodName" attribute is set based on the name of the relevant controllers like Daemonset, Job, ReplicaSet, ReplicationController, ... If it cannot be set that way and PrefFullPodName is true, the "PodName" attribute is set to the pod's own name. The default value is false. **add_full_pod_name_metric_label (optional)** diff --git a/receiver/awscontainerinsightreceiver/config.go b/receiver/awscontainerinsightreceiver/config.go index 583a9b2a925e..ef5bb6aaf02c 100644 --- a/receiver/awscontainerinsightreceiver/config.go +++ b/receiver/awscontainerinsightreceiver/config.go @@ -19,7 +19,7 @@ type Config struct { TagService bool `mapstructure:"add_service_as_attribute"` // The "PodName" attribute is set based on the name of the relevant controllers like Daemonset, Job, ReplicaSet, ReplicationController, ... - // If it can not be set that way and PrefFullPodName is true, the "PodName" attribute is set to the pod's own name. + // If it cannot be set that way and PrefFullPodName is true, the "PodName" attribute is set to the pod's own name. // The default value is false PrefFullPodName bool `mapstructure:"prefer_full_pod_name"` diff --git a/receiver/awsxrayreceiver/internal/translator/translator_test.go b/receiver/awsxrayreceiver/internal/translator/translator_test.go index 4f9fbe9609ed..2bd68cfffea7 100644 --- a/receiver/awsxrayreceiver/internal/translator/translator_test.go +++ b/receiver/awsxrayreceiver/internal/translator/translator_test.go @@ -948,7 +948,7 @@ func TestTranslation(t *testing.T) { _ *awsxray.Segment, _ ptrace.ResourceSpans, _ ptrace.Traces, err error, ) { - assert.EqualError(t, err, `segment "start_time" can not be nil`, + assert.EqualError(t, err, `segment "start_time" cannot be nil`, testCase+": translation should've failed") }, }, @@ -957,7 +957,7 @@ func TestTranslation(t *testing.T) { for _, tc := range tests { t.Run(tc.testCase, func(t *testing.T) { content, err := os.ReadFile(tc.samplePath) - assert.NoError(t, err, "can not read raw segment") + assert.NoError(t, err, "cannot read raw segment") assert.NotEmpty(t, content, "content length is 0") var ( diff --git a/receiver/awsxrayreceiver/internal/udppoller/poller_test.go b/receiver/awsxrayreceiver/internal/udppoller/poller_test.go index d5077e81f1f5..7d320257539e 100644 --- a/receiver/awsxrayreceiver/internal/udppoller/poller_test.go +++ b/receiver/awsxrayreceiver/internal/udppoller/poller_test.go @@ -126,7 +126,7 @@ func TestSuccessfullyPollPacket(t *testing.T) { randString, _ := uuid.NewRandom() rawData := []byte(`{"format": "json", "version": 1}` + "\n" + randString.String()) err = writePacket(t, addr, string(rawData)) - assert.NoError(t, err, "can not write packet in the TestSuccessfullyPollPacket case") + assert.NoError(t, err, "cannot write packet in the TestSuccessfullyPollPacket case") assert.Eventuallyf(t, func() bool { select { @@ -161,7 +161,7 @@ func TestIncompletePacketNoSeparator(t *testing.T) { rawData := []byte(`{"format": "json", "version": 1}`) // no separator err = writePacket(t, addr, string(rawData)) - assert.NoError(t, err, "can not write packet in the TestIncompletePacketNoSeparator case") + assert.NoError(t, err, "cannot write packet in the TestIncompletePacketNoSeparator case") assert.Eventuallyf(t, func() bool { logs := recordedLogs.All() lastEntry := logs[len(logs)-1] @@ -191,7 +191,7 @@ func TestIncompletePacketNoBody(t *testing.T) { rawData := []byte(`{"format": "json", "version": 1}` + "\n") // no body err = writePacket(t, addr, string(rawData)) - assert.NoError(t, err, "can not write packet in the TestIncompletePacketNoBody case") + assert.NoError(t, err, "cannot write packet in the TestIncompletePacketNoBody case") assert.Eventuallyf(t, func() bool { logs := recordedLogs.All() lastEntry := logs[len(logs)-1] @@ -216,7 +216,7 @@ func TestNonJsonHeader(t *testing.T) { // the header (i.e. the portion before \n) is invalid err = writePacket(t, addr, "nonJson\nBody") - assert.NoError(t, err, "can not write packet in the TestNonJsonHeader case") + assert.NoError(t, err, "cannot write packet in the TestNonJsonHeader case") assert.Eventuallyf(t, func() bool { var errRecv *internalErr.ErrRecoverable logs := recordedLogs.All() @@ -248,7 +248,7 @@ func TestJsonInvalidHeader(t *testing.T) { // the header (i.e. the portion before \n) is invalid err = writePacket(t, addr, fmt.Sprintf(`{"format": "%s", "version": 1}`, randString.String())+"\nBody") - assert.NoError(t, err, "can not write packet in the TestJsonInvalidHeader case") + assert.NoError(t, err, "cannot write packet in the TestJsonInvalidHeader case") assert.Eventuallyf(t, func() bool { var errRecv *internalErr.ErrRecoverable logs := recordedLogs.All() diff --git a/receiver/awsxrayreceiver/receiver_test.go b/receiver/awsxrayreceiver/receiver_test.go index 2114fc4b9f9e..439a08199b39 100644 --- a/receiver/awsxrayreceiver/receiver_test.go +++ b/receiver/awsxrayreceiver/receiver_test.go @@ -99,10 +99,10 @@ func TestSegmentsPassedToConsumer(t *testing.T) { }() content, err := os.ReadFile(filepath.Join("../../internal/aws/xray", "testdata", "ddbSample.txt")) - assert.NoError(t, err, "can not read raw segment") + assert.NoError(t, err, "cannot read raw segment") err = writePacket(t, addr, segmentHeader+string(content)) - assert.NoError(t, err, "can not write packet in the happy case") + assert.NoError(t, err, "cannot write packet in the happy case") sink := rcvr.(*xrayReceiver).consumer.(*consumertest.TracesSink) @@ -130,7 +130,7 @@ func TestTranslatorErrorsOut(t *testing.T) { }() err = writePacket(t, addr, segmentHeader+"invalidSegment") - assert.NoError(t, err, "can not write packet in the "+receiverID.String()+" case") + assert.NoError(t, err, "cannot write packet in the "+receiverID.String()+" case") assert.Eventuallyf(t, func() bool { logs := recordedLogs.All() @@ -157,10 +157,10 @@ func TestSegmentsConsumerErrorsOut(t *testing.T) { }() content, err := os.ReadFile(filepath.Join("../../internal/aws/xray", "testdata", "serverSample.txt")) - assert.NoError(t, err, "can not read raw segment") + assert.NoError(t, err, "cannot read raw segment") err = writePacket(t, addr, segmentHeader+string(content)) - assert.NoError(t, err, "can not write packet") + assert.NoError(t, err, "cannot write packet") assert.Eventuallyf(t, func() bool { logs := recordedLogs.All() diff --git a/receiver/githubreceiver/internal/scraper/githubscraper/schema.graphql b/receiver/githubreceiver/internal/scraper/githubscraper/schema.graphql index b7e2a12c9fda..371b34f16b0c 100644 --- a/receiver/githubreceiver/internal/scraper/githubscraper/schema.graphql +++ b/receiver/githubreceiver/internal/scraper/githubscraper/schema.graphql @@ -1443,7 +1443,7 @@ type CommitComment implements Node & Comment & Deletable & Minimizable & Updatab viewerCanReact: Boolean! "Check if the current viewer can update this object." viewerCanUpdate: Boolean! - "Reasons why the current viewer can not update this comment." + "Reasons why the current viewer cannot update this comment." viewerCannotUpdateReasons: [CommentCannotUpdateReason!]! "Did the viewer author this comment." viewerDidAuthor: Boolean! @@ -3114,7 +3114,7 @@ type DiscussionComment implements Comment & Deletable & Minimizable & Updatable viewerCanUpdate: Boolean! "Whether or not the current user can add or remove an upvote on this subject." viewerCanUpvote: Boolean! - "Reasons why the current viewer can not update this comment." + "Reasons why the current viewer cannot update this comment." viewerCannotUpdateReasons: [CommentCannotUpdateReason!]! "Did the viewer author this comment." viewerDidAuthor: Boolean! @@ -4615,7 +4615,7 @@ type GistComment implements Node & Comment & Deletable & Minimizable & Updatable viewerCanMinimize: Boolean! "Check if the current viewer can update this object." viewerCanUpdate: Boolean! - "Reasons why the current viewer can not update this comment." + "Reasons why the current viewer cannot update this comment." viewerCannotUpdateReasons: [CommentCannotUpdateReason!]! "Did the viewer author this comment." viewerDidAuthor: Boolean! @@ -5126,7 +5126,7 @@ type Issue implements Node & Assignable & Closable & Comment & Deletable & Updat viewerCanSubscribe: Boolean! "Check if the current viewer can update this object." viewerCanUpdate: Boolean! - "Reasons why the current viewer can not update this comment." + "Reasons why the current viewer cannot update this comment." viewerCannotUpdateReasons: [CommentCannotUpdateReason!]! "Did the viewer author this comment." viewerDidAuthor: Boolean! @@ -5221,7 +5221,7 @@ type IssueComment implements Node & Comment & Deletable & Minimizable & Updatabl viewerCanReact: Boolean! "Check if the current viewer can update this object." viewerCanUpdate: Boolean! - "Reasons why the current viewer can not update this comment." + "Reasons why the current viewer cannot update this comment." viewerCannotUpdateReasons: [CommentCannotUpdateReason!]! "Did the viewer author this comment." viewerDidAuthor: Boolean! @@ -11284,7 +11284,7 @@ type PullRequest implements Node & Assignable & Closable & Comment & Updatable & If the head ref is up to date or unable to be updated by this user, this will return false. """ viewerCanUpdateBranch: Boolean! - "Reasons why the current viewer can not update this comment." + "Reasons why the current viewer cannot update this comment." viewerCannotUpdateReasons: [CommentCannotUpdateReason!]! "Did the viewer author this comment." viewerDidAuthor: Boolean! @@ -11541,7 +11541,7 @@ type PullRequestReview implements Node & Comment & Deletable & Updatable & Updat viewerCanReact: Boolean! "Check if the current viewer can update this object." viewerCanUpdate: Boolean! - "Reasons why the current viewer can not update this comment." + "Reasons why the current viewer cannot update this comment." viewerCannotUpdateReasons: [CommentCannotUpdateReason!]! "Did the viewer author this comment." viewerDidAuthor: Boolean! @@ -11661,7 +11661,7 @@ type PullRequestReviewComment implements Node & Comment & Deletable & Minimizabl viewerCanReact: Boolean! "Check if the current viewer can update this object." viewerCanUpdate: Boolean! - "Reasons why the current viewer can not update this comment." + "Reasons why the current viewer cannot update this comment." viewerCannotUpdateReasons: [CommentCannotUpdateReason!]! "Did the viewer author this comment." viewerDidAuthor: Boolean! @@ -16434,7 +16434,7 @@ type TeamDiscussion implements Node & Comment & Deletable & Reactable & Subscrib viewerCanSubscribe: Boolean! "Check if the current viewer can update this object." viewerCanUpdate: Boolean! - "Reasons why the current viewer can not update this comment." + "Reasons why the current viewer cannot update this comment." viewerCannotUpdateReasons: [CommentCannotUpdateReason!]! "Did the viewer author this comment." viewerDidAuthor: Boolean! @@ -16532,7 +16532,7 @@ type TeamDiscussionComment implements Node & Comment & Deletable & Reactable & U viewerCanReact: Boolean! "Check if the current viewer can update this object." viewerCanUpdate: Boolean! - "Reasons why the current viewer can not update this comment." + "Reasons why the current viewer cannot update this comment." viewerCannotUpdateReasons: [CommentCannotUpdateReason!]! "Did the viewer author this comment." viewerDidAuthor: Boolean! @@ -19304,7 +19304,7 @@ interface Updatable { } "Comments that can be updated." interface UpdatableComment { - "Reasons why the current viewer can not update this comment." + "Reasons why the current viewer cannot update this comment." viewerCannotUpdateReasons: [CommentCannotUpdateReason!]! } "A subject that may be upvoted." diff --git a/receiver/k8sclusterreceiver/config.go b/receiver/k8sclusterreceiver/config.go index 73657b8504e6..7383f7ea3cb7 100644 --- a/receiver/k8sclusterreceiver/config.go +++ b/receiver/k8sclusterreceiver/config.go @@ -42,7 +42,7 @@ type Config struct { // Namespace to fetch resources from. If this is set, certain cluster-wide resources such as Nodes or Namespaces // will not be able to be observed. Setting this option is recommended in environments where due to security restrictions - // the collector can not be granted cluster-wide permissions. + // the collector cannot be granted cluster-wide permissions. Namespace string `mapstructure:"namespace"` } diff --git a/receiver/mongodbreceiver/metrics.go b/receiver/mongodbreceiver/metrics.go index c70627f5988c..6c12cceb60eb 100644 --- a/receiver/mongodbreceiver/metrics.go +++ b/receiver/mongodbreceiver/metrics.go @@ -191,7 +191,7 @@ func (s *mongodbScraper) recordSessionCount(now pcommon.Timestamp, doc bson.M, e return } if storageEngine != "wiredTiger" { - // mongodb is using a different storage engine and this metric can not be collected + // mongodb is using a different storage engine and this metric cannot be collected return } @@ -252,7 +252,7 @@ func (s *mongodbScraper) recordCacheOperations(now pcommon.Timestamp, doc bson.M return } if storageEngine != "wiredTiger" { - // mongodb is using a different storage engine and this metric can not be collected + // mongodb is using a different storage engine and this metric cannot be collected return } From a3226cc55e885a59921f315d3bb3cacd55ab7678 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 17:27:02 -0500 Subject: [PATCH 046/450] spelling: capabilities Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- extension/opampextension/registry_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/extension/opampextension/registry_test.go b/extension/opampextension/registry_test.go index ba8e4b579171..7c1fe69b231b 100644 --- a/extension/opampextension/registry_test.go +++ b/extension/opampextension/registry_test.go @@ -20,7 +20,7 @@ func TestRegistry_Register(t *testing.T) { capabilityString := "io.opentelemetry.teapot" client := mockCustomCapabilityClient{ - setCustomCapabilites: func(customCapabilities *protobufs.CustomCapabilities) error { + setCustomCapabilities: func(customCapabilities *protobufs.CustomCapabilities) error { require.Equal(t, &protobufs.CustomCapabilities{ Capabilities: []string{capabilityString}, @@ -42,7 +42,7 @@ func TestRegistry_Register(t *testing.T) { capabilityErr := errors.New("network error") client := mockCustomCapabilityClient{ - setCustomCapabilites: func(_ *protobufs.CustomCapabilities) error { + setCustomCapabilities: func(_ *protobufs.CustomCapabilities) error { return capabilityErr }, } @@ -225,7 +225,7 @@ func TestCustomCapability_Unregister(t *testing.T) { require.NotNil(t, unregisteredSender) require.NoError(t, err) - client.setCustomCapabilites = func(_ *protobufs.CustomCapabilities) error { + client.setCustomCapabilities = func(_ *protobufs.CustomCapabilities) error { return fmt.Errorf("failed to set capabilities") } @@ -268,12 +268,12 @@ func TestCustomCapability_Unregister(t *testing.T) { type mockCustomCapabilityClient struct { sendCustomMessage func(message *protobufs.CustomMessage) (chan struct{}, error) - setCustomCapabilites func(customCapabilities *protobufs.CustomCapabilities) error + setCustomCapabilities func(customCapabilities *protobufs.CustomCapabilities) error } func (m mockCustomCapabilityClient) SetCustomCapabilities(customCapabilities *protobufs.CustomCapabilities) error { - if m.setCustomCapabilites != nil { - return m.setCustomCapabilites(customCapabilities) + if m.setCustomCapabilities != nil { + return m.setCustomCapabilities(customCapabilities) } return nil } From 2827f277a9c3672fc7142e03166baa1065ee6c36 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 3 Jan 2025 09:51:28 -0500 Subject: [PATCH 047/450] spelling: case-insensitive Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- processor/routingprocessor/extract_test.go | 2 +- .../internal/scraper/githubscraper/schema.graphql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/processor/routingprocessor/extract_test.go b/processor/routingprocessor/extract_test.go index b5a3136ab23b..243f2fa9b7b7 100644 --- a/processor/routingprocessor/extract_test.go +++ b/processor/routingprocessor/extract_test.go @@ -68,7 +68,7 @@ func TestExtractorForTraces_FromContext(t *testing.T) { expectedValue: "acme", }, { - name: "value from existing HTTP attribute: case insensitive", + name: "value from existing HTTP attribute: case-insensitive", ctxFunc: func() context.Context { return client.NewContext(context.Background(), client.Info{Metadata: client.NewMetadata(map[string][]string{ diff --git a/receiver/githubreceiver/internal/scraper/githubscraper/schema.graphql b/receiver/githubreceiver/internal/scraper/githubscraper/schema.graphql index 371b34f16b0c..8cae6d5e2405 100644 --- a/receiver/githubreceiver/internal/scraper/githubscraper/schema.graphql +++ b/receiver/githubreceiver/internal/scraper/githubscraper/schema.graphql @@ -10585,7 +10585,7 @@ type ProjectV2SingleSelectField implements ProjectV2FieldCommon & Node { name: String! "Options for the single select field" options( - "Filter returned options to only those matching these names, case insensitive." + "Filter returned options to only those matching these names, case-insensitive." names: [String!] ): [ProjectV2SingleSelectFieldOption!]! "The project that contains this field." From 987ba7a8383aa523fee35429a568bca72800799a Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 3 Jan 2025 09:51:34 -0500 Subject: [PATCH 048/450] spelling: case-sensitive Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/sentryexporter/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/sentryexporter/config.go b/exporter/sentryexporter/config.go index 32783fe4917e..b3587bee33c6 100644 --- a/exporter/sentryexporter/config.go +++ b/exporter/sentryexporter/config.go @@ -12,7 +12,7 @@ type Config struct { // DSN to report transaction to Sentry. If the DSN is not set, no trace will be sent to Sentry. DSN string `mapstructure:"dsn"` // The deployment environment name, such as production or staging. - // Environments are case sensitive. The environment name can't contain newlines, spaces or forward slashes, + // Environments are case-sensitive. The environment name can't contain newlines, spaces or forward slashes, // can't be the string "None", or exceed 64 characters. Environment string `mapstructure:"environment"` // InsecureSkipVerify controls whether the client verifies the Sentry server certificate chain From 467967afdd05b805421be8caa25ac6f410c242aa Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 17:27:21 -0500 Subject: [PATCH 049/450] spelling: certificate Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/cloudflarereceiver/logs_integration_test.go | 2 +- receiver/mongodbatlasreceiver/alerts_integration_test.go | 2 +- receiver/postgresqlreceiver/README.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/receiver/cloudflarereceiver/logs_integration_test.go b/receiver/cloudflarereceiver/logs_integration_test.go index 16495780abbd..94eea02188f7 100644 --- a/receiver/cloudflarereceiver/logs_integration_test.go +++ b/receiver/cloudflarereceiver/logs_integration_test.go @@ -125,7 +125,7 @@ func clientWithCert(path string) (*http.Client, error) { roots := x509.NewCertPool() ok := roots.AppendCertsFromPEM(b) if !ok { - return nil, errors.New("failed to append certficate as root certificate") + return nil, errors.New("failed to append certificate as root certificate") } return &http.Client{ diff --git a/receiver/mongodbatlasreceiver/alerts_integration_test.go b/receiver/mongodbatlasreceiver/alerts_integration_test.go index 00c1a47ba635..fdc4aaaa3e0e 100644 --- a/receiver/mongodbatlasreceiver/alerts_integration_test.go +++ b/receiver/mongodbatlasreceiver/alerts_integration_test.go @@ -278,7 +278,7 @@ func clientWithCert(path string) (*http.Client, error) { roots := x509.NewCertPool() ok := roots.AppendCertsFromPEM(b) if !ok { - return nil, errors.New("failed to append certficate as root certificate") + return nil, errors.New("failed to append certificate as root certificate") } return &http.Client{ diff --git a/receiver/postgresqlreceiver/README.md b/receiver/postgresqlreceiver/README.md index c10dcf3b367f..c73cce90a65a 100644 --- a/receiver/postgresqlreceiver/README.md +++ b/receiver/postgresqlreceiver/README.md @@ -42,7 +42,7 @@ The following settings are also optional and nested under `tls` to help configur - `insecure` (default = `false`): Whether to enable client transport security for the postgresql connection. - `insecure_skip_verify` (default = `true`): Whether to validate server name and certificate if client transport security is enabled. -- `cert_file` (default = `$HOME/.postgresql/postgresql.crt`): A cerficate used for client authentication, if necessary. +- `cert_file` (default = `$HOME/.postgresql/postgresql.crt`): A certificate used for client authentication, if necessary. - `key_file` (default = `$HOME/.postgresql/postgresql.key`): An SSL key used for client authentication, if necessary. - `ca_file` (default = ""): A set of certificate authorities used to validate the database server's SSL certificate. From 1240206c54300a8dfa666ef90bf15c7f85f8effb Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:13:22 -0500 Subject: [PATCH 050/450] spelling: checkpointing Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/stanza/fileconsumer/internal/tracker/tracker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/stanza/fileconsumer/internal/tracker/tracker.go b/pkg/stanza/fileconsumer/internal/tracker/tracker.go index c784d1c3485a..5d03b0eed31a 100644 --- a/pkg/stanza/fileconsumer/internal/tracker/tracker.go +++ b/pkg/stanza/fileconsumer/internal/tracker/tracker.go @@ -93,7 +93,7 @@ func (t *fileTracker) GetClosedFile(fp *fingerprint.Fingerprint) *reader.Metadat } func (t *fileTracker) GetMetadata() []*reader.Metadata { - // return all known metadata for checkpoining + // return all known metadata for checkpointing allCheckpoints := make([]*reader.Metadata, 0, t.TotalReaders()) for _, knownFiles := range t.knownFiles { allCheckpoints = append(allCheckpoints, knownFiles.Get()...) From e7b597aa248e6d82c053258b4c2124039050fc5b Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 17:28:59 -0500 Subject: [PATCH 051/450] spelling: client Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/httpcheckreceiver/scraper.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/receiver/httpcheckreceiver/scraper.go b/receiver/httpcheckreceiver/scraper.go index e464410f8a15..66e3137e6836 100644 --- a/receiver/httpcheckreceiver/scraper.go +++ b/receiver/httpcheckreceiver/scraper.go @@ -35,9 +35,9 @@ type httpcheckScraper struct { // start starts the scraper by creating a new HTTP Client on the scraper func (h *httpcheckScraper) start(ctx context.Context, host component.Host) (err error) { for _, target := range h.cfg.Targets { - client, clentErr := target.ToClient(ctx, host, h.settings) - if clentErr != nil { - err = multierr.Append(err, clentErr) + client, clientErr := target.ToClient(ctx, host, h.settings) + if clientErr != nil { + err = multierr.Append(err, clientErr) } h.clients = append(h.clients, client) } From 3e7a15d4b3332ad1832fe444f1e02dca25fdd4d0 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 19:51:45 -0500 Subject: [PATCH 052/450] spelling: collect Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/mysqlreceiver/scraper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/mysqlreceiver/scraper.go b/receiver/mysqlreceiver/scraper.go index 40e9f21a30f9..85e830030585 100644 --- a/receiver/mysqlreceiver/scraper.go +++ b/receiver/mysqlreceiver/scraper.go @@ -102,7 +102,7 @@ func (m *mySQLScraper) scrape(context.Context) (pmetric.Metrics, error) { // collect global status metrics. m.scrapeGlobalStats(now, errs) - // colect replicas status metrics. + // collect replicas status metrics. m.scrapeReplicaStatusStats(now) rb := m.mb.NewResourceBuilder() From 46910ecca8697aed0393828ebbb132bff2810fcc Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 19:52:44 -0500 Subject: [PATCH 053/450] spelling: collisions Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/awss3exporter/internal/upload/partition.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exporter/awss3exporter/internal/upload/partition.go b/exporter/awss3exporter/internal/upload/partition.go index 86bdab5c6511..eef559637d79 100644 --- a/exporter/awss3exporter/internal/upload/partition.go +++ b/exporter/awss3exporter/internal/upload/partition.go @@ -37,7 +37,7 @@ type PartitionKeyBuilder struct { // body before uploaded. Compression configcompression.Type // UniqueKeyFunc allows for overwritting the default behavior of - // generating a new unique string to avoid collosions on file upload + // generating a new unique string to avoid collisions on file upload // across many different instances. // // TODO: Expose the ability to config additional UniqueKeyField via config @@ -81,7 +81,7 @@ func (pki *PartitionKeyBuilder) uniqueKey() string { } // This follows the original "uniqueness" algorithm - // to avoid collosions on file uploads across different nodes. + // to avoid collisions on file uploads across different nodes. const ( uniqueValues = 999999999 minOffset = 100000000 From 344af66d1c18e23b017cda004471ac6d088b72fe Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 19:53:09 -0500 Subject: [PATCH 054/450] spelling: command Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- extension/opampextension/monitor_ppid_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extension/opampextension/monitor_ppid_test.go b/extension/opampextension/monitor_ppid_test.go index f61abeb23fff..43cf833ac55b 100644 --- a/extension/opampextension/monitor_ppid_test.go +++ b/extension/opampextension/monitor_ppid_test.go @@ -20,7 +20,7 @@ func TestMonitorPPID(t *testing.T) { t.Parallel() cmdContext, cmdCancel := context.WithCancel(context.Background()) - cmd := longRunningComand(cmdContext) + cmd := longRunningCommand(cmdContext) cmd.Stdout = os.Stdout require.NoError(t, cmd.Start()) cmdPid := cmd.Process.Pid @@ -49,7 +49,7 @@ func TestMonitorPPID(t *testing.T) { t.Parallel() cmdContext, cmdCancel := context.WithCancel(context.Background()) - cmd := longRunningComand(cmdContext) + cmd := longRunningCommand(cmdContext) require.NoError(t, cmd.Start()) cmdPid := cmd.Process.Pid @@ -82,7 +82,7 @@ func TestMonitorPPID(t *testing.T) { }) } -func longRunningComand(ctx context.Context) *exec.Cmd { +func longRunningCommand(ctx context.Context) *exec.Cmd { switch runtime.GOOS { case "windows": // Would prefer to use timeout.exe here, but it doesn't seem to work in From 0228153f9ae8ecf23087cdad288491fb799d48ed Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 19:53:19 -0500 Subject: [PATCH 055/450] spelling: committed Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../internal/model/nodestats.go | 14 +++++++------- receiver/elasticsearchreceiver/scraper.go | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/receiver/elasticsearchreceiver/internal/model/nodestats.go b/receiver/elasticsearchreceiver/internal/model/nodestats.go index 02a9d1e2cdb8..276f02716e7f 100644 --- a/receiver/elasticsearchreceiver/internal/model/nodestats.go +++ b/receiver/elasticsearchreceiver/internal/model/nodestats.go @@ -273,13 +273,13 @@ type JVMInfo struct { } type JVMMemoryInfo struct { - HeapUsedInBy int64 `json:"heap_used_in_bytes"` - NonHeapUsedInBy int64 `json:"non_heap_used_in_bytes"` - MaxHeapInBy int64 `json:"heap_max_in_bytes"` - HeapCommittedInBy int64 `json:"heap_committed_in_bytes"` - HeapUsedPercent int64 `json:"heap_used_percent"` - NonHeapComittedInBy int64 `json:"non_heap_committed_in_bytes"` - MemoryPools JVMMemoryPools `json:"pools"` + HeapUsedInBy int64 `json:"heap_used_in_bytes"` + NonHeapUsedInBy int64 `json:"non_heap_used_in_bytes"` + MaxHeapInBy int64 `json:"heap_max_in_bytes"` + HeapCommittedInBy int64 `json:"heap_committed_in_bytes"` + HeapUsedPercent int64 `json:"heap_used_percent"` + NonHeapCommittedInBy int64 `json:"non_heap_committed_in_bytes"` + MemoryPools JVMMemoryPools `json:"pools"` } type JVMMemoryPools struct { diff --git a/receiver/elasticsearchreceiver/scraper.go b/receiver/elasticsearchreceiver/scraper.go index 71e92a7bb483..ba564b8002a0 100644 --- a/receiver/elasticsearchreceiver/scraper.go +++ b/receiver/elasticsearchreceiver/scraper.go @@ -239,7 +239,7 @@ func (r *elasticsearchScraper) scrapeNodeMetrics(ctx context.Context, now pcommo r.mb.RecordJvmMemoryHeapUtilizationDataPoint(now, float64(info.JVMInfo.JVMMemoryInfo.HeapUsedPercent)/100) r.mb.RecordJvmMemoryNonheapUsedDataPoint(now, info.JVMInfo.JVMMemoryInfo.NonHeapUsedInBy) - r.mb.RecordJvmMemoryNonheapCommittedDataPoint(now, info.JVMInfo.JVMMemoryInfo.NonHeapComittedInBy) + r.mb.RecordJvmMemoryNonheapCommittedDataPoint(now, info.JVMInfo.JVMMemoryInfo.NonHeapCommittedInBy) r.mb.RecordJvmMemoryPoolUsedDataPoint(now, info.JVMInfo.JVMMemoryInfo.MemoryPools.Young.MemUsedBy, "young") r.mb.RecordJvmMemoryPoolUsedDataPoint(now, info.JVMInfo.JVMMemoryInfo.MemoryPools.Survivor.MemUsedBy, "survivor") From 10498e5b25d88ec618d50d1d2e74084e656f23d6 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 19:53:51 -0500 Subject: [PATCH 056/450] spelling: common Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/purefareceiver/receiver.go | 12 ++++++------ receiver/purefbreceiver/metrics_receiver.go | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/receiver/purefareceiver/receiver.go b/receiver/purefareceiver/receiver.go index af17a41b5f16..98ee1cc864b5 100644 --- a/receiver/purefareceiver/receiver.go +++ b/receiver/purefareceiver/receiver.go @@ -38,22 +38,22 @@ func (r *purefaReceiver) Start(ctx context.Context, compHost component.Host) err fact := prometheusreceiver.NewFactory() scrapeCfgs := []*config.ScrapeConfig{} - commomLabel := model.LabelSet{ + commonLabel := model.LabelSet{ "environment": model.LabelValue(r.cfg.Env), "host": model.LabelValue(r.cfg.ArrayName), "fa_array_name": model.LabelValue(r.cfg.ArrayName), } // Extracting environment & fa_array_name from commonLabel - deploymentEnv := commomLabel["environment"] - ArrayName := commomLabel["fa_array_name"] + deploymentEnv := commonLabel["environment"] + ArrayName := commonLabel["fa_array_name"] labelSet := model.LabelSet{ "environment": deploymentEnv, "fa_array_name": ArrayName, } - arrScraper := internal.NewScraper(ctx, internal.ScraperTypeArray, r.cfg.Endpoint, r.cfg.Namespace, r.cfg.TLSSetting, r.cfg.Array, r.cfg.Settings.ReloadIntervals.Array, commomLabel) + arrScraper := internal.NewScraper(ctx, internal.ScraperTypeArray, r.cfg.Endpoint, r.cfg.Namespace, r.cfg.TLSSetting, r.cfg.Array, r.cfg.Settings.ReloadIntervals.Array, commonLabel) if scCfgs, err := arrScraper.ToPrometheusReceiverConfig(compHost, fact); err == nil { scrapeCfgs = append(scrapeCfgs, scCfgs...) } else { @@ -67,14 +67,14 @@ func (r *purefaReceiver) Start(ctx context.Context, compHost component.Host) err return err } - directoriesScraper := internal.NewScraper(ctx, internal.ScraperTypeDirectories, r.cfg.Endpoint, r.cfg.Namespace, r.cfg.TLSSetting, r.cfg.Directories, r.cfg.Settings.ReloadIntervals.Directories, commomLabel) + directoriesScraper := internal.NewScraper(ctx, internal.ScraperTypeDirectories, r.cfg.Endpoint, r.cfg.Namespace, r.cfg.TLSSetting, r.cfg.Directories, r.cfg.Settings.ReloadIntervals.Directories, commonLabel) if scCfgs, err := directoriesScraper.ToPrometheusReceiverConfig(compHost, fact); err == nil { scrapeCfgs = append(scrapeCfgs, scCfgs...) } else { return err } - podsScraper := internal.NewScraper(ctx, internal.ScraperTypePods, r.cfg.Endpoint, r.cfg.Namespace, r.cfg.TLSSetting, r.cfg.Pods, r.cfg.Settings.ReloadIntervals.Pods, commomLabel) + podsScraper := internal.NewScraper(ctx, internal.ScraperTypePods, r.cfg.Endpoint, r.cfg.Namespace, r.cfg.TLSSetting, r.cfg.Pods, r.cfg.Settings.ReloadIntervals.Pods, commonLabel) if scCfgs, err := podsScraper.ToPrometheusReceiverConfig(compHost, fact); err == nil { scrapeCfgs = append(scrapeCfgs, scCfgs...) } else { diff --git a/receiver/purefbreceiver/metrics_receiver.go b/receiver/purefbreceiver/metrics_receiver.go index 8f373e5cdcaf..ca7c7277116f 100644 --- a/receiver/purefbreceiver/metrics_receiver.go +++ b/receiver/purefbreceiver/metrics_receiver.go @@ -38,27 +38,27 @@ func (r *purefbMetricsReceiver) Start(ctx context.Context, compHost component.Ho fact := prometheusreceiver.NewFactory() scrapeCfgs := []*config.ScrapeConfig{} - commomLabel := model.LabelSet{ + commonLabel := model.LabelSet{ "env": model.LabelValue(r.cfg.Env), "fb_array_name": model.LabelValue(r.cfg.Endpoint), "host": model.LabelValue(r.cfg.Endpoint), } - arrScraper := internal.NewScraper(ctx, internal.ScraperTypeArray, r.cfg.Endpoint, r.cfg.Arrays, r.cfg.Settings.ReloadIntervals.Array, commomLabel) + arrScraper := internal.NewScraper(ctx, internal.ScraperTypeArray, r.cfg.Endpoint, r.cfg.Arrays, r.cfg.Settings.ReloadIntervals.Array, commonLabel) if scCfgs, err := arrScraper.ToPrometheusReceiverConfig(compHost, fact); err == nil { scrapeCfgs = append(scrapeCfgs, scCfgs...) } else { return err } - clientsScraper := internal.NewScraper(ctx, internal.ScraperTypeClients, r.cfg.Endpoint, r.cfg.Clients, r.cfg.Settings.ReloadIntervals.Clients, commomLabel) + clientsScraper := internal.NewScraper(ctx, internal.ScraperTypeClients, r.cfg.Endpoint, r.cfg.Clients, r.cfg.Settings.ReloadIntervals.Clients, commonLabel) if scCfgs, err := clientsScraper.ToPrometheusReceiverConfig(compHost, fact); err == nil { scrapeCfgs = append(scrapeCfgs, scCfgs...) } else { return err } - usageScraper := internal.NewScraper(ctx, internal.ScraperTypeUsage, r.cfg.Endpoint, r.cfg.Usage, r.cfg.Settings.ReloadIntervals.Usage, commomLabel) + usageScraper := internal.NewScraper(ctx, internal.ScraperTypeUsage, r.cfg.Endpoint, r.cfg.Usage, r.cfg.Settings.ReloadIntervals.Usage, commonLabel) if scCfgs, err := usageScraper.ToPrometheusReceiverConfig(compHost, fact); err == nil { scrapeCfgs = append(scrapeCfgs, scCfgs...) } else { From a35c16df7b143bde73748dd0013a75efba93865f Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 19:54:32 -0500 Subject: [PATCH 057/450] spelling: component Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/solacereceiver/receiver.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/receiver/solacereceiver/receiver.go b/receiver/solacereceiver/receiver.go index 893c677bd69e..658b3d10c925 100644 --- a/receiver/solacereceiver/receiver.go +++ b/receiver/solacereceiver/receiver.go @@ -41,7 +41,7 @@ const ( ) const ( - brokerComponenteNameAttr = "receiver_name" + brokerComponentNameAttr = "receiver_name" ) // solaceTracesReceiver uses azure AMQP to consume and handle telemetry data from SOlace. Implements receiver.Traces @@ -88,7 +88,7 @@ func newTracesReceiver(config *Config, set receiver.Settings, nextConsumer consu receiverName = "solace" } solaceBrokerAttrs := attribute.NewSet( - attribute.String(brokerComponenteNameAttr, receiverName), + attribute.String(brokerComponentNameAttr, receiverName), ) unmarshaller := newTracesUnmarshaller(set.Logger, telemetryBuilder, solaceBrokerAttrs) From 0b2f4265babb640fcc635c2a5e5a4453337d35ea Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 19:54:52 -0500 Subject: [PATCH 058/450] spelling: concrete Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- connector/routingconnector/factory_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connector/routingconnector/factory_test.go b/connector/routingconnector/factory_test.go index 1ec28eeb821a..dd4418013a2d 100644 --- a/connector/routingconnector/factory_test.go +++ b/connector/routingconnector/factory_test.go @@ -48,7 +48,7 @@ func TestCreationFailsWithIncorrectConsumer(t *testing.T) { }}, } - // in the real world, the factory will always receive a consumer with a concerete type of a + // in the real world, the factory will always receive a consumer with a concrete type of a // connector router. this tests failure when a consumer of another type is passed in. consumer := &consumertest.TracesSink{} From c1bd6441381882700a70777cc6b477ae02c475fc Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 19:54:59 -0500 Subject: [PATCH 059/450] spelling: conditions Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- connector/signaltometricsconnector/config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connector/signaltometricsconnector/config/config.go b/connector/signaltometricsconnector/config/config.go index 582afd1b7a2f..0b3bb3cae3a8 100644 --- a/connector/signaltometricsconnector/config/config.go +++ b/connector/signaltometricsconnector/config/config.go @@ -152,7 +152,7 @@ type MetricInfo struct { // attribute is included in the list then all attributes are included. IncludeResourceAttributes []Attribute `mapstructure:"include_resource_attributes"` Attributes []Attribute `mapstructure:"attributes"` - // Conditions are a set of OTTL condtions which are ORed. Data is + // Conditions are a set of OTTL conditions which are ORed. Data is // processed into metrics only if the sequence evaluates to true. Conditions []string `mapstructure:"conditions"` Histogram *Histogram `mapstructure:"histogram"` From 9a06aa644bf105db7f080361514197cf0f5f2aa5 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 19:55:40 -0500 Subject: [PATCH 060/450] spelling: config Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/stanza/fileconsumer/internal/header/config_test.go | 6 +++--- receiver/chronyreceiver/config.go | 2 +- receiver/chronyreceiver/factory.go | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/stanza/fileconsumer/internal/header/config_test.go b/pkg/stanza/fileconsumer/internal/header/config_test.go index 91914b7c7fc0..62dd009854cf 100644 --- a/pkg/stanza/fileconsumer/internal/header/config_test.go +++ b/pkg/stanza/fileconsumer/internal/header/config_test.go @@ -28,8 +28,8 @@ func TestBuild(t *testing.T) { generateConf := generate.NewConfig("") stdoutConf := stdout.NewConfig("") - filterConfg := filter.NewConfig() - filterConfg.Expression = "true" + filterConfig := filter.NewConfig() + filterConfig.Expression = "true" testCases := []struct { name string @@ -125,7 +125,7 @@ func TestBuild(t *testing.T) { pattern: "^#", ops: []operator.Config{ { - Builder: filterConfg, + Builder: filterConfig, }, }, expectedErr: "operator of type filter is not allowed in `metadata_operators`", diff --git a/receiver/chronyreceiver/config.go b/receiver/chronyreceiver/config.go index f8a8e66740a3..280379519d2a 100644 --- a/receiver/chronyreceiver/config.go +++ b/receiver/chronyreceiver/config.go @@ -34,7 +34,7 @@ var ( errInvalidValue = errors.New("invalid value") ) -func newDefaultCongfig() component.Config { +func newDefaultConfig() component.Config { cfg := scraperhelper.NewDefaultControllerConfig() cfg.Timeout = 10 * time.Second return &Config{ diff --git a/receiver/chronyreceiver/factory.go b/receiver/chronyreceiver/factory.go index 243e52c598b7..6109166e229a 100644 --- a/receiver/chronyreceiver/factory.go +++ b/receiver/chronyreceiver/factory.go @@ -20,7 +20,7 @@ import ( func NewFactory() receiver.Factory { return receiver.NewFactory( metadata.Type, - newDefaultCongfig, + newDefaultConfig, receiver.WithMetrics(newMetricsReceiver, metadata.MetricsStability), ) } From 60d854ad59fa9af002f07e9858c0cb3c51e8a7d1 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:13:29 -0500 Subject: [PATCH 061/450] spelling: configuration Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/saphanareceiver/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/saphanareceiver/README.md b/receiver/saphanareceiver/README.md index 3ed373085d27..1e5ba39bc7dc 100644 --- a/receiver/saphanareceiver/README.md +++ b/receiver/saphanareceiver/README.md @@ -99,5 +99,5 @@ with detailed sample configurations [here](./testdata/config.yaml). Details about the metrics produced by this receiver can be found in [metadata.yaml](./metadata.yaml). Further details of the monitoring queries used to collect them may be found in [queries.go](./queries.go). -> If all of the metrics collected by a given monitoring query are marked as `enabled: false` in the receiver configration, the monitoring query will not be executed. +> If all of the metrics collected by a given monitoring query are marked as `enabled: false` in the receiver configuration, the monitoring query will not be executed. From 9023b71677acb8c6db47174febbb66c12ddedecf Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 19:55:09 -0500 Subject: [PATCH 062/450] spelling: connect Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/solacereceiver/messaging_service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/solacereceiver/messaging_service.go b/receiver/solacereceiver/messaging_service.go index d1903e3e5031..7793319fb38f 100644 --- a/receiver/solacereceiver/messaging_service.go +++ b/receiver/solacereceiver/messaging_service.go @@ -72,7 +72,7 @@ func newAMQPMessagingServiceFactory(cfg *Config, logger *zap.Logger) (messagingS } type amqpConnectConfig struct { - // conenct config + // connect config addr string saslConfig amqp.SASLType tlsConfig *tls.Config From 054bfb5b14688fe03b50d555f70b56cd32485d40 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 19:56:21 -0500 Subject: [PATCH 063/450] spelling: connection Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/azureblobreceiver/blobeventhandler.go | 8 ++++---- receiver/redisreceiver/client.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/receiver/azureblobreceiver/blobeventhandler.go b/receiver/azureblobreceiver/blobeventhandler.go index 575238b93b1d..974277b099b2 100644 --- a/receiver/azureblobreceiver/blobeventhandler.go +++ b/receiver/azureblobreceiver/blobeventhandler.go @@ -25,7 +25,7 @@ type azureBlobEventHandler struct { tracesDataConsumer tracesDataConsumer logsContainerName string tracesContainerName string - eventHubSonnectionString string + eventHubConnectionString string hub *eventhub.Hub logger *zap.Logger } @@ -41,7 +41,7 @@ func (p *azureBlobEventHandler) run(ctx context.Context) error { return nil } - hub, err := eventhub.NewHubFromConnectionString(p.eventHubSonnectionString) + hub, err := eventhub.NewHubFromConnectionString(p.eventHubConnectionString) if err != nil { return err } @@ -127,12 +127,12 @@ func (p *azureBlobEventHandler) setTracesDataConsumer(tracesDataConsumer tracesD p.tracesDataConsumer = tracesDataConsumer } -func newBlobEventHandler(eventHubSonnectionString string, logsContainerName string, tracesContainerName string, blobClient blobClient, logger *zap.Logger) *azureBlobEventHandler { +func newBlobEventHandler(eventHubConnectionString string, logsContainerName string, tracesContainerName string, blobClient blobClient, logger *zap.Logger) *azureBlobEventHandler { return &azureBlobEventHandler{ blobClient: blobClient, logsContainerName: logsContainerName, tracesContainerName: tracesContainerName, - eventHubSonnectionString: eventHubSonnectionString, + eventHubConnectionString: eventHubConnectionString, logger: logger, } } diff --git a/receiver/redisreceiver/client.go b/receiver/redisreceiver/client.go index 480ae522c0a3..13a2e99489c8 100644 --- a/receiver/redisreceiver/client.go +++ b/receiver/redisreceiver/client.go @@ -44,7 +44,7 @@ func (c *redisClient) retrieveInfo() (string, error) { return c.client.Info(context.Background(), "all").Result() } -// close client to release connention pool. +// close client to release connection pool. func (c *redisClient) close() error { return c.client.Close() } From 36e6d9e187863070b1b612de834ed50087d1fb17 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 19:57:02 -0500 Subject: [PATCH 064/450] spelling: connections Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/otelarrowexporter/internal/arrow/exporter_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/otelarrowexporter/internal/arrow/exporter_test.go b/exporter/otelarrowexporter/internal/arrow/exporter_test.go index a182d02ecc45..34bcfaa1f71b 100644 --- a/exporter/otelarrowexporter/internal/arrow/exporter_test.go +++ b/exporter/otelarrowexporter/internal/arrow/exporter_test.go @@ -301,7 +301,7 @@ func TestArrowExporterTimeout(t *testing.T) { } } -// TestConnectError tests that if the connetions fail fast the +// TestConnectError tests that if the connections fail fast the // stream object for some reason is nil. This causes downgrade. func TestArrowExporterStreamConnectError(t *testing.T) { for _, pname := range AllPrioritizers { From d89e7092750e8fb782be252f280ae53881f1d2fc Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 19:57:14 -0500 Subject: [PATCH 065/450] spelling: consider Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/otelarrowexporter/internal/arrow/bestofn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/otelarrowexporter/internal/arrow/bestofn.go b/exporter/otelarrowexporter/internal/arrow/bestofn.go index 443713cda815..ae176dfd5470 100644 --- a/exporter/otelarrowexporter/internal/arrow/bestofn.go +++ b/exporter/otelarrowexporter/internal/arrow/bestofn.go @@ -30,7 +30,7 @@ type bestOfNPrioritizer struct { // state tracks the work being handled by all streams. state []*streamWorkState - // numChoices is the number of streams to consder in each decision. + // numChoices is the number of streams to consider in each decision. numChoices int // loadFunc is the load function. From 2fffc5462ef7d13927db8c08c279632198e3d396 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 19:57:26 -0500 Subject: [PATCH 066/450] spelling: constituent Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/signalfxexporter/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/signalfxexporter/README.md b/exporter/signalfxexporter/README.md index 043ef34e4590..22160bd2876b 100644 --- a/exporter/signalfxexporter/README.md +++ b/exporter/signalfxexporter/README.md @@ -210,7 +210,7 @@ help ensure compatibility with custom charts and dashboards when using the OpenT The rule language is expressed in yaml mappings and is [documented here](./internal/translation/translator.go). Translation rules currently allow the following actions: * `aggregate_metric` - Aggregates a metric through removal of specified dimensions -* `calculate_new_metric` - Creates a new metric via operating on two consistuent ones +* `calculate_new_metric` - Creates a new metric via operating on two constituent ones * `convert_values` - Convert float values to int or int to float for specified metric names * `copy_metrics` - Creates a new metric as a copy of another * `delta_metric` - Creates a new delta metric for a specified non-delta one From ff11ebaf24b7cb18926fef304a29fa8bc757c05a Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 19:54:44 -0500 Subject: [PATCH 067/450] spelling: consumer Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/datadogexporter/logs_exporter.go | 2 +- receiver/awsecscontainermetricsreceiver/factory_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/exporter/datadogexporter/logs_exporter.go b/exporter/datadogexporter/logs_exporter.go index 784db1572889..d8a8907c7105 100644 --- a/exporter/datadogexporter/logs_exporter.go +++ b/exporter/datadogexporter/logs_exporter.go @@ -98,7 +98,7 @@ func newLogsExporter( var _ consumer.ConsumeLogsFunc = (*logsExporter)(nil).consumeLogs -// consumeLogs is implementation of cosumer.ConsumeLogsFunc +// consumeLogs is implementation of consumer.ConsumeLogsFunc func (exp *logsExporter) consumeLogs(ctx context.Context, ld plog.Logs) (err error) { defer func() { err = exp.scrubber.Scrub(err) }() if exp.cfg.HostMetadata.Enabled { diff --git a/receiver/awsecscontainermetricsreceiver/factory_test.go b/receiver/awsecscontainermetricsreceiver/factory_test.go index 91f9447f428e..c2e2ed1b6fd9 100644 --- a/receiver/awsecscontainermetricsreceiver/factory_test.go +++ b/receiver/awsecscontainermetricsreceiver/factory_test.go @@ -65,6 +65,6 @@ func TestCreateMetricsWithNilConsumer(t *testing.T) { nil, ) - require.Error(t, err, "Nil Comsumer") + require.Error(t, err, "Nil Consumer") require.Nil(t, metricsReceiver) } From 8b4c7b20f14965a44b48497f367a0192655acb95 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 19:57:34 -0500 Subject: [PATCH 068/450] spelling: consumption Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- testbed/testbed/options.go | 2 +- testbed/testbed/otelcol_runner.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/testbed/testbed/options.go b/testbed/testbed/options.go index ac37313f466f..69243ba99782 100644 --- a/testbed/testbed/options.go +++ b/testbed/testbed/options.go @@ -49,7 +49,7 @@ func WithSkipResults() TestCaseOption { } } -// WithResourceLimits sets expected limits for resource consmption. +// WithResourceLimits sets expected limits for resource consumption. // Error is signaled if consumption during ResourceCheckPeriod exceeds the limits. // Limits are modified only for non-zero fields of resourceSpec, all zero-value fields // fo resourceSpec are ignored and their previous values remain in effect. diff --git a/testbed/testbed/otelcol_runner.go b/testbed/testbed/otelcol_runner.go index f35480443940..9bf84076b757 100644 --- a/testbed/testbed/otelcol_runner.go +++ b/testbed/testbed/otelcol_runner.go @@ -34,7 +34,7 @@ type OtelcolRunner interface { // Stop stops the otelcol instance(s) which are the subject of the test just run if applicable. Returns whether // the instance was actually stopped or not. Stop() (stopped bool, err error) - // WatchResourceConsumption toggles on the monitoring of resource consumpution by the otelcol instance under test. + // WatchResourceConsumption toggles on the monitoring of resource consumption by the otelcol instance under test. WatchResourceConsumption() error // GetProcessMon returns the Process being used to monitor resource consumption. GetProcessMon() *process.Process From a3e9d301ee44afcc79bb55f69a5f27b1f76c6b12 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 19:55:17 -0500 Subject: [PATCH 069/450] spelling: content Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/sumologicexporter/sender.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/sumologicexporter/sender.go b/exporter/sumologicexporter/sender.go index d52cfcbcdb3f..85941a6952d5 100644 --- a/exporter/sumologicexporter/sender.go +++ b/exporter/sumologicexporter/sender.go @@ -213,7 +213,7 @@ func (s *sender) handleReceiverResponse(resp *http.Response) error { s.updateStickySessionCookie(resp) } - // API responds with a 200 or 204 with ConentLength set to 0 when all data + // API responds with a 200 or 204 with ContentLength set to 0 when all data // has been successfully ingested. if resp.ContentLength == 0 && (resp.StatusCode == http.StatusOK || resp.StatusCode == http.StatusNoContent) { return nil From 6b56523f763e8fac79be97eb6883c084d93208e2 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 19:58:23 -0500 Subject: [PATCH 070/450] spelling: contrib Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d4b20a0620fc..9bf60708ccf0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3414,7 +3414,7 @@ This release fixes CVE-2024-42368 on the `bearerauthtokenextension` (#34516) - `pkg/ottl`: Add new `IsString` and `IsMap` functions to facilitate type checking. (#22750) Especially useful for checking log body type before parsing. - `pkg/ottl`: Adds `StandardFuncs` and `StandardConverters` to facilitate function map generation. (#23190) - This change means that new functions added to ottlfuncs get automatically added to Cotnrib components that use OTTL + This change means that new functions added to ottlfuncs get automatically added to Contrib components that use OTTL - `pkg/ottl`: Change replacement functions to accept a path expression as a replacement (#22787) The following replacement functions now accept a path expression as a replacement: - replace_match From 0cb64492f8e8fa291a7f160dc9685b1d71aa1882 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 19:58:03 -0500 Subject: [PATCH 071/450] spelling: conversion Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9bf60708ccf0..bcab61830692 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5371,7 +5371,7 @@ This version has been skipped. - `datadogexporter`: Fix logs related to the source provider. (#12160) - `pkg/stanza/fileconsumer`: Fix issue where reader could become stuck on newlines (#10125, #10127, #10128) - `receivercreator`: dynamically created receivers log with their `name` field (#16481) -- `skywalkingreceiver`: Fix skywalking traceid and spanid convertion (#11562) +- `skywalkingreceiver`: Fix skywalking traceid and spanid conversion (#11562) - `spanmetricsprocessor`: Fixes the number of explicit bucket counts by removing the manually added "catch-all" bucket. (#11784) - `spanmetricsprocessor`: Fix concurrency bug causing premature key eviction. (#9018) - `spanmetricsprocessor`: Removes a comment that is no longer relevant due to a fix. (#12427) From c9548144d20ce197aedd9aee494f34af2ee0b630 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 19:58:14 -0500 Subject: [PATCH 072/450] spelling: corresponding Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/otelarrowexporter/internal/arrow/stream.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/otelarrowexporter/internal/arrow/stream.go b/exporter/otelarrowexporter/internal/arrow/stream.go index c6251b7ad249..7a99a3d6f51f 100644 --- a/exporter/otelarrowexporter/internal/arrow/stream.go +++ b/exporter/otelarrowexporter/internal/arrow/stream.go @@ -380,7 +380,7 @@ func (s *Stream) read(_ context.Context) error { } } -// getSenderChannel takes the stream lock and removes the corresonding +// getSenderChannel takes the stream lock and removes the corresponding // sender channel. func (sws *streamWorkState) getSenderChannel(bstat *arrowpb.BatchStatus) (chan<- error, error) { sws.lock.Lock() From 1c73b9d2e60dc95498217f6f07b9584eb7bb77ef Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 19:58:29 -0500 Subject: [PATCH 073/450] spelling: could Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/saphanareceiver/client_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/saphanareceiver/client_test.go b/receiver/saphanareceiver/client_test.go index e8e3f2f4ea2e..6fb1988f018b 100644 --- a/receiver/saphanareceiver/client_test.go +++ b/receiver/saphanareceiver/client_test.go @@ -107,7 +107,7 @@ func TestBasicConnectAndClose(t *testing.T) { func TestFailedPing(t *testing.T) { dbWrapper := &testDBWrapper{} - dbWrapper.On("PingContext").Return(errors.New("Coult not ping host")) + dbWrapper.On("PingContext").Return(errors.New("Could not ping host")) dbWrapper.On("Close").Return(nil) factory := &testConnectionFactory{dbWrapper} From 716446438c416ad28d8c8e4170e2d172b459d519 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:14:08 -0500 Subject: [PATCH 074/450] spelling: creator-on Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/googlecloudexporter/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/googlecloudexporter/README.md b/exporter/googlecloudexporter/README.md index 8a7754f45b8a..0b4d5330c935 100644 --- a/exporter/googlecloudexporter/README.md +++ b/exporter/googlecloudexporter/README.md @@ -177,7 +177,7 @@ The following configuration options are supported: - `impersonate` (optional): Configuration for service account impersonation - `target_principal`: TargetPrincipal is the email address of the service account to impersonate. - `subject`: (optional) Subject is the sub field of a JWT. This field should only be set if you wish to impersonate as a user. This feature is useful when using domain wide delegation. - - `delegates`: (default = []) Delegates are the service account email addresses in a delegation chain. Each service account must be granted roles/iam.serviceAccountTokenCreatoron the next service account in the chain. + - `delegates`: (default = []) Delegates are the service account email addresses in a delegation chain. Each service account must be granted roles/iam.serviceAccountTokenCreator on the next service account in the chain. - `metric` (optional): Configuration for sending metrics to Cloud Monitoring. - `prefix` (default = `workload.googleapis.com`): The prefix to add to metrics. - `endpoint` (default = monitoring.googleapis.com): Endpoint where metric data is going to be sent to. From 118a90ccd337b2b8f6032bbfeefbf49412b18d38 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 21:02:51 -0500 Subject: [PATCH 075/450] spelling: creator Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/activedirectorydsreceiver/counters.go | 8 ++++---- receiver/activedirectorydsreceiver/counters_test.go | 6 +++--- receiver/activedirectorydsreceiver/scraper.go | 2 +- receiver/activedirectorydsreceiver/scraper_test.go | 8 ++++---- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/receiver/activedirectorydsreceiver/counters.go b/receiver/activedirectorydsreceiver/counters.go index dadee4533c41..e5d30f48fec4 100644 --- a/receiver/activedirectorydsreceiver/counters.go +++ b/receiver/activedirectorydsreceiver/counters.go @@ -81,7 +81,7 @@ func (w *watchers) Close() error { return err } -func getWatchers(wc watcherCreater) (*watchers, error) { +func getWatchers(wc watcherCreator) (*watchers, error) { var err error w := &watchers{ @@ -219,7 +219,7 @@ func getWatchers(wc watcherCreater) (*watchers, error) { return w, nil } -type watcherCreater interface { +type watcherCreator interface { Create(counterName string) (winperfcounters.PerfCounterWatcher, error) } @@ -228,8 +228,8 @@ const ( object = "DirectoryServices" ) -type defaultWatcherCreater struct{} +type defaultWatcherCreator struct{} -func (defaultWatcherCreater) Create(counterName string) (winperfcounters.PerfCounterWatcher, error) { +func (defaultWatcherCreator) Create(counterName string) (winperfcounters.PerfCounterWatcher, error) { return winperfcounters.NewWatcher(object, instanceName, counterName) } diff --git a/receiver/activedirectorydsreceiver/counters_test.go b/receiver/activedirectorydsreceiver/counters_test.go index 24419cd46414..8ee7057d8cb6 100644 --- a/receiver/activedirectorydsreceiver/counters_test.go +++ b/receiver/activedirectorydsreceiver/counters_test.go @@ -19,7 +19,7 @@ import ( ) func TestGetWatchers(t *testing.T) { - c := &mockCounterCreater{ + c := &mockCounterCreator{ availableCounterNames: getAvailableCounters(t), } @@ -46,12 +46,12 @@ func getAvailableCounters(t *testing.T) []string { return linesOut } -type mockCounterCreater struct { +type mockCounterCreator struct { created int availableCounterNames []string } -func (m *mockCounterCreater) Create(counterName string) (winperfcounters.PerfCounterWatcher, error) { +func (m *mockCounterCreator) Create(counterName string) (winperfcounters.PerfCounterWatcher, error) { for _, availableCounter := range m.availableCounterNames { if counterName == availableCounter { watcher := &mockPerfCounterWatcher{ diff --git a/receiver/activedirectorydsreceiver/scraper.go b/receiver/activedirectorydsreceiver/scraper.go index 1a2967c203d9..63441c1e067e 100644 --- a/receiver/activedirectorydsreceiver/scraper.go +++ b/receiver/activedirectorydsreceiver/scraper.go @@ -32,7 +32,7 @@ func newActiveDirectoryDSScraper(mbc metadata.MetricsBuilderConfig, params recei } func (a *activeDirectoryDSScraper) start(_ context.Context, _ component.Host) error { - watchers, err := getWatchers(defaultWatcherCreater{}) + watchers, err := getWatchers(defaultWatcherCreator{}) if err != nil { return fmt.Errorf("failed to create performance counter watchers: %w", err) } diff --git a/receiver/activedirectorydsreceiver/scraper_test.go b/receiver/activedirectorydsreceiver/scraper_test.go index fbce624dc43b..4ae56555dbb8 100644 --- a/receiver/activedirectorydsreceiver/scraper_test.go +++ b/receiver/activedirectorydsreceiver/scraper_test.go @@ -30,7 +30,7 @@ func TestScrape(t *testing.T) { t.Run("Fully successful scrape", func(t *testing.T) { t.Parallel() - mockWatchers, err := getWatchers(&mockCounterCreater{ + mockWatchers, err := getWatchers(&mockCounterCreator{ availableCounterNames: getAvailableCounters(t), }) require.NoError(t, err) @@ -59,7 +59,7 @@ func TestScrape(t *testing.T) { fullSyncObjectsRemainingErr := errors.New("failed to scrape sync objects remaining") draInboundValuesDNErr := errors.New("failed to scrape sync inbound value DNs") - mockWatchers, err := getWatchers(&mockCounterCreater{ + mockWatchers, err := getWatchers(&mockCounterCreator{ availableCounterNames: getAvailableCounters(t), }) require.NoError(t, err) @@ -94,7 +94,7 @@ func TestScrape(t *testing.T) { fullSyncObjectsRemainingErr := errors.New("failed to close sync objects remaining") draInboundValuesDNErr := errors.New("failed to close sync inbound value DNs") - mockWatchers, err := getWatchers(&mockCounterCreater{ + mockWatchers, err := getWatchers(&mockCounterCreator{ availableCounterNames: getAvailableCounters(t), }) require.NoError(t, err) @@ -115,7 +115,7 @@ func TestScrape(t *testing.T) { t.Run("Double shutdown does not error", func(t *testing.T) { t.Parallel() - mockWatchers, err := getWatchers(&mockCounterCreater{ + mockWatchers, err := getWatchers(&mockCounterCreator{ availableCounterNames: getAvailableCounters(t), }) require.NoError(t, err) From aafa44dba00166d432f395abbf4136b6bf8818af Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:14:22 -0500 Subject: [PATCH 076/450] spelling: current Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/sumologicexporter/sender.go | 6 +++--- extension/sumologicextension/extension.go | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/exporter/sumologicexporter/sender.go b/exporter/sumologicexporter/sender.go index 85941a6952d5..6498e8fc8f84 100644 --- a/exporter/sumologicexporter/sender.go +++ b/exporter/sumologicexporter/sender.go @@ -722,11 +722,11 @@ func (s *sender) recordMetrics(duration time.Duration, count int64, req *http.Re } func (s *sender) addStickySessionCookie(req *http.Request) { - currectCookieValue := s.stickySessionCookieFunc() - if currectCookieValue != "" { + currentCookieValue := s.stickySessionCookieFunc() + if currentCookieValue != "" { cookie := &http.Cookie{ Name: stickySessionKey, - Value: currectCookieValue, + Value: currentCookieValue, } req.AddCookie(cookie) } diff --git a/extension/sumologicextension/extension.go b/extension/sumologicextension/extension.go index 6c1681bb5643..cb7d2c173f4a 100644 --- a/extension/sumologicextension/extension.go +++ b/extension/sumologicextension/extension.go @@ -1025,11 +1025,11 @@ func (se *SumologicExtension) addStickySessionCookie(req *http.Request) { if !se.conf.StickySessionEnabled { return } - currectCookieValue := se.StickySessionCookie() - if currectCookieValue != "" { + currentCookieValue := se.StickySessionCookie() + if currentCookieValue != "" { cookie := &http.Cookie{ Name: stickySessionKey, - Value: currectCookieValue, + Value: currentCookieValue, } req.AddCookie(cookie) } From 0fa95944151163f56bbda078986e24c7fb251098 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 21:23:09 -0500 Subject: [PATCH 077/450] spelling: daemonset Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/k8sclusterreceiver/informer_transform.go | 4 ++-- receiver/k8sclusterreceiver/internal/collection/collector.go | 4 ++-- .../internal/{demonset => daemonset}/daemonsets.go | 2 +- .../internal/{demonset => daemonset}/daemonsets_test.go | 2 +- .../internal/{demonset => daemonset}/package_test.go | 2 +- .../internal/{demonset => daemonset}/testdata/expected.yaml | 0 receiver/k8sclusterreceiver/watcher.go | 4 ++-- 7 files changed, 9 insertions(+), 9 deletions(-) rename receiver/k8sclusterreceiver/internal/{demonset => daemonset}/daemonsets.go (93%) rename receiver/k8sclusterreceiver/internal/{demonset => daemonset}/daemonsets_test.go (99%) rename receiver/k8sclusterreceiver/internal/{demonset => daemonset}/package_test.go (91%) rename receiver/k8sclusterreceiver/internal/{demonset => daemonset}/testdata/expected.yaml (100%) diff --git a/receiver/k8sclusterreceiver/informer_transform.go b/receiver/k8sclusterreceiver/informer_transform.go index 17486d4d8204..63fb388fde9d 100644 --- a/receiver/k8sclusterreceiver/informer_transform.go +++ b/receiver/k8sclusterreceiver/informer_transform.go @@ -8,7 +8,7 @@ import ( batchv1 "k8s.io/api/batch/v1" corev1 "k8s.io/api/core/v1" - "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/k8sclusterreceiver/internal/demonset" + "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/k8sclusterreceiver/internal/daemonset" "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/k8sclusterreceiver/internal/deployment" "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/k8sclusterreceiver/internal/jobs" "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/k8sclusterreceiver/internal/node" @@ -33,7 +33,7 @@ func transformObject(object any) (any, error) { case *appsv1.Deployment: return deployment.Transform(o), nil case *appsv1.DaemonSet: - return demonset.Transform(o), nil + return daemonset.Transform(o), nil case *appsv1.StatefulSet: return statefulset.Transform(o), nil case *corev1.Service: diff --git a/receiver/k8sclusterreceiver/internal/collection/collector.go b/receiver/k8sclusterreceiver/internal/collection/collector.go index 8beff3ed03cb..3a939fa5f32d 100644 --- a/receiver/k8sclusterreceiver/internal/collection/collector.go +++ b/receiver/k8sclusterreceiver/internal/collection/collector.go @@ -17,7 +17,7 @@ import ( "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/k8sclusterreceiver/internal/clusterresourcequota" "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/k8sclusterreceiver/internal/cronjob" - "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/k8sclusterreceiver/internal/demonset" + "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/k8sclusterreceiver/internal/daemonset" "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/k8sclusterreceiver/internal/deployment" "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/k8sclusterreceiver/internal/gvk" "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/k8sclusterreceiver/internal/hpa" @@ -88,7 +88,7 @@ func (dc *DataCollector) CollectMetricData(currentTime time.Time) pmetric.Metric replicaset.RecordMetrics(dc.metricsBuilder, o.(*appsv1.ReplicaSet), ts) }) dc.metadataStore.ForEach(gvk.DaemonSet, func(o any) { - demonset.RecordMetrics(dc.metricsBuilder, o.(*appsv1.DaemonSet), ts) + daemonset.RecordMetrics(dc.metricsBuilder, o.(*appsv1.DaemonSet), ts) }) dc.metadataStore.ForEach(gvk.StatefulSet, func(o any) { statefulset.RecordMetrics(dc.metricsBuilder, o.(*appsv1.StatefulSet), ts) diff --git a/receiver/k8sclusterreceiver/internal/demonset/daemonsets.go b/receiver/k8sclusterreceiver/internal/daemonset/daemonsets.go similarity index 93% rename from receiver/k8sclusterreceiver/internal/demonset/daemonsets.go rename to receiver/k8sclusterreceiver/internal/daemonset/daemonsets.go index da941cea39f9..16b51f083a2a 100644 --- a/receiver/k8sclusterreceiver/internal/demonset/daemonsets.go +++ b/receiver/k8sclusterreceiver/internal/daemonset/daemonsets.go @@ -1,7 +1,7 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -package demonset // import "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/k8sclusterreceiver/internal/demonset" +package daemonset // import "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/k8sclusterreceiver/internal/daemonset" import ( "go.opentelemetry.io/collector/pdata/pcommon" diff --git a/receiver/k8sclusterreceiver/internal/demonset/daemonsets_test.go b/receiver/k8sclusterreceiver/internal/daemonset/daemonsets_test.go similarity index 99% rename from receiver/k8sclusterreceiver/internal/demonset/daemonsets_test.go rename to receiver/k8sclusterreceiver/internal/daemonset/daemonsets_test.go index edef8ae56d27..30e48cc00621 100644 --- a/receiver/k8sclusterreceiver/internal/demonset/daemonsets_test.go +++ b/receiver/k8sclusterreceiver/internal/daemonset/daemonsets_test.go @@ -1,7 +1,7 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -package demonset +package daemonset import ( "path/filepath" diff --git a/receiver/k8sclusterreceiver/internal/demonset/package_test.go b/receiver/k8sclusterreceiver/internal/daemonset/package_test.go similarity index 91% rename from receiver/k8sclusterreceiver/internal/demonset/package_test.go rename to receiver/k8sclusterreceiver/internal/daemonset/package_test.go index cbb7f74afde5..cc766f8c7422 100644 --- a/receiver/k8sclusterreceiver/internal/demonset/package_test.go +++ b/receiver/k8sclusterreceiver/internal/daemonset/package_test.go @@ -1,7 +1,7 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -package demonset +package daemonset import ( "testing" diff --git a/receiver/k8sclusterreceiver/internal/demonset/testdata/expected.yaml b/receiver/k8sclusterreceiver/internal/daemonset/testdata/expected.yaml similarity index 100% rename from receiver/k8sclusterreceiver/internal/demonset/testdata/expected.yaml rename to receiver/k8sclusterreceiver/internal/daemonset/testdata/expected.yaml diff --git a/receiver/k8sclusterreceiver/watcher.go b/receiver/k8sclusterreceiver/watcher.go index 240c4f9417b5..4912f056e48d 100644 --- a/receiver/k8sclusterreceiver/watcher.go +++ b/receiver/k8sclusterreceiver/watcher.go @@ -30,7 +30,7 @@ import ( "github.com/open-telemetry/opentelemetry-collector-contrib/internal/k8sconfig" "github.com/open-telemetry/opentelemetry-collector-contrib/pkg/experimentalmetricmetadata" "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/k8sclusterreceiver/internal/cronjob" - "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/k8sclusterreceiver/internal/demonset" + "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/k8sclusterreceiver/internal/daemonset" "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/k8sclusterreceiver/internal/deployment" "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/k8sclusterreceiver/internal/gvk" "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/k8sclusterreceiver/internal/hpa" @@ -305,7 +305,7 @@ func (rw *resourceWatcher) objMetadata(obj any) map[experimentalmetricmetadata.R case *appsv1.ReplicaSet: return replicaset.GetMetadata(o) case *appsv1.DaemonSet: - return demonset.GetMetadata(o) + return daemonset.GetMetadata(o) case *appsv1.StatefulSet: return statefulset.GetMetadata(o) case *batchv1.Job: From b921d90a1e97e8ea7bf24fcada15b9567072a935 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 21:03:33 -0500 Subject: [PATCH 078/450] spelling: database Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../schemaprocessor/internal/migrate/conditional_test.go | 8 ++++---- .../internal/migrate/multi_conditional_test.go | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/processor/schemaprocessor/internal/migrate/conditional_test.go b/processor/schemaprocessor/internal/migrate/conditional_test.go index 18db1f9186f4..8c2c6a10d3d6 100644 --- a/processor/schemaprocessor/internal/migrate/conditional_test.go +++ b/processor/schemaprocessor/internal/migrate/conditional_test.go @@ -39,7 +39,7 @@ func TestConditionalAttributeSetApply(t *testing.T) { }, "application start", ), - check: "datatbase operation", + check: "database operation", attr: testHelperBuildMap(func(m pcommon.Map) { m.PutStr("service.version", "v0.0.0") }), @@ -54,7 +54,7 @@ func TestConditionalAttributeSetApply(t *testing.T) { "service.version": "application.version", }, ), - check: "datatbase operation", + check: "database operation", attr: testHelperBuildMap(func(m pcommon.Map) { m.PutStr("service.version", "v0.0.0") }), @@ -118,7 +118,7 @@ func TestConditionalAttributeSetRollback(t *testing.T) { }, "application start", ), - check: "datatbase operation", + check: "database operation", attr: testHelperBuildMap(func(m pcommon.Map) { m.PutStr("service.version", "v0.0.0") }), @@ -133,7 +133,7 @@ func TestConditionalAttributeSetRollback(t *testing.T) { "service.version": "application.version", }, ), - check: "datatbase operation", + check: "database operation", attr: testHelperBuildMap(func(m pcommon.Map) { m.PutStr("application.version", "v0.0.0") }), diff --git a/processor/schemaprocessor/internal/migrate/multi_conditional_test.go b/processor/schemaprocessor/internal/migrate/multi_conditional_test.go index 5f81d6d4dbbf..af1013e432f4 100644 --- a/processor/schemaprocessor/internal/migrate/multi_conditional_test.go +++ b/processor/schemaprocessor/internal/migrate/multi_conditional_test.go @@ -40,7 +40,7 @@ func TestMultiConditionalAttributeSetApply(t *testing.T) { }, map[string][]string{"span.name": {"application start"}}, ), - inCondData: map[string]string{"span.name": "datatbase operation"}, + inCondData: map[string]string{"span.name": "database operation"}, inAttr: testHelperBuildMap(func(m pcommon.Map) { m.PutStr("service.version", "v0.0.0") }), @@ -56,7 +56,7 @@ func TestMultiConditionalAttributeSetApply(t *testing.T) { }, map[string][]string{}, ), - inCondData: map[string]string{"span.name": "datatbase operation"}, + inCondData: map[string]string{"span.name": "database operation"}, inAttr: testHelperBuildMap(func(m pcommon.Map) { m.PutStr("service.version", "v0.0.0") }), From d7b6e353540cf835a3a61357c80b2484e168032a Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 21:03:53 -0500 Subject: [PATCH 079/450] spelling: datadog Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- exporter/datadogexporter/internal/logs/sender.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bcab61830692..d09aed7dfe3b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6052,7 +6052,7 @@ https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/9278. - `elasticsearchreceiver`: Use same metrics as JMX receiver for JVM metrics (#7160) - `elasticsearchreceiver`: Implement scraping logic (#7174) - `datadogexporter`: Add http.status_code tag to trace stats (#6889) -- `datadogexporter`: Add configuration option to use OTel span name into the Datatog resource name (#6611) +- `datadogexporter`: Add configuration option to use OTel span name into the Datadog resource name (#6611) - `mongodbreceiver`: Add initial client code to the component (#7125) - `tanzuobservabilityexporter`: Support delta histograms (#6897) - `awscloudwatchlogsexporter`: Use cwlogs package to export logs (#7152) diff --git a/exporter/datadogexporter/internal/logs/sender.go b/exporter/datadogexporter/internal/logs/sender.go index 7aa6d26cec4d..0b2a527e32e4 100644 --- a/exporter/datadogexporter/internal/logs/sender.go +++ b/exporter/datadogexporter/internal/logs/sender.go @@ -22,7 +22,7 @@ type Sender struct { } // logsV2 is the key in datadog ServerConfiguration -// It is being used to customize the endpoint for datdog intake based on exporter configuration +// It is being used to customize the endpoint for Datadog intake based on exporter configuration // https://github.com/DataDog/datadog-api-client-go/blob/be7e034424012c7ee559a2153802a45df73232ea/api/datadog/configuration.go#L308 const logsV2 = "v2.LogsApi.SubmitLog" From 27cc23d01db3b145ca3fed4df873112a17a3fb01 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 21:03:22 -0500 Subject: [PATCH 080/450] spelling: datapoint Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../internal/translation/dpfilters/filterset.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/signalfxexporter/internal/translation/dpfilters/filterset.go b/exporter/signalfxexporter/internal/translation/dpfilters/filterset.go index 853f0445e0b3..e3437c5d849f 100644 --- a/exporter/signalfxexporter/internal/translation/dpfilters/filterset.go +++ b/exporter/signalfxexporter/internal/translation/dpfilters/filterset.go @@ -5,7 +5,7 @@ package dpfilters // import "github.com/open-telemetry/opentelemetry-collector-c import sfxpb "github.com/signalfx/com_signalfx_metrics_protobuf/model" -// FilterSet is a collection of datapont filters, any one of which must match +// FilterSet is a collection of datapoint filters, any one of which must match // for a datapoint to be matched. type FilterSet struct { excludeFilters []*dataPointFilter From 48c2f40e454c1ec956b3d4a5514e3831ace5925f Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 21:21:41 -0500 Subject: [PATCH 081/450] spelling: decision Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- processor/probabilisticsamplerprocessor/logsprocessor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/processor/probabilisticsamplerprocessor/logsprocessor.go b/processor/probabilisticsamplerprocessor/logsprocessor.go index fd4fa6b3ff53..970c5321f7b7 100644 --- a/processor/probabilisticsamplerprocessor/logsprocessor.go +++ b/processor/probabilisticsamplerprocessor/logsprocessor.go @@ -166,7 +166,7 @@ func (th *hashingSampler) randomnessFromLogRecord(logRec plog.LogRecord) (random } // randomnessFromLogRecord (hashingSampler) uses OTEP 235 semantic -// conventions basing its deicsion only on the TraceID. +// conventions basing its decision only on the TraceID. func (ctc *consistentTracestateCommon) randomnessFromLogRecord(logRec plog.LogRecord) (randomnessNamer, samplingCarrier, error) { lrc, err := newLogRecordCarrier(logRec) rnd := newMissingRandomnessMethod() From 5f482118b13c12b7bde0de51991ad47946c21fd5 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 21:08:57 -0500 Subject: [PATCH 082/450] spelling: declaration Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/ottl/ottlfuncs/func_remove_xml.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/ottl/ottlfuncs/func_remove_xml.go b/pkg/ottl/ottlfuncs/func_remove_xml.go index 5845d24d0784..7075ff5704c7 100644 --- a/pkg/ottl/ottlfuncs/func_remove_xml.go +++ b/pkg/ottl/ottlfuncs/func_remove_xml.go @@ -83,12 +83,12 @@ func validateXPath(xPath string) error { // the XML declaration is included in the result only if it was present in // the original document. func parseNodesXML(targetVal string) (*xmlquery.Node, error) { - preserveDeclearation := strings.HasPrefix(targetVal, " Date: Sun, 5 Jan 2025 21:14:29 -0500 Subject: [PATCH 083/450] spelling: deduplicate Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/stanza/pipeline/config.go | 4 ++-- pkg/stanza/pipeline/config_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/stanza/pipeline/config.go b/pkg/stanza/pipeline/config.go index dfc6381a9c11..2e461b85e34c 100644 --- a/pkg/stanza/pipeline/config.go +++ b/pkg/stanza/pipeline/config.go @@ -31,7 +31,7 @@ func (c Config) Build(set component.TelemetrySettings) (*DirectedPipeline, error return nil, errors.NewError("empty pipeline not allowed", "") } - dedeplucateIDs(c.Operators) + deduplicateIDs(c.Operators) ops := make([]operator.Operator, 0, len(c.Operators)) for _, opCfg := range c.Operators { @@ -64,7 +64,7 @@ func (c Config) Build(set component.TelemetrySettings) (*DirectedPipeline, error return NewDirectedPipeline(ops) } -func dedeplucateIDs(ops []operator.Config) { +func deduplicateIDs(ops []operator.Config) { typeMap := make(map[string]int) for _, op := range ops { if op.Type() != op.ID() { diff --git a/pkg/stanza/pipeline/config_test.go b/pkg/stanza/pipeline/config_test.go index b2d916680e7a..17422dca3ebb 100644 --- a/pkg/stanza/pipeline/config_test.go +++ b/pkg/stanza/pipeline/config_test.go @@ -242,7 +242,7 @@ func TestDeduplicateIDs(t *testing.T) { for _, tc := range cases { t.Run("Deduplicate/"+tc.name, func(t *testing.T) { ops := tc.ops() - dedeplucateIDs(ops) + deduplicateIDs(ops) require.Equal(t, tc.expectedOps, ops) }) } From 23fc5f1e8697f49340019c86b343acc9bcc29f70 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 21:16:24 -0500 Subject: [PATCH 084/450] spelling: defaults Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/translator/signalfx/to_metrics_test.go | 42 +++++++++++----------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/pkg/translator/signalfx/to_metrics_test.go b/pkg/translator/signalfx/to_metrics_test.go index f6f61cfb332d..b9fc3651cc52 100644 --- a/pkg/translator/signalfx/to_metrics_test.go +++ b/pkg/translator/signalfx/to_metrics_test.go @@ -28,7 +28,7 @@ func TestNumMetricTypes(t *testing.T) { func TestToMetrics(t *testing.T) { now := time.Now() - buildDefaulstSFxDataPt := func() *sfxpb.DataPoint { + buildDefaultsSFxDataPt := func() *sfxpb.DataPoint { return &sfxpb.DataPoint{ Metric: "single", Timestamp: now.UnixNano() / 1e6, @@ -48,13 +48,13 @@ func TestToMetrics(t *testing.T) { }{ { name: "int_gauge", - sfxDataPoints: []*sfxpb.DataPoint{buildDefaulstSFxDataPt()}, + sfxDataPoints: []*sfxpb.DataPoint{buildDefaultsSFxDataPt()}, wantMetrics: buildDefaultMetrics(t, pmetric.MetricTypeGauge, 13, now), }, { name: "double_gauge", sfxDataPoints: func() []*sfxpb.DataPoint { - pt := buildDefaulstSFxDataPt() + pt := buildDefaultsSFxDataPt() pt.MetricType = sfxTypePtr(sfxpb.MetricType_GAUGE) pt.Value = sfxpb.Datum{ DoubleValue: float64Ptr(13.13), @@ -65,7 +65,7 @@ func TestToMetrics(t *testing.T) { }, { name: "same_name_multiple_gauges", - sfxDataPoints: []*sfxpb.DataPoint{buildDefaulstSFxDataPt(), buildDefaulstSFxDataPt()}, + sfxDataPoints: []*sfxpb.DataPoint{buildDefaultsSFxDataPt(), buildDefaultsSFxDataPt()}, wantMetrics: func() pmetric.Metrics { m := buildDefaultMetrics(t, pmetric.MetricTypeGauge, 13, now) dps := m.ResourceMetrics().At(0).ScopeMetrics().At(0).Metrics().At(0).Gauge().DataPoints() @@ -76,7 +76,7 @@ func TestToMetrics(t *testing.T) { { name: "int_counter", sfxDataPoints: func() []*sfxpb.DataPoint { - pt := buildDefaulstSFxDataPt() + pt := buildDefaultsSFxDataPt() pt.MetricType = sfxTypePtr(sfxpb.MetricType_COUNTER) return []*sfxpb.DataPoint{pt} }(), @@ -91,7 +91,7 @@ func TestToMetrics(t *testing.T) { { name: "double_counter", sfxDataPoints: func() []*sfxpb.DataPoint { - pt := buildDefaulstSFxDataPt() + pt := buildDefaultsSFxDataPt() pt.MetricType = sfxTypePtr(sfxpb.MetricType_COUNTER) pt.Value = sfxpb.Datum{ DoubleValue: float64Ptr(13.13), @@ -109,7 +109,7 @@ func TestToMetrics(t *testing.T) { { name: "same_name_multiple_counters", sfxDataPoints: func() []*sfxpb.DataPoint { - pt := buildDefaulstSFxDataPt() + pt := buildDefaultsSFxDataPt() pt.MetricType = sfxTypePtr(sfxpb.MetricType_COUNTER) pt.Value = sfxpb.Datum{ DoubleValue: float64Ptr(13.13), @@ -128,7 +128,7 @@ func TestToMetrics(t *testing.T) { { name: "int_cumulative", sfxDataPoints: func() []*sfxpb.DataPoint { - pt := buildDefaulstSFxDataPt() + pt := buildDefaultsSFxDataPt() pt.MetricType = sfxTypePtr(sfxpb.MetricType_CUMULATIVE_COUNTER) return []*sfxpb.DataPoint{pt} }(), @@ -143,7 +143,7 @@ func TestToMetrics(t *testing.T) { { name: "double_cumulative", sfxDataPoints: func() []*sfxpb.DataPoint { - pt := buildDefaulstSFxDataPt() + pt := buildDefaultsSFxDataPt() pt.MetricType = sfxTypePtr(sfxpb.MetricType_CUMULATIVE_COUNTER) pt.Value = sfxpb.Datum{ DoubleValue: float64Ptr(13.13), @@ -161,7 +161,7 @@ func TestToMetrics(t *testing.T) { { name: "same_name_multiple_cumulative", sfxDataPoints: func() []*sfxpb.DataPoint { - pt := buildDefaulstSFxDataPt() + pt := buildDefaultsSFxDataPt() pt.MetricType = sfxTypePtr(sfxpb.MetricType_CUMULATIVE_COUNTER) return []*sfxpb.DataPoint{pt, pt} }(), @@ -177,9 +177,9 @@ func TestToMetrics(t *testing.T) { { name: "same_name_different_types", sfxDataPoints: func() []*sfxpb.DataPoint { - pt := buildDefaulstSFxDataPt() + pt := buildDefaultsSFxDataPt() pt.MetricType = sfxTypePtr(sfxpb.MetricType_COUNTER) - return []*sfxpb.DataPoint{pt, buildDefaulstSFxDataPt()} + return []*sfxpb.DataPoint{pt, buildDefaultsSFxDataPt()} }(), wantMetrics: func() pmetric.Metrics { m := buildDefaultMetrics(t, pmetric.MetricTypeSum, 13, now) @@ -195,7 +195,7 @@ func TestToMetrics(t *testing.T) { { name: "nil_timestamp", sfxDataPoints: func() []*sfxpb.DataPoint { - pt := buildDefaulstSFxDataPt() + pt := buildDefaultsSFxDataPt() pt.Timestamp = 0 return []*sfxpb.DataPoint{pt} }(), @@ -208,7 +208,7 @@ func TestToMetrics(t *testing.T) { { name: "empty_dimension_value", sfxDataPoints: func() []*sfxpb.DataPoint { - pt := buildDefaulstSFxDataPt() + pt := buildDefaultsSFxDataPt() pt.Dimensions[0].Value = "" return []*sfxpb.DataPoint{pt} }(), @@ -221,7 +221,7 @@ func TestToMetrics(t *testing.T) { { name: "nil_dimension_ignored", sfxDataPoints: func() []*sfxpb.DataPoint { - pt := buildDefaulstSFxDataPt() + pt := buildDefaultsSFxDataPt() targetLen := 2*len(pt.Dimensions) + 1 dimensions := make([]*sfxpb.Dimension, targetLen) copy(dimensions[1:], pt.Dimensions) @@ -234,29 +234,29 @@ func TestToMetrics(t *testing.T) { }, { name: "nil_datapoint_ignored", - sfxDataPoints: []*sfxpb.DataPoint{nil, buildDefaulstSFxDataPt(), nil}, + sfxDataPoints: []*sfxpb.DataPoint{nil, buildDefaultsSFxDataPt(), nil}, wantMetrics: buildDefaultMetrics(t, pmetric.MetricTypeGauge, 13, now), }, { name: "drop_inconsistent_datapoints", sfxDataPoints: func() []*sfxpb.DataPoint { // nil Datum - pt0 := buildDefaulstSFxDataPt() + pt0 := buildDefaultsSFxDataPt() pt0.Value = sfxpb.Datum{} // nil expected Datum value - pt1 := buildDefaulstSFxDataPt() + pt1 := buildDefaultsSFxDataPt() pt1.Value.IntValue = nil // Non-supported type - pt2 := buildDefaulstSFxDataPt() + pt2 := buildDefaultsSFxDataPt() pt2.MetricType = sfxTypePtr(sfxpb.MetricType_ENUM) // Unknown type - pt3 := buildDefaulstSFxDataPt() + pt3 := buildDefaultsSFxDataPt() pt3.MetricType = sfxTypePtr(sfxpb.MetricType_CUMULATIVE_COUNTER + 1) - return []*sfxpb.DataPoint{pt0, buildDefaulstSFxDataPt(), pt1, pt2, pt3} + return []*sfxpb.DataPoint{pt0, buildDefaultsSFxDataPt(), pt1, pt2, pt3} }(), wantMetrics: buildDefaultMetrics(t, pmetric.MetricTypeGauge, 13, now), wantError: true, From d1c0714b5e99cda31173847e6c4e7a8eb8ca5302 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 21:21:47 -0500 Subject: [PATCH 085/450] spelling: delimiter Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/ottl/ottlfuncs/func_parse_csv.go | 4 ++-- processor/logdedupprocessor/field_remover.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/ottl/ottlfuncs/func_parse_csv.go b/pkg/ottl/ottlfuncs/func_parse_csv.go index dd0a88dc2343..01e2bd4d9809 100644 --- a/pkg/ottl/ottlfuncs/func_parse_csv.go +++ b/pkg/ottl/ottlfuncs/func_parse_csv.go @@ -69,8 +69,8 @@ func createParseCSVFunction[K any](_ ottl.FunctionContext, oArgs ottl.Arguments) delimiter = []rune(args.Delimiter.Get())[0] } - // headerDelimiter defaults to the chosen delimter, - // since in most cases headerDelimiter == delmiter. + // headerDelimiter defaults to the chosen delimiter, + // since in most cases headerDelimiter == delimiter. headerDelimiter := string(delimiter) if !args.HeaderDelimiter.IsEmpty() { headerDelimiter = args.HeaderDelimiter.Get() diff --git a/processor/logdedupprocessor/field_remover.go b/processor/logdedupprocessor/field_remover.go index bd82a7715214..dd261a14c6f1 100644 --- a/processor/logdedupprocessor/field_remover.go +++ b/processor/logdedupprocessor/field_remover.go @@ -15,7 +15,7 @@ const ( // fieldDelimiter is the delimiter used to split a field key into its parts. fieldDelimiter = "." - // fieldEscapeKeyReplacement is the string used to temporarily replace escaped delimters while splitting a field key. + // fieldEscapeKeyReplacement is the string used to temporarily replace escaped delimiters while splitting a field key. fieldEscapeKeyReplacement = "{TEMP_REPLACE}" ) From e7a6230783c5a23ea8fdf6acedfb0ef8d19fadf3 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 21:22:24 -0500 Subject: [PATCH 086/450] spelling: delta Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/awsemfexporter/datapoint_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/exporter/awsemfexporter/datapoint_test.go b/exporter/awsemfexporter/datapoint_test.go index b182011386b2..c13de8777156 100644 --- a/exporter/awsemfexporter/datapoint_test.go +++ b/exporter/awsemfexporter/datapoint_test.go @@ -1977,7 +1977,7 @@ func TestCreateLabels(t *testing.T) { func TestGetDataPoints(t *testing.T) { logger := zap.NewNop() - normalDeltraMetricMetadata := generateDeltaMetricMetadata(false, "foo", false) + normalDeltaMetricMetadata := generateDeltaMetricMetadata(false, "foo", false) cumulativeDeltaMetricMetadata := generateDeltaMetricMetadata(true, "foo", false) testCases := []struct { @@ -1991,7 +1991,7 @@ func TestGetDataPoints(t *testing.T) { name: "Int gauge", isPrometheusMetrics: false, metric: generateTestGaugeMetric("foo", intValueType), - expectedDatapointSlice: numberDataPointSlice{normalDeltraMetricMetadata, pmetric.NumberDataPointSlice{}}, + expectedDatapointSlice: numberDataPointSlice{normalDeltaMetricMetadata, pmetric.NumberDataPointSlice{}}, expectedAttributes: map[string]any{"label1": "value1"}, }, { @@ -2019,7 +2019,7 @@ func TestGetDataPoints(t *testing.T) { name: "Summary from SDK", isPrometheusMetrics: false, metric: generateTestSummaryMetric("foo"), - expectedDatapointSlice: summaryDataPointSlice{normalDeltraMetricMetadata, pmetric.SummaryDataPointSlice{}}, + expectedDatapointSlice: summaryDataPointSlice{normalDeltaMetricMetadata, pmetric.SummaryDataPointSlice{}}, expectedAttributes: map[string]any{"label1": "value1"}, }, { From f451bba7197e94bb534167e5f2552303ba9960c2 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 21:23:46 -0500 Subject: [PATCH 087/450] spelling: dependent Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index dee3171959a6..465a4644b67c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -152,7 +152,7 @@ and its contributors. - Add a README.md on the root of your component describing its configuration and usage, likely referencing some of the yaml files used in the component tests. We also suggest that the yaml files used in tests have comments for all available configuration settings so users can copy and modify them as needed. -- Run `make crosslink` to update intra-repository dependencies. It will add a `replace` directive to `go.mod` file of every intra-repository dependant. This is necessary for your component to be included in the contrib executable. +- Run `make crosslink` to update intra-repository dependencies. It will add a `replace` directive to `go.mod` file of every intra-repository dependent. This is necessary for your component to be included in the contrib executable. - Add your component to `versions.yaml`. - All components included in the distribution must be included in [`cmd/otelcontribcol/builder-config.yaml`](./cmd/otelcontribcol/builder-config.yaml) From 73ed36c1329b01c362d8a9d4f0242467bfa446fc Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 21:23:50 -0500 Subject: [PATCH 088/450] spelling: deprecated Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- processor/k8sattributesprocessor/testdata/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/processor/k8sattributesprocessor/testdata/config.yaml b/processor/k8sattributesprocessor/testdata/config.yaml index 1078ab73b7c5..9ac386ad4763 100644 --- a/processor/k8sattributesprocessor/testdata/config.yaml +++ b/processor/k8sattributesprocessor/testdata/config.yaml @@ -89,7 +89,7 @@ k8sattributes/4: auth_type: "kubeConfig" extract: metadata: - # the following metadata field has been depracated + # the following metadata field has been deprecated - k8s.cluster.name k8sattributes/too_many_sources: From a5d0bca3d2a046124e895948057da0168e0e6156 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 19:56:53 -0500 Subject: [PATCH 089/450] spelling: describe Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- extension/observer/ecsobserver/fetcher.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d09aed7dfe3b..7e36005e906c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5360,7 +5360,7 @@ This version has been skipped. - `cmd/chloggen`: Compare changelog to common ancestor with main (#12149) - `logstransformprocessor`: Remove support for storage (#12424) - `elasticsearchreceiver`: Remove unused `disk_usage_state` attribute from documentation (#12429) -- `filterlog`: change OR to AND logic for filtering logs - as desribed, and as is done for span filtering (#11439) +- `filterlog`: change OR to AND logic for filtering logs - as described, and as is done for span filtering (#11439) - `lokiexporter`: Wrap quotes around log message (#11827) - `tooling`: Fix a bug in the makefile causing `make rpm-package` to fail (#12162) - `prometheusexporter`: Fix cumulative condition for the delta-to-cumulative (#4153) diff --git a/extension/observer/ecsobserver/fetcher.go b/extension/observer/ecsobserver/fetcher.go index 65acb85f0f19..8f42050736db 100644 --- a/extension/observer/ecsobserver/fetcher.go +++ b/extension/observer/ecsobserver/fetcher.go @@ -341,7 +341,7 @@ type serviceNameFilter func(name string) bool func (f *taskFetcher) getAllServices(ctx context.Context) ([]*ecs.Service, error) { svc := f.ecs cluster := aws.String(f.cluster) - // List and filter out services we need to desribe. + // List and filter out services we need to describe. listReq := ecs.ListServicesInput{Cluster: cluster} var servicesToDescribe []*string for { From 765fadaf03d21421eb166fc7908e4d98708adf02 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 21:24:59 -0500 Subject: [PATCH 090/450] spelling: descriptor Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/awsemfexporter/config.go | 2 +- receiver/activedirectorydsreceiver/counters.go | 4 ++-- receiver/activedirectorydsreceiver/scraper.go | 2 +- .../opencensusreceiver/internal/ocmetrics/opencensus_test.go | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/exporter/awsemfexporter/config.go b/exporter/awsemfexporter/config.go index ca3e8249fd74..3ce05be0ee57 100644 --- a/exporter/awsemfexporter/config.go +++ b/exporter/awsemfexporter/config.go @@ -124,7 +124,7 @@ func (config *Config) Validate() error { if _, ok := eMFSupportedUnits[descriptor.Unit]; ok { validDescriptors = append(validDescriptors, descriptor) } else { - config.logger.Warn("Dropped unsupported metric desctriptor.", zap.String("unit", descriptor.Unit)) + config.logger.Warn("Dropped unsupported metric descriptor.", zap.String("unit", descriptor.Unit)) } } config.MetricDescriptors = validDescriptors diff --git a/receiver/activedirectorydsreceiver/counters.go b/receiver/activedirectorydsreceiver/counters.go index e5d30f48fec4..f49d0f4b3836 100644 --- a/receiver/activedirectorydsreceiver/counters.go +++ b/receiver/activedirectorydsreceiver/counters.go @@ -40,7 +40,7 @@ const ( dsNotifyQueueSize = "DS Notify Queue Size" dsSecurityDescriptorPropagationsEvents = "DS Security Descriptor Propagations Events" dsSearchSubOperations = "DS Search sub-operations/sec" - dsSecurityDescripterSubOperations = "DS Security Descriptor sub-operations/sec" + dsSecurityDescriptorSubOperations = "DS Security Descriptor sub-operations/sec" dsThreadsInUse = "DS Threads in Use" ldapClientSessions = "LDAP Client Sessions" ldapBindTime = "LDAP Bind Time" @@ -192,7 +192,7 @@ func getWatchers(wc watcherCreator) (*watchers, error) { return nil, err } - if w.counterNameToWatcher[dsSecurityDescripterSubOperations], err = wc.Create(dsSecurityDescripterSubOperations); err != nil { + if w.counterNameToWatcher[dsSecurityDescriptorSubOperations], err = wc.Create(dsSecurityDescriptorSubOperations); err != nil { return nil, err } diff --git a/receiver/activedirectorydsreceiver/scraper.go b/receiver/activedirectorydsreceiver/scraper.go index 63441c1e067e..1e922f8ecf06 100644 --- a/receiver/activedirectorydsreceiver/scraper.go +++ b/receiver/activedirectorydsreceiver/scraper.go @@ -203,7 +203,7 @@ func (a *activeDirectoryDSScraper) scrape(_ context.Context) (pmetric.Metrics, e a.mb.RecordActiveDirectoryDsSecurityDescriptorPropagationsEventQueuedDataPoint(now, int64(securityPropEvents)) } - securityDescSubops, err := a.w.Scrape(dsSecurityDescripterSubOperations) + securityDescSubops, err := a.w.Scrape(dsSecurityDescriptorSubOperations) multiErr = multierr.Append(multiErr, err) if err == nil { a.mb.RecordActiveDirectoryDsSuboperationRateDataPoint(now, securityDescSubops, metadata.AttributeSuboperationTypeSecurityDescriptorPropagationsEvent) diff --git a/receiver/opencensusreceiver/internal/ocmetrics/opencensus_test.go b/receiver/opencensusreceiver/internal/ocmetrics/opencensus_test.go index bcc64abcc739..6243c8d35e28 100644 --- a/receiver/opencensusreceiver/internal/ocmetrics/opencensus_test.go +++ b/receiver/opencensusreceiver/internal/ocmetrics/opencensus_test.go @@ -384,7 +384,7 @@ func makeMetric(val int) *metricspb.Metric { } descriptor := &metricspb.MetricDescriptor{ - Name: fmt.Sprintf("%s%d", "metric_descriptort_", val), + Name: fmt.Sprintf("%s%d", "metric_descriptor_", val), Description: "metric descriptor", Unit: "1", Type: metricspb.MetricDescriptor_GAUGE_INT64, From 8bbe3bd43eb9894ea44173033d895554ec7fe252 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 19:57:16 -0500 Subject: [PATCH 091/450] spelling: detector Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../internal/resourcedetection_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/processor/resourcedetectionprocessor/internal/resourcedetection_test.go b/processor/resourcedetectionprocessor/internal/resourcedetection_test.go index 4fcba6437995..f07702adac8b 100644 --- a/processor/resourcedetectionprocessor/internal/resourcedetection_test.go +++ b/processor/resourcedetectionprocessor/internal/resourcedetection_test.go @@ -119,7 +119,7 @@ func TestDetectResource_InvalidDetectorType(t *testing.T) { require.EqualError(t, err, fmt.Sprintf("invalid detector key: %v", mockDetectorKey)) } -func TestDetectResource_DetectoryFactoryError(t *testing.T) { +func TestDetectResource_DetectorFactoryError(t *testing.T) { mockDetectorKey := DetectorType("mock") p := NewProviderFactory(map[DetectorType]DetectorFactory{ mockDetectorKey: func(processor.Settings, DetectorConfig) (Detector, error) { From a5a8b12f55b06f256134e81c34b6e2433c13a367 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 19:57:22 -0500 Subject: [PATCH 092/450] spelling: deterministically Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/awsxrayexporter/internal/translator/aws.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exporter/awsxrayexporter/internal/translator/aws.go b/exporter/awsxrayexporter/internal/translator/aws.go index 9563b5a00ba0..e11bcb721e1c 100644 --- a/exporter/awsxrayexporter/internal/translator/aws.go +++ b/exporter/awsxrayexporter/internal/translator/aws.go @@ -124,9 +124,9 @@ func makeAws(attributes map[string]pcommon.Value, resource pcommon.Resource, log for key, value := range attributes { switch key { case conventionsv112.AttributeRPCMethod: - // Determinstically handled with if else above + // Deterministically handled with if else above case awsxray.AWSOperationAttribute: - // Determinstically handled with if else above + // Deterministically handled with if else above case awsxray.AWSAccountAttribute: if value.Type() != pcommon.ValueTypeEmpty { account = value.Str() From 061787821605407ab1ee886aca171a1fbfa02a81 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 19:57:33 -0500 Subject: [PATCH 093/450] spelling: different Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/stanza/docs/types/operators.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/stanza/docs/types/operators.md b/pkg/stanza/docs/types/operators.md index a86795bea18f..7aa54a7321fb 100644 --- a/pkg/stanza/docs/types/operators.md +++ b/pkg/stanza/docs/types/operators.md @@ -79,7 +79,7 @@ receivers: Now that we understand how `id` and `output` work together, we can configure more complex sequences. Technically, we are only limited in that the relationship between operators must be a [directed, acyclic, graph](https://en.wikipedia.org/wiki/Directed_acyclic_graph). -Here's a scenario where we read from a file that contains logs with two differnet formats which must be parsed differently: +Here's a scenario where we read from a file that contains logs with two different formats which must be parsed differently: ```yaml receivers: From 8d806ee661f9fa2ad4adc68de67cf2050a9a8ac1 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 19:57:41 -0500 Subject: [PATCH 094/450] spelling: dimension Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/huaweicloudcesreceiver/receiver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/huaweicloudcesreceiver/receiver.go b/receiver/huaweicloudcesreceiver/receiver.go index 52fe0cf3f9fb..28a9300d5e4e 100644 --- a/receiver/huaweicloudcesreceiver/receiver.go +++ b/receiver/huaweicloudcesreceiver/receiver.go @@ -170,7 +170,7 @@ func (rcvr *cesReceiver) listMetricDefinitions(ctx context.Context) ([]model.Met // listDataPoints retrieves data points for a list of metric definitions. // The function performs the following operations: -// 1. Generates a unique key for each metric definition (at least one dimenstion is required) and checks for duplicates. +// 1. Generates a unique key for each metric definition (at least one dimension is required) and checks for duplicates. // 2. Determines the time range (from-to) for fetching the metric data points, using the current timestamp // and the last-seen timestamp for each metric. // 3. Fetches data points for each metric definition. From 42385a2ae11dc43651160b48ba15377fe36d4628 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 19:57:56 -0500 Subject: [PATCH 095/450] spelling: disabled Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/datadogexporter/metrics_exporter.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exporter/datadogexporter/metrics_exporter.go b/exporter/datadogexporter/metrics_exporter.go index 89d8260eb3c1..b29891483a85 100644 --- a/exporter/datadogexporter/metrics_exporter.go +++ b/exporter/datadogexporter/metrics_exporter.go @@ -33,7 +33,7 @@ import ( "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/datadogexporter/internal/scrub" ) -var metricRemappingDisableddFeatureGate = featuregate.GlobalRegistry().MustRegister( +var metricRemappingDisabledFeatureGate = featuregate.GlobalRegistry().MustRegister( "exporter.datadogexporter.metricremappingdisabled", featuregate.StageAlpha, featuregate.WithRegisterDescription("When enabled the Datadog Exporter remaps OpenTelemetry semantic conventions to Datadog semantic conventions. This feature gate is only for internal use."), @@ -42,7 +42,7 @@ var metricRemappingDisableddFeatureGate = featuregate.GlobalRegistry().MustRegis // isMetricRemappingDisabled returns true if the datadogexporter should generate Datadog-compliant metrics from OpenTelemetry metrics func isMetricRemappingDisabled() bool { - return metricRemappingDisableddFeatureGate.IsEnabled() + return metricRemappingDisabledFeatureGate.IsEnabled() } type metricsExporter struct { From c24d05d014b9c2d533c22bd606920158f51e3dcf Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 19:58:01 -0500 Subject: [PATCH 096/450] spelling: distinct Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/snowflakereceiver/client_test.go | 2 +- receiver/snowflakereceiver/scraper_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/receiver/snowflakereceiver/client_test.go b/receiver/snowflakereceiver/client_test.go index 40534292a2f7..c7672760ff3c 100644 --- a/receiver/snowflakereceiver/client_test.go +++ b/receiver/snowflakereceiver/client_test.go @@ -218,7 +218,7 @@ func TestMetricQueries(t *testing.T) { { desc: "FetchSessionMetrics", query: sessionMetricsQuery, - columns: []string{"username", "disctinct_id"}, + columns: []string{"username", "distinct_id"}, params: []driver.Value{"t", 3.0}, expect: sessionMetric{ userName: sql.NullString{ diff --git a/receiver/snowflakereceiver/scraper_test.go b/receiver/snowflakereceiver/scraper_test.go index 0620f8d64eba..b372c0870e71 100644 --- a/receiver/snowflakereceiver/scraper_test.go +++ b/receiver/snowflakereceiver/scraper_test.go @@ -124,7 +124,7 @@ func (m *mockDB) initMockDB() { }, { query: sessionMetricsQuery, - columns: []string{"username", "disctinct_id"}, + columns: []string{"username", "distinct_id"}, params: []driver.Value{"t", 3.0}, }, { From 027854fbf3daba15621fb7b9c2797ca616ba3a5a Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 19:58:14 -0500 Subject: [PATCH 097/450] spelling: distinguish Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/googlemanagedprometheusexporter/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/googlemanagedprometheusexporter/README.md b/exporter/googlemanagedprometheusexporter/README.md index edac0117be2e..9e0efc5d6648 100644 --- a/exporter/googlemanagedprometheusexporter/README.md +++ b/exporter/googlemanagedprometheusexporter/README.md @@ -317,5 +317,5 @@ exporters: ``` That can help identify which metric sources are colliding, so you know which -applications or metrics need additional attributes to ditinguish them from +applications or metrics need additional attributes to distinguish them from one-another. From 06814015e705c407eb357c12076a2bdad64e7c5a Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 19:59:11 -0500 Subject: [PATCH 098/450] spelling: document Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/elasticsearchexporter/internal/objmodel/objmodel.go | 2 +- exporter/opensearchexporter/internal/objmodel/objmodel.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/exporter/elasticsearchexporter/internal/objmodel/objmodel.go b/exporter/elasticsearchexporter/internal/objmodel/objmodel.go index e98d5c693ae0..45afc7b5b6aa 100644 --- a/exporter/elasticsearchexporter/internal/objmodel/objmodel.go +++ b/exporter/elasticsearchexporter/internal/objmodel/objmodel.go @@ -5,7 +5,7 @@ // JSON documents. // // The JSON parsing in Elasticsearch does not support parsing JSON documents -// with duplicate fields. The fields in the docuemt can be sort and duplicate entries +// with duplicate fields. The fields in the document can be sort and duplicate entries // can be removed before serializing. Deduplication ensures that ambiguous // events can still be indexed. // diff --git a/exporter/opensearchexporter/internal/objmodel/objmodel.go b/exporter/opensearchexporter/internal/objmodel/objmodel.go index 655356fca24f..40d944d9f882 100644 --- a/exporter/opensearchexporter/internal/objmodel/objmodel.go +++ b/exporter/opensearchexporter/internal/objmodel/objmodel.go @@ -5,7 +5,7 @@ // JSON documents. // // The JSON parsing in OpenSearch does not support parsing JSON documents -// with duplicate fields. The fields in the docuemt can be sort and duplicate entries +// with duplicate fields. The fields in the document can be sort and duplicate entries // can be removed before serializing. Deduplication ensures that ambiguous // events can still be indexed. // From b30be4c9ee89fa57cde06ec9abb64d870791b6f3 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 20:00:54 -0500 Subject: [PATCH 099/450] spelling: done Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/stanza/fileconsumer/benchmark_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/stanza/fileconsumer/benchmark_test.go b/pkg/stanza/fileconsumer/benchmark_test.go index 20ecfc980f15..759d6da177f1 100644 --- a/pkg/stanza/fileconsumer/benchmark_test.go +++ b/pkg/stanza/fileconsumer/benchmark_test.go @@ -222,7 +222,7 @@ func BenchmarkFileInput(b *testing.B) { } // Timer continues to run until all files have been read - for dones := 0; dones < len(files); dones++ { + for done := 0; done < len(files); done++ { <-doneChan } wg.Wait() From 6639e65c74578bc8e2f4ae901ca774a6e8490093 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 20:01:25 -0500 Subject: [PATCH 100/450] spelling: dropped Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../internal/mockserver/responses/perf-manager.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/vcenterreceiver/internal/mockserver/responses/perf-manager.xml b/receiver/vcenterreceiver/internal/mockserver/responses/perf-manager.xml index babb5bc0b3de..4d8fa166e4f3 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 From 8c23604b53ddd0ddb7325a459674a872d933982c Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 20:02:11 -0500 Subject: [PATCH 101/450] spelling: duplicate Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- processor/logdedupprocessor/config_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/processor/logdedupprocessor/config_test.go b/processor/logdedupprocessor/config_test.go index a4e8fb120cd5..23a2b484f542 100644 --- a/processor/logdedupprocessor/config_test.go +++ b/processor/logdedupprocessor/config_test.go @@ -75,7 +75,7 @@ func TestValidateConfig(t *testing.T) { expectedErr: errors.New("an excludefield must start with"), }, { - desc: "invalid duplice exclude field", + desc: "invalid duplicate exclude field", cfg: &Config{ LogCountAttribute: defaultLogCountAttribute, Interval: defaultInterval, From 964b435a986cc1894ba9a87d3b22edce883b6dea Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 20:01:45 -0500 Subject: [PATCH 102/450] spelling: duration Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/ottl/expression_test.go | 2 +- receiver/sshcheckreceiver/scraper.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/ottl/expression_test.go b/pkg/ottl/expression_test.go index 119baa90ce55..1af541d946e5 100644 --- a/pkg/ottl/expression_test.go +++ b/pkg/ottl/expression_test.go @@ -2275,7 +2275,7 @@ func Test_StandardDurationGetter(t *testing.T) { valid: true, }, { - name: "complex duation values less than 1 seconc", + name: "complex duration values less than 1 seconc", getter: StandardDurationGetter[any]{ Getter: func(_ context.Context, _ any) (any, error) { return time.ParseDuration("10ms66us7000ns") diff --git a/receiver/sshcheckreceiver/scraper.go b/receiver/sshcheckreceiver/scraper.go index 9e15f70d7272..3de9b8f70fd4 100644 --- a/receiver/sshcheckreceiver/scraper.go +++ b/receiver/sshcheckreceiver/scraper.go @@ -63,7 +63,7 @@ func (s *sshcheckScraper) scrapeSFTP(now pcommon.Timestamp) error { return err } -// timeout chooses the shorter between between a given deadline and timeout +// timeout chooses the shorter duration between a given deadline and timeout func timeout(deadline time.Time, timeout time.Duration) time.Duration { timeToDeadline := time.Until(deadline) if timeToDeadline < timeout { From 8de21571ba7d705bc35088e5e82e573da2e59355 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 20:03:04 -0500 Subject: [PATCH 103/450] spelling: elastic Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- processor/sumologicprocessor/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/processor/sumologicprocessor/README.md b/processor/sumologicprocessor/README.md index d49a71d42bf9..4f46afec810a 100644 --- a/processor/sumologicprocessor/README.md +++ b/processor/sumologicprocessor/README.md @@ -101,7 +101,7 @@ processors: ### Adding `cloud.namespace` resource attribute Some of the apps in Sumo Logic require the `cloud.namespace` attribute to be set -to better understand the data coming from AWS EC2, AWS ECS and AWS Elactic Beanstalk. +to better understand the data coming from AWS EC2, AWS ECS and AWS Elastic Beanstalk. This attribute is similar to the standard OpenTelemetry attribute [`cloud.provider`][opentelemetry_cloud_provider_attribute]. In the future, the Sumo Logic apps might switch to the standard `cloud.provider` attribute. Before this happens, the following mapping defines the relationship between `cloud.provider` and `cloud.namespace` values: From 50cf53b6e9bc53248f673d6c2c7d1ea5b49bc019 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 20:03:19 -0500 Subject: [PATCH 104/450] spelling: elasticsearchreceiver Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e36005e906c..69f743f7c9b6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2308,7 +2308,7 @@ This release fixes CVE-2024-42368 on the `bearerauthtokenextension` (#34516) - `receiver/filelog`: fix panic after upgrading from v0.71.0 when using storage (#30235) - `clickhouseexporter`: Fix clickhouse exporter insert metrics data bug (#30210) - `prometheusremotewriteexporter`: Check if the context was canceled by a timeout in the component level to avoid unnecessary retries. (#30308) -- `elasticsearchreceifver`: Fix nil panic on non-linux systems (#30140) +- `elasticsearchreceiver`: Fix nil panic on non-linux systems (#30140) - `kafkareceiver`: The Kafka receiver now exports some partition-specific metrics per-partition, with a `partition` tag (#30177) The following metrics now render per partition: - kafka_receiver_messages @@ -4634,7 +4634,7 @@ This release fixes CVE-2024-42368 on the `bearerauthtokenextension` (#34516) - Add mysql.client.network.io metric (#14744) - `elasticsearchreceiver`: Add metrics related to GET operations (#14635) -- `elastisearchreceiver`: Add new metrics related to segments, aggregated by all shards (#14635) +- `elasticsearchreceiver`: Add new metrics related to segments, aggregated by all shards (#14635) - `elasticsearchreceiver`: add store size metric for index level (#14635) - `elasticsearchreceiver`: Add metrics related to merge operations with aggregated for all shards (#14635) - `elasticsearchreceiver`: add translog metrics on index level (#14635) From cb1b77c78b8827e0d5fcee0e17eff7cd7bf686b8 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 20:05:31 -0500 Subject: [PATCH 105/450] spelling: element Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/stanza/fileconsumer/internal/fileset/fileset_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/stanza/fileconsumer/internal/fileset/fileset_test.go b/pkg/stanza/fileconsumer/internal/fileset/fileset_test.go index c4763e86ea13..520e458b9e87 100644 --- a/pkg/stanza/fileconsumer/internal/fileset/fileset_test.go +++ b/pkg/stanza/fileconsumer/internal/fileset/fileset_test.go @@ -30,13 +30,13 @@ func push[T Matchable](ele ...T) func(t *testing.T, fileset *Fileset[T]) { } } -func pop[T Matchable](expectedErr error, expectedElemet T) func(t *testing.T, fileset *Fileset[T]) { +func pop[T Matchable](expectedErr error, expectedElement T) func(t *testing.T, fileset *Fileset[T]) { return func(t *testing.T, fileset *Fileset[T]) { pr := fileset.Len() el, err := fileset.Pop() if expectedErr == nil { require.NoError(t, err) - require.Equal(t, expectedElemet, el) + require.Equal(t, expectedElement, el) require.Equal(t, pr-1, fileset.Len()) } else { require.ErrorIs(t, err, expectedErr) From ce24c46c359686fe4df0961b00d3b2c770841b58 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 20:06:15 -0500 Subject: [PATCH 106/450] spelling: elsewhere Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/ottl/ottlfuncs/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/ottl/ottlfuncs/README.md b/pkg/ottl/ottlfuncs/README.md index ac86e36fc297..20fd22801f10 100644 --- a/pkg/ottl/ottlfuncs/README.md +++ b/pkg/ottl/ottlfuncs/README.md @@ -1286,7 +1286,7 @@ Examples: The `ParseCSV` Converter returns a `pcommon.Map` struct that contains the result of parsing the `target` string as CSV. The resultant map is structured such that it is a mapping of field name -> field value. -`target` is a Getter that returns a string. This string should be a CSV row. if `target` is not a properly formatted CSV row, or if the number of fields in `target` does not match the number of fields in `headers`, `ParseCSV` will return an error. Leading and trailing newlines in `target` will be stripped. Newlines elswhere in `target` are not treated as row delimiters during parsing, and will be treated as though they are part of the field that are placed in. +`target` is a Getter that returns a string. This string should be a CSV row. if `target` is not a properly formatted CSV row, or if the number of fields in `target` does not match the number of fields in `headers`, `ParseCSV` will return an error. Leading and trailing newlines in `target` will be stripped. Newlines elsewhere in `target` are not treated as row delimiters during parsing, and will be treated as though they are part of the field that are placed in. `headers` is a Getter that returns a string. This string should be a CSV header, specifying the names of the CSV fields. From fad01b749bc83545cf47d479dab9c61713728e25 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 20:06:28 -0500 Subject: [PATCH 107/450] spelling: embedded Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 69f743f7c9b6..5e9c6c2a99a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4351,7 +4351,7 @@ This release fixes CVE-2024-42368 on the `bearerauthtokenextension` (#34516) - `receiver/purefareceiver`: Set an explicit reload interval for all scrapers. (#16992) - `servicegraphprocessor`: fix servicegraphprocessor concurrent map read and write (#16850) - `filelogreceiver`: Truncate log entry if it is longer than `max_log_size` (#16487) -- `cmd/metadata`: Ensure template files are downloaded as part of the `go get` and embeded into the application (#17442) +- `cmd/metadata`: Ensure template files are downloaded as part of the `go get` and embedded into the application (#17442) ## v0.68.0 From 92e06fb11bd4fc570189e4908d77c43dc576730e Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 20:06:42 -0500 Subject: [PATCH 108/450] spelling: emitter Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/stanza/operator/parser/container/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/stanza/operator/parser/container/config.go b/pkg/stanza/operator/parser/container/config.go index 81e6f2339be9..e1688ddad52f 100644 --- a/pkg/stanza/operator/parser/container/config.go +++ b/pkg/stanza/operator/parser/container/config.go @@ -124,7 +124,7 @@ func createRecombine(set component.TelemetrySettings, c Config, cLogEmitter *hel return nil, fmt.Errorf("failed to resolve internal recombine config: %w", err) } - // set the LogEmmiter as the output of the recombine parser + // set the LogEmitter as the output of the recombine parser recombineParser.SetOutputIDs([]string{cLogEmitter.OperatorID}) if err := recombineParser.SetOutputs([]operator.Operator{cLogEmitter}); err != nil { return nil, fmt.Errorf("failed to set outputs of internal recombine") From c138a429e0b352474bdbbbcc9ce71b0a5d6f5226 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 20:07:40 -0500 Subject: [PATCH 109/450] spelling: encountered Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/googlemanagedprometheusexporter/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/googlemanagedprometheusexporter/README.md b/exporter/googlemanagedprometheusexporter/README.md index 9e0efc5d6648..a7ca3526624c 100644 --- a/exporter/googlemanagedprometheusexporter/README.md +++ b/exporter/googlemanagedprometheusexporter/README.md @@ -125,7 +125,7 @@ The Google Managed Prometheus exporter maps metrics to the [prometheus_target](https://cloud.google.com/monitoring/api/resources#tag_prometheus_target) monitored resource. The logic for mapping to monitored resources is designed to be used with the prometheus receiver, but can be used with other receivers as -well. To avoid collisions (i.e. "duplicate timeseries enountered" errors), you +well. To avoid collisions (i.e. "duplicate timeseries encountered" errors), you need to ensure the prometheus_target resource uniquely identifies the source of metrics. The exporter uses the following resource attributes to determine monitored resource: From e21c899900a5bf820682a5a134b0e664c24b9b7c Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 20:08:03 -0500 Subject: [PATCH 110/450] spelling: endpoint Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/receivercreator/discovery.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/receiver/receivercreator/discovery.go b/receiver/receivercreator/discovery.go index a640b1385440..12c72d6d33d8 100644 --- a/receiver/receivercreator/discovery.go +++ b/receiver/receivercreator/discovery.go @@ -281,14 +281,14 @@ func validateEndpoint(endpoint, defaultEndpoint string) error { if uri == nil { u, err := url.Parse("http://" + endpoint) if err != nil { - return fmt.Errorf("could not parse enpoint") + return fmt.Errorf("could not parse endpoint") } uri = u } // configured endpoint should include the target Pod's endpoint if uri.Host != defaultEndpoint { - return fmt.Errorf("configured enpoint should include target Pod's endpoint") + return fmt.Errorf("configured endpoint should include target Pod's endpoint") } return nil } From 3078184fc9026c2cbb9415d60672a0b44e3ab3c7 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 20:06:57 -0500 Subject: [PATCH 111/450] spelling: endpoints Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/coralogixexporter/config_test.go | 4 ++-- exporter/coralogixexporter/testdata/config.yaml | 2 +- .../kubeletstatsreceiver/internal/kubelet/metadata_test.go | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/exporter/coralogixexporter/config_test.go b/exporter/coralogixexporter/config_test.go index fe6bf96e79a5..d83c42cb59ee 100644 --- a/exporter/coralogixexporter/config_test.go +++ b/exporter/coralogixexporter/config_test.go @@ -252,13 +252,13 @@ func TestDomainWithAllExporters(t *testing.T) { assert.NoError(t, le.shutdown(context.Background())) } -func TestEndpoindsAndDomainWithAllExporters(t *testing.T) { +func TestEndpointsAndDomainWithAllExporters(t *testing.T) { cm, err := confmaptest.LoadConf(filepath.Join("testdata", "config.yaml")) require.NoError(t, err) factory := NewFactory() cfg := factory.CreateDefaultConfig() - sub, err := cm.Sub(component.NewIDWithName(metadata.Type, "domain_endoints").String()) + sub, err := cm.Sub(component.NewIDWithName(metadata.Type, "domain_endpoints").String()) require.NoError(t, err) require.NoError(t, sub.Unmarshal(cfg)) diff --git a/exporter/coralogixexporter/testdata/config.yaml b/exporter/coralogixexporter/testdata/config.yaml index ca33cbeb4d2b..162c5839fc7d 100644 --- a/exporter/coralogixexporter/testdata/config.yaml +++ b/exporter/coralogixexporter/testdata/config.yaml @@ -49,7 +49,7 @@ coralogix/domain: subsystem_name: "SUBSYSTEM_NAME" timeout: 5s -coralogix/domain_endoints: +coralogix/domain_endpoints: domain: "coralogix.com" traces: endpoint: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" diff --git a/receiver/kubeletstatsreceiver/internal/kubelet/metadata_test.go b/receiver/kubeletstatsreceiver/internal/kubelet/metadata_test.go index fa35e320c2d0..846b1cc280b3 100644 --- a/receiver/kubeletstatsreceiver/internal/kubelet/metadata_test.go +++ b/receiver/kubeletstatsreceiver/internal/kubelet/metadata_test.go @@ -339,14 +339,14 @@ func TestSetExtraLabelsForVolumeTypes(t *testing.T) { name: "glusterfs", vs: v1.VolumeSource{ Glusterfs: &v1.GlusterfsVolumeSource{ - EndpointsName: "endspoints_name", + EndpointsName: "endpoints_name", Path: "path", }, }, args: []string{"uid-1234", "k8s.volume.type"}, want: map[string]any{ "k8s.volume.type": "glusterfs", - "glusterfs.endpoints.name": "endspoints_name", + "glusterfs.endpoints.name": "endpoints_name", "glusterfs.path": "path", }, }, From 00f908b5626748ae7ded75e3afe0acd5519ebd6e Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 20:07:25 -0500 Subject: [PATCH 112/450] spelling: english Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/kafkareceiver/kafka_receiver_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/kafkareceiver/kafka_receiver_test.go b/receiver/kafkareceiver/kafka_receiver_test.go index e353974acd91..097aad6ec6db 100644 --- a/receiver/kafkareceiver/kafka_receiver_test.go +++ b/receiver/kafkareceiver/kafka_receiver_test.go @@ -1081,7 +1081,7 @@ func TestLogsConsumerGroupHandler_unmarshal_text(t *testing.T) { enc string }{ { - name: "unmarshal test for Englist (ASCII characters) with text_utf8", + name: "unmarshal test for English (ASCII characters) with text_utf8", text: "ASCII characters test", enc: "utf8", }, From d634371f44e81131a8e4c947b83a30e2901904e3 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 20:08:43 -0500 Subject: [PATCH 113/450] spelling: erroneous Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../deltatocumulativeprocessor/internal/data/expo/scale.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/processor/deltatocumulativeprocessor/internal/data/expo/scale.go b/processor/deltatocumulativeprocessor/internal/data/expo/scale.go index cd6932de7fe9..9c3ee88652c8 100644 --- a/processor/deltatocumulativeprocessor/internal/data/expo/scale.go +++ b/processor/deltatocumulativeprocessor/internal/data/expo/scale.go @@ -47,7 +47,7 @@ func Downscale(bs Buckets, from, to Scale) { case from < to: // because even distribution within the buckets cannot be assumed, it is // not possible to correctly upscale (split) buckets. - // any attempt to do so would yield erronous data. + // any attempt to do so would yield erroneous data. panic(fmt.Sprintf("cannot upscale without introducing error (%d -> %d)", from, to)) } From 682fa585d43d9c960974110d0f5ef4971f54ef28 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 20:08:57 -0500 Subject: [PATCH 114/450] spelling: errors Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- internal/aws/cwlogs/cwlog_client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/aws/cwlogs/cwlog_client.go b/internal/aws/cwlogs/cwlog_client.go index a8a17e243b52..f9a9c9e1a60b 100644 --- a/internal/aws/cwlogs/cwlog_client.go +++ b/internal/aws/cwlogs/cwlog_client.go @@ -29,7 +29,7 @@ const ( var containerInsightsRegexPattern = regexp.MustCompile(`^/aws/.*containerinsights/.*/(performance|prometheus)$`) // Possible exceptions are combination of common errors (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/CommonErrors.html) -// and API specific erros (e.g. https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutLogEvents.html#API_PutLogEvents_Errors) +// and API specific errors (e.g. https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutLogEvents.html#API_PutLogEvents_Errors) type Client struct { svc cloudwatchlogsiface.CloudWatchLogsAPI logRetention int64 From 4c4cb7fb6137b913959ab70ffaa63714f4209479 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 20:09:11 -0500 Subject: [PATCH 115/450] spelling: escaped Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/wavefrontreceiver/wavefront_parser.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/wavefrontreceiver/wavefront_parser.go b/receiver/wavefrontreceiver/wavefront_parser.go index 7d4d412f5901..825afed488a2 100644 --- a/receiver/wavefrontreceiver/wavefront_parser.go +++ b/receiver/wavefrontreceiver/wavefront_parser.go @@ -29,7 +29,7 @@ var ( _ protocol.ParserConfig = (*WavefrontParser)(nil) ) -// Only two chars can be espcaped per Wavafront SDK, see +// Only two chars can be escaped per Wavafront SDK, see // https://github.com/wavefrontHQ/wavefront-sdk-go/blob/2c5891318fcd83c35c93bba2b411640495473333/senders/formatter.go#L20 var escapedCharReplacer = strings.NewReplacer( `\"`, `"`, // Replaces escaped double-quotes From eff99d696da585ea78c1d2351c8fe5ad0538cb5e Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 20:12:45 -0500 Subject: [PATCH 116/450] spelling: evaluate Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- connector/signaltometricsconnector/config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connector/signaltometricsconnector/config/config.go b/connector/signaltometricsconnector/config/config.go index 0b3bb3cae3a8..a2f23fbc9902 100644 --- a/connector/signaltometricsconnector/config/config.go +++ b/connector/signaltometricsconnector/config/config.go @@ -266,7 +266,7 @@ func validateMetricInfo[K any](mi MetricInfo, parser ottl.Parser[K]) error { return fmt.Errorf("exactly one of the metrics must be defined, %d found", metricsDefinedCount) } - // validate OTTL statements, note that, here we only evalaute if statements + // validate OTTL statements, note that, here we only evaluate if statements // are valid. Check for required statements is left to the other validations. if _, err := parser.ParseStatements(statements); err != nil { return fmt.Errorf("failed to parse OTTL statements: %w", err) From 1798c0656abcded457d4a864ee413b477cca49cb Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 20:16:56 -0500 Subject: [PATCH 117/450] spelling: evaluates Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- internal/docker/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/docker/config.go b/internal/docker/config.go index 8a775ee3e1cc..50651e58ba50 100644 --- a/internal/docker/config.go +++ b/internal/docker/config.go @@ -117,7 +117,7 @@ func MustNewAPIVersion(version string) string { return v } -// VersionIsValidAndGTE evalutes version as a client api version and returns an error if invalid or less than gte. +// VersionIsValidAndGTE evaluates version as a client api version and returns an error if invalid or less than gte. // gte is assumed to be valid (easiest if result of MustNewAPIVersion on initialization) func VersionIsValidAndGTE(version, gte string) error { v, err := NewAPIVersion(version) From ada67c855b35d76ae6afff957215792e308c25fd Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 20:16:59 -0500 Subject: [PATCH 118/450] spelling: evaluating Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../internal/sampling/string_tag_filter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/processor/tailsamplingprocessor/internal/sampling/string_tag_filter.go b/processor/tailsamplingprocessor/internal/sampling/string_tag_filter.go index dd22d04eaa24..24a95a5c8882 100644 --- a/processor/tailsamplingprocessor/internal/sampling/string_tag_filter.go +++ b/processor/tailsamplingprocessor/internal/sampling/string_tag_filter.go @@ -92,7 +92,7 @@ func NewStringAttributeFilter(settings component.TelemetrySettings, key string, // The SamplingDecision is made by comparing the attribute values with the matching values, // which might be static strings or regular expressions. func (saf *stringAttributeFilter) Evaluate(_ context.Context, _ pcommon.TraceID, trace *TraceData) (Decision, error) { - saf.logger.Debug("Evaluting spans in string-tag filter") + saf.logger.Debug("Evaluating spans in string-tag filter") trace.Lock() defer trace.Unlock() batches := trace.ReceivedBatches From 95ba916262a6762706cf9cb9f2173d8afe2b780f Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 20:10:46 -0500 Subject: [PATCH 119/450] spelling: event Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/elasticsearchexporter/model_test.go | 6 +++--- receiver/azureblobreceiver/blobeventhandler.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/exporter/elasticsearchexporter/model_test.go b/exporter/elasticsearchexporter/model_test.go index dddf46a14a01..24ec499fa2cb 100644 --- a/exporter/elasticsearchexporter/model_test.go +++ b/exporter/elasticsearchexporter/model_test.go @@ -27,7 +27,7 @@ import ( "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/elasticsearchexporter/internal/objmodel" ) -var expectedSpanBody = `{"@timestamp":"2023-04-19T03:04:05.000000006Z","Attributes.service.instance.id":"23","Duration":1000000,"EndTimestamp":"2023-04-19T03:04:06.000000006Z","Events.fooEvent.evnetMockBar":"bar","Events.fooEvent.evnetMockFoo":"foo","Events.fooEvent.time":"2023-04-19T03:04:05.000000006Z","Kind":"SPAN_KIND_CLIENT","Link":"[{\"attribute\":{},\"spanID\":\"\",\"traceID\":\"01020304050607080807060504030200\"}]","Name":"client span","Resource.cloud.platform":"aws_elastic_beanstalk","Resource.cloud.provider":"aws","Resource.deployment.environment":"BETA","Resource.service.instance.id":"23","Resource.service.name":"some-service","Resource.service.version":"env-version-1234","Scope.lib-foo":"lib-bar","Scope.name":"io.opentelemetry.rabbitmq-2.7","Scope.version":"1.30.0-alpha","SpanId":"1920212223242526","TraceId":"01020304050607080807060504030201","TraceStatus":2,"TraceStatusDescription":"Test"}` +var expectedSpanBody = `{"@timestamp":"2023-04-19T03:04:05.000000006Z","Attributes.service.instance.id":"23","Duration":1000000,"EndTimestamp":"2023-04-19T03:04:06.000000006Z","Events.fooEvent.eventMockBar":"bar","Events.fooEvent.eventMockFoo":"foo","Events.fooEvent.time":"2023-04-19T03:04:05.000000006Z","Kind":"SPAN_KIND_CLIENT","Link":"[{\"attribute\":{},\"spanID\":\"\",\"traceID\":\"01020304050607080807060504030200\"}]","Name":"client span","Resource.cloud.platform":"aws_elastic_beanstalk","Resource.cloud.provider":"aws","Resource.deployment.environment":"BETA","Resource.service.instance.id":"23","Resource.service.name":"some-service","Resource.service.version":"env-version-1234","Scope.lib-foo":"lib-bar","Scope.name":"io.opentelemetry.rabbitmq-2.7","Scope.version":"1.30.0-alpha","SpanId":"1920212223242526","TraceId":"01020304050607080807060504030201","TraceStatus":2,"TraceStatusDescription":"Test"}` var expectedLogBody = `{"@timestamp":"2023-04-19T03:04:05.000000006Z","Attributes.log-attr1":"value1","Body":"log-body","Resource.key1":"value1","Scope.name":"","Scope.version":"","SeverityNumber":0,"TraceFlags":0}` @@ -181,8 +181,8 @@ func mockResourceSpans() ptrace.Traces { event := span.Events().AppendEmpty() event.SetName("fooEvent") event.SetTimestamp(pcommon.NewTimestampFromTime(tStart)) - event.Attributes().PutStr("evnetMockFoo", "foo") - event.Attributes().PutStr("evnetMockBar", "bar") + event.Attributes().PutStr("eventMockFoo", "foo") + event.Attributes().PutStr("eventMockBar", "bar") return traces } diff --git a/receiver/azureblobreceiver/blobeventhandler.go b/receiver/azureblobreceiver/blobeventhandler.go index 974277b099b2..17f291083b8b 100644 --- a/receiver/azureblobreceiver/blobeventhandler.go +++ b/receiver/azureblobreceiver/blobeventhandler.go @@ -72,7 +72,7 @@ func (p *azureBlobEventHandler) newMessageHandler(ctx context.Context, event *ev Data map[string]any DataVersion string MetadataVersion string - EsventTime string + EventTime string } var eventDataSlice []eventData marshalErr := json.Unmarshal(event.Data, &eventDataSlice) From bf4e36347197d7ec9b784610145166be5f724b71 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 20:18:38 -0500 Subject: [PATCH 120/450] spelling: exactly Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/fileexporter/config.go | 2 +- exporter/fileexporter/config_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/exporter/fileexporter/config.go b/exporter/fileexporter/config.go index 43499f70e105..d4bcd9b2c36c 100644 --- a/exporter/fileexporter/config.go +++ b/exporter/fileexporter/config.go @@ -119,7 +119,7 @@ func (cfg *Config) Validate() error { if cfg.GroupBy != nil && cfg.GroupBy.Enabled { pathParts := strings.Split(cfg.Path, "*") if len(pathParts) != 2 { - return errors.New("path must contain exatcly one * when group_by is enabled") + return errors.New("path must contain exactly one * when group_by is enabled") } if len(pathParts[0]) == 0 { diff --git a/exporter/fileexporter/config_test.go b/exporter/fileexporter/config_test.go index 675e8b7b3e9f..decd722763c4 100644 --- a/exporter/fileexporter/config_test.go +++ b/exporter/fileexporter/config_test.go @@ -175,7 +175,7 @@ func TestLoadConfig(t *testing.T) { }, { id: component.NewIDWithName(metadata.Type, "group_by_invalid_path"), - errorMessage: "path must contain exatcly one * when group_by is enabled", + errorMessage: "path must contain exactly one * when group_by is enabled", }, { id: component.NewIDWithName(metadata.Type, "group_by_invalid_path2"), From 4e719873648e302a4b5726faee1160401cb4e03d Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 20:19:12 -0500 Subject: [PATCH 121/450] spelling: exceeds Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/awscontainerinsightreceiver/internal/ecsInfo/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/awscontainerinsightreceiver/internal/ecsInfo/utils.go b/receiver/awscontainerinsightreceiver/internal/ecsInfo/utils.go index fdacc74098f3..0e579a3c76e8 100644 --- a/receiver/awscontainerinsightreceiver/internal/ecsInfo/utils.go +++ b/receiver/awscontainerinsightreceiver/internal/ecsInfo/utils.go @@ -90,7 +90,7 @@ func request(ctx context.Context, endpoint string, client doer) ([]byte, error) } if len(body) == maxHTTPResponseLength { - return nil, fmt.Errorf("response from %s, execeeds the maximum length: %v", endpoint, maxHTTPResponseLength) + return nil, fmt.Errorf("response from %s, exceeds the maximum length: %v", endpoint, maxHTTPResponseLength) } return body, nil } From 12bbbbfe85e9ec57629113b40596f695c496b70f Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 20:19:54 -0500 Subject: [PATCH 122/450] spelling: exclude Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/k8sobjectsreceiver/receiver_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/k8sobjectsreceiver/receiver_test.go b/receiver/k8sobjectsreceiver/receiver_test.go index 23dadeacf51c..ee7a8a1ae2a3 100644 --- a/receiver/k8sobjectsreceiver/receiver_test.go +++ b/receiver/k8sobjectsreceiver/receiver_test.go @@ -149,7 +149,7 @@ func TestWatchObject(t *testing.T) { assert.NoError(t, r.Shutdown(ctx)) } -func TestExludeDeletedTrue(t *testing.T) { +func TestExcludeDeletedTrue(t *testing.T) { t.Parallel() mockClient := newMockDynamicClient() From c7462fb94f4bdc330bf45f62e1f55d4a32941f2b Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 20:20:00 -0500 Subject: [PATCH 123/450] spelling: excluded Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/podmanreceiver/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/podmanreceiver/README.md b/receiver/podmanreceiver/README.md index f75d1d36e045..63d81a5bd195 100644 --- a/receiver/podmanreceiver/README.md +++ b/receiver/podmanreceiver/README.md @@ -94,7 +94,7 @@ See [./documentation.md](./documentation.md) for full detail. This receiver uses the official libpod Go bindings for Podman. In order to include this receiver in your build, you'll need to make sure all non-Go dependencies are -satisfied or some features are exluded. You can use the below mentioned build tags to +satisfied or some features are excluded. You can use the below mentioned build tags to exclude the non-Go dependencies. This receiver does not use any features enabled by these deps so excluding these does not affect the functionality in any way. From a38ac232eae90382137a02ff577027223256f6ba Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:14:57 -0500 Subject: [PATCH 124/450] spelling: exemplar Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/dorisexporter/metrics_exponential_histogram.go | 8 ++++---- exporter/dorisexporter/metrics_gauge.go | 8 ++++---- exporter/dorisexporter/metrics_histogram.go | 8 ++++---- exporter/dorisexporter/metrics_sum.go | 8 ++++---- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/exporter/dorisexporter/metrics_exponential_histogram.go b/exporter/dorisexporter/metrics_exponential_histogram.go index 1498546f3229..75591990b30c 100644 --- a/exporter/dorisexporter/metrics_exponential_histogram.go +++ b/exporter/dorisexporter/metrics_exponential_histogram.go @@ -57,11 +57,11 @@ func (m *metricModelExponentialHistogram) add(pm pmetric.Metric, dm *dMetric, e dp := dataPoints.At(i) exemplars := dp.Exemplars() - newExeplars := make([]*dExemplar, 0, exemplars.Len()) + newExemplars := make([]*dExemplar, 0, exemplars.Len()) for j := 0; j < exemplars.Len(); j++ { exemplar := exemplars.At(j) - newExeplar := &dExemplar{ + newExemplar := &dExemplar{ FilteredAttributes: exemplar.FilteredAttributes().AsRaw(), Timestamp: e.formatTime(exemplar.Timestamp().AsTime()), Value: e.getExemplarValue(exemplar), @@ -69,7 +69,7 @@ func (m *metricModelExponentialHistogram) add(pm pmetric.Metric, dm *dMetric, e TraceID: exemplar.TraceID().String(), } - newExeplars = append(newExeplars, newExeplar) + newExemplars = append(newExemplars, newExemplar) } positiveBucketCounts := dp.Positive().BucketCounts() @@ -97,7 +97,7 @@ func (m *metricModelExponentialHistogram) add(pm pmetric.Metric, dm *dMetric, e PositiveBucketCounts: newPositiveBucketCounts, NegativeOffset: dp.Negative().Offset(), NegativeBucketCounts: newNegativeBucketCounts, - Exemplars: newExeplars, + Exemplars: newExemplars, Min: dp.Min(), Max: dp.Max(), ZeroThreshold: dp.ZeroThreshold(), diff --git a/exporter/dorisexporter/metrics_gauge.go b/exporter/dorisexporter/metrics_gauge.go index a5cf1b9388dd..e8f3a7b733a2 100644 --- a/exporter/dorisexporter/metrics_gauge.go +++ b/exporter/dorisexporter/metrics_gauge.go @@ -46,11 +46,11 @@ func (m *metricModelGauge) add(pm pmetric.Metric, dm *dMetric, e *metricsExporte dp := dataPoints.At(i) exemplars := dp.Exemplars() - newExeplars := make([]*dExemplar, 0, exemplars.Len()) + newExemplars := make([]*dExemplar, 0, exemplars.Len()) for j := 0; j < exemplars.Len(); j++ { exemplar := exemplars.At(j) - newExeplar := &dExemplar{ + newExemplar := &dExemplar{ FilteredAttributes: exemplar.FilteredAttributes().AsRaw(), Timestamp: e.formatTime(exemplar.Timestamp().AsTime()), Value: e.getExemplarValue(exemplar), @@ -58,7 +58,7 @@ func (m *metricModelGauge) add(pm pmetric.Metric, dm *dMetric, e *metricsExporte TraceID: exemplar.TraceID().String(), } - newExeplars = append(newExeplars, newExeplar) + newExemplars = append(newExemplars, newExemplar) } metric := &dMetricGauge{ @@ -67,7 +67,7 @@ func (m *metricModelGauge) add(pm pmetric.Metric, dm *dMetric, e *metricsExporte Attributes: dp.Attributes().AsRaw(), StartTime: e.formatTime(dp.StartTimestamp().AsTime()), Value: e.getNumberDataPointValue(dp), - Exemplars: newExeplars, + Exemplars: newExemplars, } m.data = append(m.data, metric) } diff --git a/exporter/dorisexporter/metrics_histogram.go b/exporter/dorisexporter/metrics_histogram.go index 18d1b3f3afdb..b29418023776 100644 --- a/exporter/dorisexporter/metrics_histogram.go +++ b/exporter/dorisexporter/metrics_histogram.go @@ -52,11 +52,11 @@ func (m *metricModelHistogram) add(pm pmetric.Metric, dm *dMetric, e *metricsExp dp := dataPoints.At(i) exemplars := dp.Exemplars() - newExeplars := make([]*dExemplar, 0, exemplars.Len()) + newExemplars := make([]*dExemplar, 0, exemplars.Len()) for j := 0; j < exemplars.Len(); j++ { exemplar := exemplars.At(j) - newExeplar := &dExemplar{ + newExemplar := &dExemplar{ FilteredAttributes: exemplar.FilteredAttributes().AsRaw(), Timestamp: e.formatTime(exemplar.Timestamp().AsTime()), Value: e.getExemplarValue(exemplar), @@ -64,7 +64,7 @@ func (m *metricModelHistogram) add(pm pmetric.Metric, dm *dMetric, e *metricsExp TraceID: exemplar.TraceID().String(), } - newExeplars = append(newExeplars, newExeplar) + newExemplars = append(newExemplars, newExemplar) } bucketCounts := dp.BucketCounts() @@ -88,7 +88,7 @@ func (m *metricModelHistogram) add(pm pmetric.Metric, dm *dMetric, e *metricsExp Sum: dp.Sum(), BucketCounts: newBucketCounts, ExplicitBounds: newExplicitBounds, - Exemplars: newExeplars, + Exemplars: newExemplars, Min: dp.Min(), Max: dp.Max(), AggregationTemporality: pm.Histogram().AggregationTemporality().String(), diff --git a/exporter/dorisexporter/metrics_sum.go b/exporter/dorisexporter/metrics_sum.go index 56c66ba86419..118593dac011 100644 --- a/exporter/dorisexporter/metrics_sum.go +++ b/exporter/dorisexporter/metrics_sum.go @@ -48,11 +48,11 @@ func (m *metricModelSum) add(pm pmetric.Metric, dm *dMetric, e *metricsExporter) dp := dataPoints.At(i) exemplars := dp.Exemplars() - newExeplars := make([]*dExemplar, 0, exemplars.Len()) + newExemplars := make([]*dExemplar, 0, exemplars.Len()) for j := 0; j < exemplars.Len(); j++ { exemplar := exemplars.At(j) - newExeplar := &dExemplar{ + newExemplar := &dExemplar{ FilteredAttributes: exemplar.FilteredAttributes().AsRaw(), Timestamp: e.formatTime(exemplar.Timestamp().AsTime()), Value: e.getExemplarValue(exemplar), @@ -60,7 +60,7 @@ func (m *metricModelSum) add(pm pmetric.Metric, dm *dMetric, e *metricsExporter) TraceID: exemplar.TraceID().String(), } - newExeplars = append(newExeplars, newExeplar) + newExemplars = append(newExemplars, newExemplar) } metric := &dMetricSum{ @@ -69,7 +69,7 @@ func (m *metricModelSum) add(pm pmetric.Metric, dm *dMetric, e *metricsExporter) Attributes: dp.Attributes().AsRaw(), StartTime: e.formatTime(dp.StartTimestamp().AsTime()), Value: e.getNumberDataPointValue(dp), - Exemplars: newExeplars, + Exemplars: newExemplars, AggregationTemporality: pm.Sum().AggregationTemporality().String(), IsMonotonic: pm.Sum().IsMonotonic(), } From a2ee54e8923b15b41f1ac90c328844f50d8d2c91 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 20:20:10 -0500 Subject: [PATCH 125/450] spelling: expected Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../receiver_test.go | 16 ++++++++-------- testbed/testbed/child_process_collector_test.go | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/receiver/prometheusremotewritereceiver/receiver_test.go b/receiver/prometheusremotewritereceiver/receiver_test.go index c1e46602452d..36670ddbbf01 100644 --- a/receiver/prometheusremotewritereceiver/receiver_test.go +++ b/receiver/prometheusremotewritereceiver/receiver_test.go @@ -77,32 +77,32 @@ func TestHandlePRWContentTypeNegotiation(t *testing.T) { for _, tc := range []struct { name string contentType string - extectedCode int + expectedCode int }{ { name: "no content type", contentType: "", - extectedCode: http.StatusUnsupportedMediaType, + expectedCode: http.StatusUnsupportedMediaType, }, { name: "unsupported content type", contentType: "application/json", - extectedCode: http.StatusUnsupportedMediaType, + expectedCode: http.StatusUnsupportedMediaType, }, { name: "x-protobuf/no proto parameter", contentType: "application/x-protobuf", - extectedCode: http.StatusUnsupportedMediaType, + expectedCode: http.StatusUnsupportedMediaType, }, { name: "x-protobuf/v1 proto parameter", contentType: fmt.Sprintf("application/x-protobuf;proto=%s", promconfig.RemoteWriteProtoMsgV1), - extectedCode: http.StatusUnsupportedMediaType, + expectedCode: http.StatusUnsupportedMediaType, }, { name: "x-protobuf/v2 proto parameter", contentType: fmt.Sprintf("application/x-protobuf;proto=%s", promconfig.RemoteWriteProtoMsgV2), - extectedCode: http.StatusNoContent, + expectedCode: http.StatusNoContent, }, } { t.Run(tc.name, func(t *testing.T) { @@ -121,8 +121,8 @@ func TestHandlePRWContentTypeNegotiation(t *testing.T) { resp, err := http.DefaultClient.Do(req) assert.NoError(t, err) - assert.Equal(t, tc.extectedCode, resp.StatusCode) - if tc.extectedCode == http.StatusNoContent { // We went until the end + assert.Equal(t, tc.expectedCode, resp.StatusCode) + if tc.expectedCode == http.StatusNoContent { // We went until the end assert.NotEmpty(t, resp.Header.Get("X-Prometheus-Remote-Write-Samples-Written")) assert.NotEmpty(t, resp.Header.Get("X-Prometheus-Remote-Write-Histograms-Written")) assert.NotEmpty(t, resp.Header.Get("X-Prometheus-Remote-Write-Exemplars-Written")) diff --git a/testbed/testbed/child_process_collector_test.go b/testbed/testbed/child_process_collector_test.go index 48198cdcb465..830d442c640c 100644 --- a/testbed/testbed/child_process_collector_test.go +++ b/testbed/testbed/child_process_collector_test.go @@ -33,11 +33,11 @@ func TestAgentEnvVarOption(t *testing.T) { cpc, ok := col.(*childProcessCollector) require.True(t, ok) - expeectedEnvVarMap := map[string]string{ + expectedEnvVarMap := map[string]string{ "var-one": "var-one-value", "var-two": "actual-var-two-value", } - require.Equal(t, expeectedEnvVarMap, cpc.additionalEnv) + require.Equal(t, expectedEnvVarMap, cpc.additionalEnv) // results from `not-real` not being found but contents unrelated to this test require.Error(t, col.Start( From 28235e6db65896d2172a16b4151f5a35b10ffdde Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 20:20:22 -0500 Subject: [PATCH 126/450] spelling: explicitly Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/stanza/docs/operators/noop.md | 2 +- processor/probabilisticsamplerprocessor/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/stanza/docs/operators/noop.md b/pkg/stanza/docs/operators/noop.md index 1714f6a5beca..7979cbb0a484 100644 --- a/pkg/stanza/docs/operators/noop.md +++ b/pkg/stanza/docs/operators/noop.md @@ -30,4 +30,4 @@ operators: #### Why is this necessary? -The last operator is always responsible for emitting logs from the receiver. In non-linear pipelines, it is sometimes necessary to explictly direct logs to the final operator. In many such cases, the final operator performs some work. However, if no more work is required, the `noop` operator can serve as a final operator. +The last operator is always responsible for emitting logs from the receiver. In non-linear pipelines, it is sometimes necessary to explicitly direct logs to the final operator. In many such cases, the final operator performs some work. However, if no more work is required, the `noop` operator can serve as a final operator. diff --git a/processor/probabilisticsamplerprocessor/README.md b/processor/probabilisticsamplerprocessor/README.md index e0059d9050e3..417b4e965ca3 100644 --- a/processor/probabilisticsamplerprocessor/README.md +++ b/processor/probabilisticsamplerprocessor/README.md @@ -158,7 +158,7 @@ implies collecting log records from an expected value of 10 pods. OpenTelemetry specifies a consistent sampling mechanism using 56 bits of randomness, which may be obtained from the Trace ID according to the W3C Trace Context Level 2 specification. Randomness can also be -explicly encoding in the OpenTelemetry `tracestate` field, where it is +explicitly encoding in the OpenTelemetry `tracestate` field, where it is known as the R-value. This mode is named because it reduces the number of items transmitted From 6d60d416e076034f6c577eaf77e3bc002a25c86f Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 20:20:34 -0500 Subject: [PATCH 127/450] spelling: exponential Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- connector/signaltometricsconnector/README.md | 2 +- processor/filterprocessor/metrics.go | 4 ++-- .../transformprocessor/internal/common/metrics.go | 4 ++-- ...c_convert_exponential_hist_to_explicit_hist_test.go | 10 +++++----- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/connector/signaltometricsconnector/README.md b/connector/signaltometricsconnector/README.md index 22f8dd82d14c..fda65758af39 100644 --- a/connector/signaltometricsconnector/README.md +++ b/connector/signaltometricsconnector/README.md @@ -124,7 +124,7 @@ exponential_histogram: - [**Optional**] `max_size` represents the maximum number of buckets per positive or negative number range. Defaults to `160`. - [**Optional**] `count` represents an OTTL expression to extract the count to be - recorded in the expoential histogram from the incoming data. If no expression + recorded in the exponential histogram from the incoming data. If no expression is provided then it defaults to the count of the signal. [OTTL converters](https://pkg.go.dev/github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl/ottlfuncs#readme-converters) can be used to transform the data. For spans, a special converter [adjusted count](#custom-ottl-functions), is provided to help calculate the span's [adjusted count](https://opentelemetry.io/docs/specs/otel/trace/tracestate-probability-sampling-experimental/#adjusted-count). diff --git a/processor/filterprocessor/metrics.go b/processor/filterprocessor/metrics.go index 63beb811e2d6..655f4ba0b3f7 100644 --- a/processor/filterprocessor/metrics.go +++ b/processor/filterprocessor/metrics.go @@ -157,7 +157,7 @@ func (fmp *filterMetricProcessor) processMetrics(ctx context.Context, md pmetric errors = multierr.Append(errors, fmp.handleHistogramDataPoints(ctx, metric.Histogram().DataPoints(), metric, smetrics.Metrics(), scope, resource)) return metric.Histogram().DataPoints().Len() == 0 case pmetric.MetricTypeExponentialHistogram: - errors = multierr.Append(errors, fmp.handleExponetialHistogramDataPoints(ctx, metric.ExponentialHistogram().DataPoints(), metric, smetrics.Metrics(), scope, resource)) + errors = multierr.Append(errors, fmp.handleExponentialHistogramDataPoints(ctx, metric.ExponentialHistogram().DataPoints(), metric, smetrics.Metrics(), scope, resource)) return metric.ExponentialHistogram().DataPoints().Len() == 0 case pmetric.MetricTypeSummary: errors = multierr.Append(errors, fmp.handleSummaryDataPoints(ctx, metric.Summary().DataPoints(), metric, smetrics.Metrics(), scope, resource)) @@ -283,7 +283,7 @@ func (fmp *filterMetricProcessor) handleHistogramDataPoints(ctx context.Context, return errors } -func (fmp *filterMetricProcessor) handleExponetialHistogramDataPoints(ctx context.Context, dps pmetric.ExponentialHistogramDataPointSlice, metric pmetric.Metric, metrics pmetric.MetricSlice, is pcommon.InstrumentationScope, resource pcommon.Resource) error { +func (fmp *filterMetricProcessor) handleExponentialHistogramDataPoints(ctx context.Context, dps pmetric.ExponentialHistogramDataPointSlice, metric pmetric.Metric, metrics pmetric.MetricSlice, is pcommon.InstrumentationScope, resource pcommon.Resource) error { var errors error dps.RemoveIf(func(datapoint pmetric.ExponentialHistogramDataPoint) bool { skip, err := fmp.skipDataPointExpr.Eval(ctx, ottldatapoint.NewTransformContext(datapoint, metric, metrics, is, resource, pmetric.NewScopeMetrics(), pmetric.NewResourceMetrics())) diff --git a/processor/transformprocessor/internal/common/metrics.go b/processor/transformprocessor/internal/common/metrics.go index 3ae07920ca2c..f4cec79cd15e 100644 --- a/processor/transformprocessor/internal/common/metrics.go +++ b/processor/transformprocessor/internal/common/metrics.go @@ -88,7 +88,7 @@ func (d dataPointStatements) ConsumeMetrics(ctx context.Context, md pmetric.Metr case pmetric.MetricTypeHistogram: err = d.handleHistogramDataPoints(ctx, metric.Histogram().DataPoints(), metrics.At(k), metrics, smetrics.Scope(), rmetrics.Resource(), smetrics, rmetrics) case pmetric.MetricTypeExponentialHistogram: - err = d.handleExponetialHistogramDataPoints(ctx, metric.ExponentialHistogram().DataPoints(), metrics.At(k), metrics, smetrics.Scope(), rmetrics.Resource(), smetrics, rmetrics) + err = d.handleExponentialHistogramDataPoints(ctx, metric.ExponentialHistogram().DataPoints(), metrics.At(k), metrics, smetrics.Scope(), rmetrics.Resource(), smetrics, rmetrics) case pmetric.MetricTypeSummary: err = d.handleSummaryDataPoints(ctx, metric.Summary().DataPoints(), metrics.At(k), metrics, smetrics.Scope(), rmetrics.Resource(), smetrics, rmetrics) } @@ -135,7 +135,7 @@ func (d dataPointStatements) handleHistogramDataPoints(ctx context.Context, dps return nil } -func (d dataPointStatements) handleExponetialHistogramDataPoints(ctx context.Context, dps pmetric.ExponentialHistogramDataPointSlice, metric pmetric.Metric, metrics pmetric.MetricSlice, is pcommon.InstrumentationScope, resource pcommon.Resource, scopeMetrics pmetric.ScopeMetrics, resourceMetrics pmetric.ResourceMetrics) error { +func (d dataPointStatements) handleExponentialHistogramDataPoints(ctx context.Context, dps pmetric.ExponentialHistogramDataPointSlice, metric pmetric.Metric, metrics pmetric.MetricSlice, is pcommon.InstrumentationScope, resource pcommon.Resource, scopeMetrics pmetric.ScopeMetrics, resourceMetrics pmetric.ResourceMetrics) error { for i := 0; i < dps.Len(); i++ { tCtx := ottldatapoint.NewTransformContext(dps.At(i), metric, metrics, is, resource, scopeMetrics, resourceMetrics) condition, err := d.BoolExpr.Eval(ctx, tCtx) diff --git a/processor/transformprocessor/internal/metrics/func_convert_exponential_hist_to_explicit_hist_test.go b/processor/transformprocessor/internal/metrics/func_convert_exponential_hist_to_explicit_hist_test.go index aee2cdf07fea..a861869eeec2 100644 --- a/processor/transformprocessor/internal/metrics/func_convert_exponential_hist_to_explicit_hist_test.go +++ b/processor/transformprocessor/internal/metrics/func_convert_exponential_hist_to_explicit_hist_test.go @@ -191,7 +191,7 @@ func TestUpper_convert_exponential_hist_to_explicit_hist(t *testing.T) { // 0 scale exponential histogram will result in an extremely large upper bound // resulting in all the counts being in buckets much larger than the explicit bounds // thus all counts will be in the overflow bucket - name: "0 scale expontential histogram given using upper distribute", + name: "0 scale exponential histogram given using upper distribute", input: func() pmetric.Metric { m := pmetric.NewMetric() defaultTestMetric().CopyTo(m) @@ -221,7 +221,7 @@ func TestUpper_convert_exponential_hist_to_explicit_hist(t *testing.T) { }, }, { - name: "empty expontential histogram given using upper distribute", + name: "empty exponential histogram given using upper distribute", input: func() pmetric.Metric { m := pmetric.NewMetric() m.SetName("empty") @@ -236,7 +236,7 @@ func TestUpper_convert_exponential_hist_to_explicit_hist(t *testing.T) { }, }, { - name: "non-expontential histogram", + name: "non-exponential histogram", arg: []float64{0}, distribution: "upper", input: nonExponentialHist, @@ -403,7 +403,7 @@ func TestMidpoint_convert_exponential_hist_to_explicit_hist(t *testing.T) { }, }, { - name: "empty expontential histogram given", + name: "empty exponential histogram given", input: func() pmetric.Metric { m := pmetric.NewMetric() m.SetName("empty") @@ -418,7 +418,7 @@ func TestMidpoint_convert_exponential_hist_to_explicit_hist(t *testing.T) { }, }, { - name: "non-expontential histogram given using upper distribute", + name: "non-exponential histogram given using upper distribute", arg: []float64{0}, distribution: "midpoint", input: nonExponentialHist, From dfdaed7bac8860e36c8278abb5786335a90c1a4b Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 08:05:14 -0500 Subject: [PATCH 128/450] spelling: exporter Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/prometheusremotewriteexporter/DESIGN.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/prometheusremotewriteexporter/DESIGN.md b/exporter/prometheusremotewriteexporter/DESIGN.md index 36946ddccd5f..32ece531ec79 100644 --- a/exporter/prometheusremotewriteexporter/DESIGN.md +++ b/exporter/prometheusremotewriteexporter/DESIGN.md @@ -225,7 +225,7 @@ This method creates the default configuration for Prometheus remote write/Cortex createMetricsExporter -This method constructs a new http.Client with interceptors that add headers to any request it sends. Then, this method initializes a new Prometheus remote write exporter/Cortex exporter with the http.Client. This method constructs a collector Prometheus remote write/Cortex exporter exporter with the created SDK exporter +This method constructs a new http.Client with interceptors that add headers to any request it sends. Then, this method initializes a new Prometheus remote write exporter/Cortex exporter with the http.Client. This method constructs a collector Prometheus remote write/Cortex exporter with the created SDK exporter From f7695477604d6b876cdfd83cd15a701219e484ac Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 20:08:19 -0500 Subject: [PATCH 129/450] spelling: extension Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 4 ++-- .../encoding/avrologencodingextension/extension_test.go | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5e9c6c2a99a0..14483dfd7819 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1607,7 +1607,7 @@ This release fixes CVE-2024-42368 on the `bearerauthtokenextension` (#34516) - `processor/transform`: Allow common where clause (#27830) - `loadbalancingexporter`: Improve the performance when merging traces belonging to the same backend (#32032) - `pkg/ottl`: Added support for timezone in Time converter (#32140) -- `jsonlogencodingextension`: Adds a new encoding option for JSON log encoding exension to grab attributes and resources from a log and output that in JSON format. (#32679) +- `jsonlogencodingextension`: Adds a new encoding option for JSON log encoding extension to grab attributes and resources from a log and output that in JSON format. (#32679) - `probabilisticsamplerprocessor`: Adds the `FailClosed` flag to solidify current behavior when randomness source is missing. (#31918) - `prometheusremotewriteexporter`: Add `exporter.prometheusremotewritexporter.RetryOn429` feature gate to retry on http status code 429 response. (#31032) The feature gate is initially disabled by default. @@ -2711,7 +2711,7 @@ This release fixes CVE-2024-42368 on the `bearerauthtokenextension` (#34516) - `doubleconverter`: Adding a double converter into pkg/ottl (#22056) - `syslogreceiver`: validate protocol name (#27581) - `elasticsearchexporter`: add missing scope info in span attributes (#27282) -- `entension/storage/filestorage`: Add support for setting bbolt fsync option (#20266) +- `extension/storage/filestorage`: Add support for setting bbolt fsync option (#20266) - `filelogreceiver`: Add a new "top_n" option to specify the number of files to track when using ordering criteria (#23788) - `azuredataexplorerexporter`: Added exporter helper config support for Azure Data Explorer exporter (#24329) - `k8sclusterreceiver`: add optional k8s.pod.qos_class resource attribute (#27483) diff --git a/extension/encoding/avrologencodingextension/extension_test.go b/extension/encoding/avrologencodingextension/extension_test.go index 86bb0158fc0f..c3f58a597ce3 100644 --- a/extension/encoding/avrologencodingextension/extension_test.go +++ b/extension/encoding/avrologencodingextension/extension_test.go @@ -13,12 +13,12 @@ import ( ) func TestExtension_Start_Shutdown(t *testing.T) { - avroExtention := &avroLogExtension{} + avroExtension := &avroLogExtension{} - err := avroExtention.Start(context.Background(), componenttest.NewNopHost()) + err := avroExtension.Start(context.Background(), componenttest.NewNopHost()) require.NoError(t, err) - err = avroExtention.Shutdown(context.Background()) + err = avroExtension.Shutdown(context.Background()) require.NoError(t, err) } From 102fcf1e0f47c98d411ef86ef1a7ea047e3d6150 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 20:22:25 -0500 Subject: [PATCH 130/450] spelling: facilitate Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- examples/secure-tracing/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/secure-tracing/README.md b/examples/secure-tracing/README.md index 9b0312d4638e..e0f93ad3e4c4 100644 --- a/examples/secure-tracing/README.md +++ b/examples/secure-tracing/README.md @@ -55,7 +55,7 @@ typed_config: ### Generate Certificates To generate various self-signed certificates, including those for Envoy and the OpenTelemetry Collector receiver, as well as tracing client certificate, we utilize the widely renowned open-source tool [OpenSSL](https://www.openssl.org/source/), OpenSSL 3.1.0 14 was tested. -In the `certs` folder, you can find a set of `.ext` files which define the properties for a certificate. A `MakeFile` is provided to facilate the process. +In the `certs` folder, you can find a set of `.ext` files which define the properties for a certificate. A `MakeFile` is provided to facilitate the process. ``` $ cd certs From 7edf516cb1faeb79ee5cfa29cbdfca326d711609 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:15:10 -0500 Subject: [PATCH 131/450] spelling: factory Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/snowflakereceiver/factory_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/snowflakereceiver/factory_test.go b/receiver/snowflakereceiver/factory_test.go index 10e04c5e5a44..586113487872 100644 --- a/receiver/snowflakereceiver/factory_test.go +++ b/receiver/snowflakereceiver/factory_test.go @@ -15,7 +15,7 @@ import ( "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/snowflakereceiver/internal/metadata" ) -func TestFacoryCreate(t *testing.T) { +func TestFactoryCreate(t *testing.T) { factory := NewFactory() require.EqualValues(t, metadata.Type, factory.Type()) } From 76e405fb215d0cc79a5fe04de5132e56788e96e5 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 20:22:43 -0500 Subject: [PATCH 132/450] spelling: failed Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../rabbitmqexporter/internal/publisher/publisher_test.go | 2 +- receiver/webhookeventreceiver/req_to_log_test.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/exporter/rabbitmqexporter/internal/publisher/publisher_test.go b/exporter/rabbitmqexporter/internal/publisher/publisher_test.go index 96b2c99ad6d6..5bdf1103aaba 100644 --- a/exporter/rabbitmqexporter/internal/publisher/publisher_test.go +++ b/exporter/rabbitmqexporter/internal/publisher/publisher_test.go @@ -293,7 +293,7 @@ func resetCall(t *testing.T, calls []*mock.Call, methodName string) { return } } - t.Errorf("Faild to reset method %s", methodName) + t.Errorf("Failed to reset method %s", methodName) t.FailNow() } 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") } }, }, From 0b16dd2e4d91195893792242cc9c1b83e4a6effc Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 20:23:06 -0500 Subject: [PATCH 133/450] spelling: falsepos Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/aerospikereceiver/documentation.md | 2 +- receiver/aerospikereceiver/metadata.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/receiver/aerospikereceiver/documentation.md b/receiver/aerospikereceiver/documentation.md index 8532ecbd1826..c731fb152e9f 100644 --- a/receiver/aerospikereceiver/documentation.md +++ b/receiver/aerospikereceiver/documentation.md @@ -34,7 +34,7 @@ Number of cell coverings for query region queried. Aerospike metric geo_region_q Number of points outside the region. -Total query result points is geo_region_query_points + geo_region_query_falsepos. Aerospike metric geo_regio_query_falspos. +Total query result points is geo_region_query_points + geo_region_query_falsepos. Aerospike metric geo_regio_query_falsepos. | Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic | | ---- | ----------- | ---------- | ----------------------- | --------- | diff --git a/receiver/aerospikereceiver/metadata.yaml b/receiver/aerospikereceiver/metadata.yaml index b038df038a39..52cef8785af1 100644 --- a/receiver/aerospikereceiver/metadata.yaml +++ b/receiver/aerospikereceiver/metadata.yaml @@ -220,7 +220,7 @@ metrics: enabled: true description: Number of points outside the region. unit: '{points}' - extended_documentation: Total query result points is geo_region_query_points + geo_region_query_falsepos. Aerospike metric geo_regio_query_falspos. + extended_documentation: Total query result points is geo_region_query_points + geo_region_query_falsepos. Aerospike metric geo_regio_query_falsepos. sum: value_type: int input_type: string From cf7cb4668e0869f7150141bd79042f93b1ea6e72 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 20:23:30 -0500 Subject: [PATCH 134/450] spelling: feature Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 14483dfd7819..cb9458db6aac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5780,7 +5780,7 @@ https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/9278. - `filestorageextension`: use correct bbolt options for compaction (#9134) - `hostmetricsreceiver`: Use cpu times for time delta in cpu.utilization calculation (#8857) - `dynatraceexporter`: Remove overly verbose stacktrace from certain logs (#8989) -- `googlecloudexporter`: fix the `exporter.googlecloud.OTLPDirect` fature-gate, which was not applied when the flag was provided (#9116) +- `googlecloudexporter`: fix the `exporter.googlecloud.OTLPDirect` feature-gate, which was not applied when the flag was provided (#9116) - `signalfxexporter`: Fix bug to enable timeouts for correlating traces and metrics (#9101) - `windowsperfcountersreceiver`: fix exported values being integers instead of doubles (#9138) - `prometheusreceiver`: Fix issues with relabelling the `job` and `instance` labels. (#8780) From 71e4d028a809f2ea2f7e8ac3f011ae1e90643d99 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 20:22:34 -0500 Subject: [PATCH 135/450] spelling: fetch Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- extension/observer/ecsobserver/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extension/observer/ecsobserver/README.md b/extension/observer/ecsobserver/README.md index b7708e3b7f1c..ecb9e79f6313 100644 --- a/extension/observer/ecsobserver/README.md +++ b/extension/observer/ecsobserver/README.md @@ -400,7 +400,7 @@ NewECSSD() { select { case <- timer: // Fetch ALL - tasks := ecsClient.FaetchAll() + tasks := ecsClient.FetchAll() // Filter filteredTasks := fileters.Apply(tasks) // Add EC2 info From 7bc545efadf67c5b4457374a347c4b0a02c11918 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 20:25:13 -0500 Subject: [PATCH 136/450] spelling: fileconsumer Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cb9458db6aac..1e1e2f9c086b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3145,7 +3145,7 @@ This release fixes CVE-2024-42368 on the `bearerauthtokenextension` (#34516) - `dynatraceexporter`: Add deprecation note to Dynatrace metrics exporter (#23992) - `pkg/stanza`: Deprecate fileconsumer.EmitFunc in favor of fileconsumer.emit.Callback (#24036) -- `pkg/stanza`: Deprecate filconsumer.Finder and related sortation structs and functions (#24013) +- `pkg/stanza`: Deprecate fileconsumer.Finder and related sortation structs and functions (#24013) - `servicegraphprocessor`: Service Graph Processor is deprecated in favor of the Service Graph Connector (#19737) ### 🚀 New components 🚀 From 8ea2800883c388eef9279da1d2a071963a87aef9 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 20:27:11 -0500 Subject: [PATCH 137/450] spelling: fileset Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/stanza/fileconsumer/internal/tracker/tracker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/stanza/fileconsumer/internal/tracker/tracker.go b/pkg/stanza/fileconsumer/internal/tracker/tracker.go index 5d03b0eed31a..8b09ec17ca07 100644 --- a/pkg/stanza/fileconsumer/internal/tracker/tracker.go +++ b/pkg/stanza/fileconsumer/internal/tracker/tracker.go @@ -171,7 +171,7 @@ func (t *fileTracker) archive(metadata *fileset.Fileset[*reader.Metadata]) { t.archiveIndex = (t.archiveIndex + 1) % t.pollsToArchive // increment the index } -// readArchive loads data from the archive for a given index and returns a fileset.Filset. +// readArchive loads data from the archive for a given index and returns a fileset.Fileset. func (t *fileTracker) readArchive(index int) (*fileset.Fileset[*reader.Metadata], error) { key := fmt.Sprintf("knownFiles%d", index) metadata, err := checkpoint.LoadKey(context.Background(), t.persister, key) From 2f81fdae217f08a8f1930b6aa34284458fb81f52 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 20:25:59 -0500 Subject: [PATCH 138/450] spelling: filtered Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- extension/observer/ecsobserver/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extension/observer/ecsobserver/README.md b/extension/observer/ecsobserver/README.md index ecb9e79f6313..3c326bcfc03d 100644 --- a/extension/observer/ecsobserver/README.md +++ b/extension/observer/ecsobserver/README.md @@ -407,7 +407,7 @@ NewECSSD() { decorator.Apply(filteredTask) // Generate output if writeResultFile { - writeFile(fileteredTasks, /etc/ecs_sd.yaml) + writeFile(filteredTasks, /etc/ecs_sd.yaml) } else { notifyObserver() } From 3034e297d4b83e9b5b998e7f6517cc4d847fa21d Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 20:27:27 -0500 Subject: [PATCH 139/450] spelling: filtering Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/signalfxexporter/internal/translation/translator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/signalfxexporter/internal/translation/translator.go b/exporter/signalfxexporter/internal/translation/translator.go index 324188e820ee..ab7795b8917f 100644 --- a/exporter/signalfxexporter/internal/translation/translator.go +++ b/exporter/signalfxexporter/internal/translation/translator.go @@ -177,7 +177,7 @@ type Rule struct { // DimensionKey is used by "split_metric" translation rule action to specify dimension key // that will be used to translate the metric datapoints. Datapoints that don't have // the specified dimension key will not be translated. - // DimensionKey is also used by "copy_metrics" for filterring. + // DimensionKey is also used by "copy_metrics" for filtering. DimensionKey string `mapstructure:"dimension_key"` // DimensionValues is used by "copy_metrics" to filter out datapoints with dimensions values From f25a0d4c36dd774f9263d3cd4d7f2cd3a2b8d875 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 20:26:41 -0500 Subject: [PATCH 140/450] spelling: filters Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- extension/observer/ecsobserver/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extension/observer/ecsobserver/README.md b/extension/observer/ecsobserver/README.md index 3c326bcfc03d..02e34b42f201 100644 --- a/extension/observer/ecsobserver/README.md +++ b/extension/observer/ecsobserver/README.md @@ -394,7 +394,7 @@ The pseudocode showing the overall flow. NewECSSD() { session := awsconfig.NewSssion() ecsClient := awsecs.NewClient(session) - filters := config.NewFileters() + filters := config.NewFilters() decorator := awsec2.NewClient(session) for { select { @@ -402,7 +402,7 @@ NewECSSD() { // Fetch ALL tasks := ecsClient.FetchAll() // Filter - filteredTasks := fileters.Apply(tasks) + filteredTasks := filters.Apply(tasks) // Add EC2 info decorator.Apply(filteredTask) // Generate output From c0d15a4f3777565b3d4683ddaa7743f7730044b9 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 20:31:55 -0500 Subject: [PATCH 141/450] spelling: flakiness Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/redisreceiver/integration_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/redisreceiver/integration_test.go b/receiver/redisreceiver/integration_test.go index cd8db87a67c5..65fea884d6f2 100644 --- a/receiver/redisreceiver/integration_test.go +++ b/receiver/redisreceiver/integration_test.go @@ -52,7 +52,7 @@ func TestIntegrationV6(t *testing.T) { } func TestIntegrationV7Cluster(t *testing.T) { - t.Skip("Skipping due to flakieness, possibly related to https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/30411") + t.Skip("Skipping due to flakiness, possibly related to https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/30411") scraperinttest.NewIntegrationTest( NewFactory(), scraperinttest.WithContainerRequest(testcontainers.ContainerRequest{ From 0060566d2867fd997487f768740c1d1e995c4c60 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 20:28:05 -0500 Subject: [PATCH 142/450] spelling: flaky Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/awss3exporter/internal/upload/writer_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/awss3exporter/internal/upload/writer_test.go b/exporter/awss3exporter/internal/upload/writer_test.go index cb722933aa81..0bb322b9d8f5 100644 --- a/exporter/awss3exporter/internal/upload/writer_test.go +++ b/exporter/awss3exporter/internal/upload/writer_test.go @@ -142,7 +142,7 @@ func TestS3ManagerUpload(t *testing.T) { ) // Using a mocked virtual clock to fix the timestamp used - // to reduce the potential of flakey tests + // to reduce the potential of flaky tests mc := clock.NewMock(time.Date(2024, 0o1, 10, 10, 30, 40, 100, time.Local)) err := sm.Upload( From fe0fad7e55779ab8810043eeb787be1250440ca2 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 3 Jan 2025 09:55:25 -0500 Subject: [PATCH 143/450] spelling: for Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/logzioexporter/README.md | 2 +- internal/coreinternal/goldendataset/traces_generator.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/exporter/logzioexporter/README.md b/exporter/logzioexporter/README.md index c614d8c17b13..50146486ab47 100644 --- a/exporter/logzioexporter/README.md +++ b/exporter/logzioexporter/README.md @@ -113,7 +113,7 @@ service: level: "debug" ``` #### Metrics: -In order to use the Prometheus backend you must use the standard prometheusremotewrite exporter as well. The following [regions](https://docs.logz.io/user-guide/accounts/account-region.html#supported-regions-for-prometheus-metrics) are supported and configured as follows. The Logz.io Listener URL for for your region, configured to use port 8052 for http traffic, or port 8053 for https traffic. +In order to use the Prometheus backend you must use the standard prometheusremotewrite exporter as well. The following [regions](https://docs.logz.io/user-guide/accounts/account-region.html#supported-regions-for-prometheus-metrics) are supported and configured as follows. The Logz.io Listener URL for your region, configured to use port 8052 for http traffic, or port 8053 for https traffic. Example: ```yaml exporters: diff --git a/internal/coreinternal/goldendataset/traces_generator.go b/internal/coreinternal/goldendataset/traces_generator.go index ebb093c0d636..2c36b8dc5414 100644 --- a/internal/coreinternal/goldendataset/traces_generator.go +++ b/internal/coreinternal/goldendataset/traces_generator.go @@ -14,7 +14,7 @@ import ( // GenerateTraces generates a slice of OTLP ResourceSpans objects based on the PICT-generated pairwise // parameters defined in the parameters file specified by the tracePairsFile parameter. The pairs to generate -// spans for for defined in the file specified by the spanPairsFile parameter. +// spans for defined in the file specified by the spanPairsFile parameter. // The slice of ResourceSpans are returned. If an err is returned, the slice elements will be nil. func GenerateTraces(tracePairsFile string, spanPairsFile string) ([]ptrace.Traces, error) { random := io.Reader(rand.New(rand.NewSource(42))) From 7120ffae8702f42ccfbc4d5087d6a64833002aba Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 20:40:04 -0500 Subject: [PATCH 144/450] spelling: forty Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/ottl/math_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/ottl/math_test.go b/pkg/ottl/math_test.go index 4f1af566d5ea..859291f75213 100644 --- a/pkg/ottl/math_test.go +++ b/pkg/ottl/math_test.go @@ -610,7 +610,7 @@ func Test_evaluateMathExpressionTimeDuration(t *testing.T) { ) zeroSecs, err := time.ParseDuration("0s") require.NoError(t, err) - fourtySevenHourseFourtyTwoMinutesTwentySevenSecs, err := time.ParseDuration("47h42m27s") + fortySevenHourseFortyTwoMinutesTwentySevenSecs, err := time.ParseDuration("47h42m27s") require.NoError(t, err) oneHundredOne, err := time.ParseDuration("101h101m101s101ns") require.NoError(t, err) @@ -730,7 +730,7 @@ func Test_evaluateMathExpressionTimeDuration(t *testing.T) { }, }, }, - expected: -fourtySevenHourseFourtyTwoMinutesTwentySevenSecs, + expected: -fortySevenHourseFortyTwoMinutesTwentySevenSecs, }, { name: "dur add time", From d1a537da8aa6a779ac55f776a8382f37a1963dc4 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 20:39:31 -0500 Subject: [PATCH 145/450] spelling: forwarder Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- testbed/datasenders/fluent.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testbed/datasenders/fluent.go b/testbed/datasenders/fluent.go index 4325bf451470..7421da5c1ee0 100644 --- a/testbed/datasenders/fluent.go +++ b/testbed/datasenders/fluent.go @@ -26,7 +26,7 @@ const ( fluentPortVar = "FLUENT_DATA_SENDER_RECEIVER_PORT" ) -// FluentLogsForwarder forwards logs to fluent forwader +// FluentLogsForwarder forwards logs to fluent forwarder type FluentLogsForwarder struct { testbed.DataSenderBase fluentLogger *fluent.Fluent From 95f5b2e64b82bccaf5c3a9acb76301d699582091 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 20:46:48 -0500 Subject: [PATCH 146/450] spelling: full Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/awsemfexporter/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/awsemfexporter/README.md b/exporter/awsemfexporter/README.md index 6eb5d1dd4ebf..97012b52d91a 100644 --- a/exporter/awsemfexporter/README.md +++ b/exporter/awsemfexporter/README.md @@ -73,7 +73,7 @@ A metric descriptor section allows the schema of a metric to be overwritten befo | Name | Description | Default | | :---------------- | :--------------------------------------------------------------------- | ------- | | `metric_name` | The name of the metric to be overwritten. | | -| `unit` | The overwritten value of unit. The [MetricDatum](https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDatum.html) contains a ful list of supported unit values. | | +| `unit` | The overwritten value of unit. The [MetricDatum](https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDatum.html) contains a full list of supported unit values. | | | `overwrite` | `true` if the schema should be overwritten with the given specification, otherwise it will only be configured if empty. | false | From 7c3cd67ddf5592b230a612676754421a56104c49 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 20:47:04 -0500 Subject: [PATCH 147/450] spelling: functional Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1e1e2f9c086b..82d3f687874d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -995,7 +995,7 @@ This release fixes CVE-2024-42368 on the `bearerauthtokenextension` (#34516) - `bearertokenauthextension`: use constant time comparison. This fixes CVE-2024-42368 (#34516) - `processor/k8sattributes`: Add support for `container.image.repo_digests` metadata (#34029) - `datadogconnector`: Move feature gate `connector.datadogconnector.NativeIngest` to beta (#34549) - When this feature gate is enabled (default), the datadog connector uses the new API to produce APM stats under the hood. | The new API has better throughput when your spans have many attributes (especially container related attributes). Funtional-wise the new API should have no user-facing change compared to the old API. | However if you observe any unexpected behaviors, you can disable this feature gate to revert to the old stats processing APIs. + When this feature gate is enabled (default), the datadog connector uses the new API to produce APM stats under the hood. | The new API has better throughput when your spans have many attributes (especially container related attributes). Functional-wise the new API should have no user-facing change compared to the old API. | However if you observe any unexpected behaviors, you can disable this feature gate to revert to the old stats processing APIs. - `elasticsearchexporter`: Add opt-in support for the experimental `batcher` config (#32377) By enabling (or explicitly disabling) the batcher, the Elasticsearch exporter's existing batching/buffering logic will be disabled, and the batch sender will be used. From 05ec14be5a7282f11a9d966d626c2e3238bd7412 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 20:46:57 -0500 Subject: [PATCH 148/450] spelling: functions Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/solacereceiver/messaging_service_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/solacereceiver/messaging_service_test.go b/receiver/solacereceiver/messaging_service_test.go index 6faa2d559897..ed10de7c02a6 100644 --- a/receiver/solacereceiver/messaging_service_test.go +++ b/receiver/solacereceiver/messaging_service_test.go @@ -504,7 +504,7 @@ func TestAMQPSubstituteVariables(t *testing.T) { // testFunctionEquality will check that the pointer names are the same for the two functions. // It is not a perfect comparison but will perform well differentiating between anonymous -// functions and the amqp named functinos +// functions and the amqp named functions func testFunctionEquality(t *testing.T, f1, f2 any) { assert.Equal(t, (f1 == nil), (f2 == nil)) if f1 == nil { From 12860820f7bdd6a8c91ce9c0cc7ac98b3e1091be Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 21:22:22 -0500 Subject: [PATCH 149/450] spelling: gauge Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../testdata/metrics/exponential_histograms/config.yaml | 2 +- .../testdata/metrics/exponential_histograms/output.yaml | 2 +- .../testdata/metrics/histograms/config.yaml | 2 +- .../testdata/metrics/histograms/output.yaml | 2 +- exporter/kafkaexporter/marshaler_test.go | 2 +- receiver/prometheusreceiver/DESIGN.md | 4 ++-- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/connector/signaltometricsconnector/testdata/metrics/exponential_histograms/config.yaml b/connector/signaltometricsconnector/testdata/metrics/exponential_histograms/config.yaml index 1b2e868fd80b..02255d59b3b6 100644 --- a/connector/signaltometricsconnector/testdata/metrics/exponential_histograms/config.yaml +++ b/connector/signaltometricsconnector/testdata/metrics/exponential_histograms/config.yaml @@ -1,7 +1,7 @@ signaltometrics: datapoints: - name: gauge.to.exphistogram - description: An exponential histogram created from gague values + description: An exponential histogram created from gauge values include_resource_attributes: - key: resource.foo attributes: diff --git a/connector/signaltometricsconnector/testdata/metrics/exponential_histograms/output.yaml b/connector/signaltometricsconnector/testdata/metrics/exponential_histograms/output.yaml index 42b210383c32..6295fe84783b 100644 --- a/connector/signaltometricsconnector/testdata/metrics/exponential_histograms/output.yaml +++ b/connector/signaltometricsconnector/testdata/metrics/exponential_histograms/output.yaml @@ -6,7 +6,7 @@ resourceMetrics: stringValue: foo scopeMetrics: - metrics: - - description: An exponential histogram created from gague values + - description: An exponential histogram created from gauge values exponentialHistogram: aggregationTemporality: 1 dataPoints: diff --git a/connector/signaltometricsconnector/testdata/metrics/histograms/config.yaml b/connector/signaltometricsconnector/testdata/metrics/histograms/config.yaml index 1b1932008d0b..8c839a91a9f0 100644 --- a/connector/signaltometricsconnector/testdata/metrics/histograms/config.yaml +++ b/connector/signaltometricsconnector/testdata/metrics/histograms/config.yaml @@ -1,7 +1,7 @@ signaltometrics: datapoints: - name: gauge.to.histogram - description: A histogram created from gague values + description: A histogram created from gauge values include_resource_attributes: - key: resource.foo attributes: diff --git a/connector/signaltometricsconnector/testdata/metrics/histograms/output.yaml b/connector/signaltometricsconnector/testdata/metrics/histograms/output.yaml index 2cda97a02d15..364620c28e45 100644 --- a/connector/signaltometricsconnector/testdata/metrics/histograms/output.yaml +++ b/connector/signaltometricsconnector/testdata/metrics/histograms/output.yaml @@ -6,7 +6,7 @@ resourceMetrics: stringValue: foo scopeMetrics: - metrics: - - description: A histogram created from gague values + - description: A histogram created from gauge values histogram: aggregationTemporality: 1 dataPoints: diff --git a/exporter/kafkaexporter/marshaler_test.go b/exporter/kafkaexporter/marshaler_test.go index d68c6332768b..95be677c7def 100644 --- a/exporter/kafkaexporter/marshaler_test.go +++ b/exporter/kafkaexporter/marshaler_test.go @@ -109,7 +109,7 @@ func TestOTLPMetricsJsonMarshaling(t *testing.T) { m := sm.Metrics().AppendEmpty() m.SetEmptyGauge() m.Gauge().DataPoints().AppendEmpty().SetStartTimestamp(pcommon.NewTimestampFromTime(time.Unix(1, 0))) - m.Gauge().DataPoints().At(0).Attributes().PutStr("gauage_attribute", "attr") + m.Gauge().DataPoints().At(0).Attributes().PutStr("gauge_attribute", "attr") m.Gauge().DataPoints().At(0).SetDoubleValue(1.0) r1 := pcommon.NewResource() diff --git a/receiver/prometheusreceiver/DESIGN.md b/receiver/prometheusreceiver/DESIGN.md index 6da2c713ffea..45ee3ad08b71 100644 --- a/receiver/prometheusreceiver/DESIGN.md +++ b/receiver/prometheusreceiver/DESIGN.md @@ -357,12 +357,12 @@ metrics := []*metricspb.Metric{ ### Gauge -Gauge, as described in the [Prometheus Metric Types Document](https://prometheus.io/docs/concepts/metric_types/#guage), +Gauge, as described in the [Prometheus Metric Types Document](https://prometheus.io/docs/concepts/metric_types/#gauge), > is a metric that represents a single numerical value that can arbitrarily go up and down ``` # HELP gauge_test some test gauges. -# TYPE gauge_test gague +# TYPE gauge_test gauge gauge_test{id="1",foo="bar"} 1.0 gauge_test{id="2",foo=""} 2.0 From ded45833f018b51bb75e4c28a6213232653ea9b4 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 9 Jan 2025 14:05:10 -0500 Subject: [PATCH 150/450] spelling: gc'd Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- internal/otelarrow/compression/zstd/zstd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/otelarrow/compression/zstd/zstd.go b/internal/otelarrow/compression/zstd/zstd.go index e2a046bab8fa..5e061ded09a5 100644 --- a/internal/otelarrow/compression/zstd/zstd.go +++ b/internal/otelarrow/compression/zstd/zstd.go @@ -302,7 +302,7 @@ func (c *combined) Decompress(r io.Reader) (io.Reader, error) { // the freelist. Note that the finalizer is attached to the // reader object, not to the decoder, because zstd maintains // background references to the decoder that prevent it from - // being GC'ed. + // being GC'd. runtime.SetFinalizer(z, (*reader).Close) } else if err := z.Decoder.Reset(r); err != nil { return nil, err From 2d9291dcd1b0ac2599da75ab1bf321bae2b78043 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 21:23:09 -0500 Subject: [PATCH 151/450] spelling: generate Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- internal/coreinternal/testdata/metric.go | 2 +- pkg/translator/opencensus/metrics_to_oc_test.go | 2 +- pkg/translator/opencensus/oc_to_metrics_test.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/coreinternal/testdata/metric.go b/internal/coreinternal/testdata/metric.go index 031720e3e577..bd72cdf60982 100644 --- a/internal/coreinternal/testdata/metric.go +++ b/internal/coreinternal/testdata/metric.go @@ -138,7 +138,7 @@ func GenerateMetricsMetricTypeInvalid() pmetric.Metrics { return md } -func GeneratMetricsAllTypesWithSampleDatapoints() pmetric.Metrics { +func GenerateMetricsAllTypesWithSampleDatapoints() pmetric.Metrics { md := GenerateMetricsOneEmptyInstrumentationLibrary() ilm := md.ResourceMetrics().At(0).ScopeMetrics().At(0) diff --git a/pkg/translator/opencensus/metrics_to_oc_test.go b/pkg/translator/opencensus/metrics_to_oc_test.go index b3a867e86e97..896a75a27545 100644 --- a/pkg/translator/opencensus/metrics_to_oc_test.go +++ b/pkg/translator/opencensus/metrics_to_oc_test.go @@ -21,7 +21,7 @@ import ( ) func TestMetricsToOC(t *testing.T) { - sampleMetricData := testdata.GeneratMetricsAllTypesWithSampleDatapoints() + sampleMetricData := testdata.GenerateMetricsAllTypesWithSampleDatapoints() attrs := sampleMetricData.ResourceMetrics().At(0).Resource().Attributes() attrs.PutStr(conventions.AttributeHostName, "host1") attrs.PutInt(conventions.AttributeProcessPID, 123) diff --git a/pkg/translator/opencensus/oc_to_metrics_test.go b/pkg/translator/opencensus/oc_to_metrics_test.go index 6fb48154a5d9..0dee4df36da8 100644 --- a/pkg/translator/opencensus/oc_to_metrics_test.go +++ b/pkg/translator/opencensus/oc_to_metrics_test.go @@ -115,7 +115,7 @@ func TestOCToMetrics(t *testing.T) { generateOCTestMetricDoubleSummary(), }, }, - internal: testdata.GeneratMetricsAllTypesWithSampleDatapoints(), + internal: testdata.GenerateMetricsAllTypesWithSampleDatapoints(), }, } From 7e599dfbb7a7fee0e8bb6628db86946abbad36b1 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 21:30:39 -0500 Subject: [PATCH 152/450] spelling: getting Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- confmap/provider/secretsmanagerprovider/provider.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confmap/provider/secretsmanagerprovider/provider.go b/confmap/provider/secretsmanagerprovider/provider.go index 50c8fef263de..e22fbd0c2dd1 100644 --- a/confmap/provider/secretsmanagerprovider/provider.go +++ b/confmap/provider/secretsmanagerprovider/provider.go @@ -73,7 +73,7 @@ func (provider *provider) Retrieve(ctx context.Context, uri string, _ confmap.Wa response, err := provider.client.GetSecretValue(ctx, input) if err != nil { - return nil, fmt.Errorf("error gtting secret: %w", err) + return nil, fmt.Errorf("error getting secret: %w", err) } if response.SecretString == nil { From b37efe305602ea03a534ec47c94eab654b4b4a34 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 3 Jan 2025 09:45:04 -0500 Subject: [PATCH 153/450] spelling: github Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .github/workflows/build-and-test.yml | 2 +- .github/workflows/telemetrygen.yml | 4 ++-- CHANGELOG.md | 4 ++-- CONTRIBUTING.md | 6 +++--- cmd/githubgen/README.md | 2 +- cmd/githubgen/codeowners.go | 10 +++++----- cmd/githubgen/main.go | 8 ++++---- cmd/telemetrygen/README.md | 2 +- receiver/windowsperfcountersreceiver/README.md | 2 +- 9 files changed, 20 insertions(+), 20 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index d830458da194..c7c06ab4cd71 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -615,7 +615,7 @@ jobs: - name: Set Release Tag id: github_tag run: ./.github/workflows/scripts/set_release_tag.sh - - name: Create Github Release + - name: Create GitHub Release run: | gh release create $RELEASE_TAG -t $RELEASE_TAG -n "The OpenTelemetry Collector Contrib contains everything in the [opentelemetry-collector release](https://github.com/open-telemetry/opentelemetry-collector/releases/tag/$RELEASE_TAG), be sure to check the release notes there as well." env: diff --git a/.github/workflows/telemetrygen.yml b/.github/workflows/telemetrygen.yml index b80245e3c62f..a1294b66a2b4 100644 --- a/.github/workflows/telemetrygen.yml +++ b/.github/workflows/telemetrygen.yml @@ -95,7 +95,7 @@ jobs: GOOS=linux GOARCH=amd64 make telemetrygen GOOS=linux GOARCH=s390x make telemetrygen cp bin/telemetrygen_* cmd/telemetrygen/ - - name: Push telemetrygen to Github packages + - name: Push telemetrygen to GitHub packages uses: docker/build-push-action@v6 with: context: cmd/telemetrygen @@ -143,7 +143,7 @@ jobs: GOOS=linux GOARCH=amd64 make telemetrygen GOOS=linux GOARCH=s390x make telemetrygen cp bin/telemetrygen_* cmd/telemetrygen/ - - name: Push telemetrygen to Github packages + - name: Push telemetrygen to GitHub packages uses: docker/build-push-action@v6 with: context: cmd/telemetrygen diff --git a/CHANGELOG.md b/CHANGELOG.md index 82d3f687874d..4d26e4140a84 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4250,7 +4250,7 @@ This release fixes CVE-2024-42368 on the `bearerauthtokenextension` (#34516) - `datadogprocessor`: Now that the Datadog processor is part of the official contrib distribution, it has been moved to the beta stability level. (#17862) - `kafkareceiver`: Prevent offset commit failures and connection issues by ensuring that sessions are quickly completed after consumer group rebalances. (#17312) - `lokiexporter`: Added QueueSettings validation into Config Validate method (#7841) -- `telemetrygen`: Moves tracegen functionality to the telemetrygen traces subcommand, as well as the existing Github actions (#9597) +- `telemetrygen`: Moves tracegen functionality to the telemetrygen traces subcommand, as well as the existing GitHub actions (#9597) - `pkg/ottl`: Add new `cache` path to all contexts which can be used as temporary cache during complex transformations (#16994) - `pkg/pdatatest`: Metric support compare exemplar (#17580) - `processor/probabilisticsampler`: Implement the FNV hash library for the probabilistic sampler. (#16456) @@ -6638,7 +6638,7 @@ The OpenTelemetry Collector Contrib contains everything in the [opentelemetry-co ### 💡 Enhancements 💡 -- Enabled Dependabot for Github Actions (#3543) +- Enabled Dependabot for GitHub Actions (#3543) - Change obsreport helpers for receivers to use the new pattern created in Collector (#3439,#3443,#3449,#3504,#3521,#3548) - `datadog` exporter: - Add logging for unknown or unsupported metric types (#3421) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 465a4644b67c..c2f346c3135f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -248,7 +248,7 @@ Following these steps for contributing additional metrics to existing receivers. - Run `cd receiver/redisreceiver` - Run `go generate ./...` - Review the changed files and merge the changes into your forked repo. -- Create PR from Github web console following the instructions above. +- Create PR from GitHub web console following the instructions above. ## General Recommendations Below are some recommendations that apply to typical components. These are not rigid rules and there are exceptions but @@ -340,9 +340,9 @@ Be sure to tag the existing Code Owners, if any, within the PR to ensure they re ### Emeritus roles -Contributors who are unable to meet the responsibilities of their role are encouraged to move to [emeritus](https://github.com/open-telemetry/community/blob/main/guides/contributor/membership.md#emeritus-maintainerapprovertriager). In case of long temporary absences, contributors are encouraged to let maintainers know on the CNCF Slack (e.g. on the #otel-collector-dev channel or privately via DM) and to mark themselves as 'Busy' on Github. +Contributors who are unable to meet the responsibilities of their role are encouraged to move to [emeritus](https://github.com/open-telemetry/community/blob/main/guides/contributor/membership.md#emeritus-maintainerapprovertriager). In case of long temporary absences, contributors are encouraged to let maintainers know on the CNCF Slack (e.g. on the #otel-collector-dev channel or privately via DM) and to mark themselves as 'Busy' on GitHub. -In the event that a contributor becomes inactive without prior notice, the maintainers will attempt to contact the contributor via both Github and the CNCF Slack to confirm their status. After two weeks, if the contributor is an approver or maintainer, they may be removed from the Github review auto-assignment. +In the event that a contributor becomes inactive without prior notice, the maintainers will attempt to contact the contributor via both GitHub and the CNCF Slack to confirm their status. After two weeks, if the contributor is an approver or maintainer, they may be removed from the GitHub review auto-assignment. If the contributor does not respond within a period of two months, they may be moved to emeritus status at the discretion of the maintainers, following a majority vote among the maintainers (possibly excluding the contributor in question). diff --git a/cmd/githubgen/README.md b/cmd/githubgen/README.md index fa81f646815f..90d1e1165fd3 100644 --- a/cmd/githubgen/README.md +++ b/cmd/githubgen/README.md @@ -17,7 +17,7 @@ $> cd cmd/githubgen && $(GOCMD) install . $> GITHUB_TOKEN= githubgen --folder . [--allowlist cmd/githubgen/allowlist.txt] ``` -## Checking codeowners against OpenTelemetry membership via Github API +## Checking codeowners against OpenTelemetry membership via GitHub API To authenticate, set the environment variable `GITHUB_TOKEN` to a PAT token. If a PAT is not available you can use the `--skipgithub` flag to avoid checking for membership in the GitHub organization. diff --git a/cmd/githubgen/codeowners.go b/cmd/githubgen/codeowners.go index 615429be9c57..834566b1a2b1 100644 --- a/cmd/githubgen/codeowners.go +++ b/cmd/githubgen/codeowners.go @@ -71,7 +71,7 @@ const distributionCodeownersHeader = ` ` type codeownersGenerator struct { - skipGithub bool + skipGitHub bool } func (cg codeownersGenerator) generate(data *githubData) error { @@ -92,7 +92,7 @@ func (cg codeownersGenerator) generate(data *githubData) error { } var missingCodeowners []string var duplicateCodeowners []string - members, err := cg.getGithubMembers() + members, err := cg.getGitHubMembers() if err != nil { return err } @@ -110,7 +110,7 @@ func (cg codeownersGenerator) generate(data *githubData) error { duplicateCodeowners = append(duplicateCodeowners, codeowner) } } - if len(missingCodeowners) > 0 && !cg.skipGithub { + if len(missingCodeowners) > 0 && !cg.skipGitHub { sort.Strings(missingCodeowners) return fmt.Errorf("codeowners are not members: %s", strings.Join(missingCodeowners, ", ")) } @@ -190,8 +190,8 @@ LOOP: return nil } -func (cg codeownersGenerator) getGithubMembers() (map[string]struct{}, error) { - if cg.skipGithub { +func (cg codeownersGenerator) getGitHubMembers() (map[string]struct{}, error) { + if cg.skipGitHub { // don't try to get organization members if no token is expected return map[string]struct{}{}, nil } diff --git a/cmd/githubgen/main.go b/cmd/githubgen/main.go index 10e87c4ecfc3..756909a4837a 100644 --- a/cmd/githubgen/main.go +++ b/cmd/githubgen/main.go @@ -24,7 +24,7 @@ type generator interface { generate(data *githubData) error } -// Generates files specific to Github according to status metadata: +// Generates files specific to GitHub according to status metadata: // .github/CODEOWNERS // .github/ALLOWLIST // .github/ISSUE_TEMPLATES/*.yaml (list of components) @@ -32,7 +32,7 @@ type generator interface { func main() { folder := flag.String("folder", ".", "folder investigated for codeowners") allowlistFilePath := flag.String("allowlist", "cmd/githubgen/allowlist.txt", "path to a file containing an allowlist of members outside the OpenTelemetry organization") - skipGithubCheck := flag.Bool("skipgithub", false, "skip checking GitHub membership check for CODEOWNERS generator") + skipGitHubCheck := flag.Bool("skipgithub", false, "skip checking GitHub membership check for CODEOWNERS generator") flag.Parse() var generators []generator for _, arg := range flag.Args() { @@ -40,7 +40,7 @@ func main() { case "issue-templates": generators = append(generators, issueTemplatesGenerator{}) case "codeowners": - generators = append(generators, codeownersGenerator{skipGithub: *skipGithubCheck}) + generators = append(generators, codeownersGenerator{skipGitHub: *skipGitHubCheck}) case "distributions": generators = append(generators, distributionsGenerator{}) default: @@ -48,7 +48,7 @@ func main() { } } if len(generators) == 0 { - generators = []generator{issueTemplatesGenerator{}, codeownersGenerator{skipGithub: *skipGithubCheck}} + generators = []generator{issueTemplatesGenerator{}, codeownersGenerator{skipGitHub: *skipGitHubCheck}} } if err := run(*folder, *allowlistFilePath, generators); err != nil { log.Fatal(err) diff --git a/cmd/telemetrygen/README.md b/cmd/telemetrygen/README.md index e72ebc833a27..3e31cc4875da 100644 --- a/cmd/telemetrygen/README.md +++ b/cmd/telemetrygen/README.md @@ -32,7 +32,7 @@ You can build locally the Docker image with: make docker-telemetrygen ``` -Using github actions, we also push a docker image on commit to main or on release to this [Github docker registry](https://github.com/orgs/open-telemetry/packages/container/package/opentelemetry-collector-contrib%2Ftelemetrygen). +Using github actions, we also push a docker image on commit to main or on release to this [GitHub docker registry](https://github.com/orgs/open-telemetry/packages/container/package/opentelemetry-collector-contrib%2Ftelemetrygen). ## Running 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]. From 97d1364754793e3428e7922c1e21b73b0e813522 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:15:17 -0500 Subject: [PATCH 154/450] spelling: googlemanagedprometheus Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- exporter/googlemanagedprometheusexporter/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d26e4140a84..199b99422217 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1062,7 +1062,7 @@ This release fixes CVE-2024-42368 on the `bearerauthtokenextension` (#34516) "vcenter.resource_pool.memory.swapped", "vcenter.resource_pool.memory.ballooned", and "vcenter.resource_pool.memory.granted". The "resourcePoolMemoryUsageAttribute" has also been bumped up to release v.0.107.0 -- `googlemanagedprometheusexporter`: Fix typo in `exporter.googlemanagedpromethues.intToDouble` feature gate (#34232) +- `googlemanagedprometheusexporter`: Fix typo in `exporter.googlemanagedprometheus.intToDouble` feature gate (#34232) ### 🚩 Deprecations 🚩 diff --git a/exporter/googlemanagedprometheusexporter/README.md b/exporter/googlemanagedprometheusexporter/README.md index a7ca3526624c..81e6aabec2fe 100644 --- a/exporter/googlemanagedprometheusexporter/README.md +++ b/exporter/googlemanagedprometheusexporter/README.md @@ -208,7 +208,7 @@ INT or DOUBLE, attempting to write the other type will fail with the error above. This commonly occurs when a metric's value type has changed, or when a mix of INT and DOUBLE for the same metric are being written to the same project. The recommended way to fix this is to convert all metrics to DOUBLE to -prevent collisions using the `exporter.googlemanagedpromethues.intToDouble` +prevent collisions using the `exporter.googlemanagedprometheus.intToDouble` feature gate, documented above. Once you enable the feature gate, you will likely see new errors indicating From 5f3f5e429a0918e17cade942af59b17c6be6de6e Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 3 Jan 2025 09:46:13 -0500 Subject: [PATCH 155/450] spelling: greater Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../internal/aggregator/explicithistogram.go | 2 +- exporter/loadbalancingexporter/consistent_hashing.go | 4 ++-- internal/filter/filterlog/severity_matcher.go | 2 +- pkg/stanza/docs/operators/file_input.md | 2 +- pkg/stanza/operator/parser/regex/cache_test.go | 2 +- processor/probabilisticsamplerprocessor/logsprocessor_test.go | 2 +- processor/tailsamplingprocessor/README.md | 2 +- processor/tailsamplingprocessor/config.go | 4 ++-- .../tailsamplingprocessor/internal/sampling/composite_test.go | 2 +- processor/tailsamplingprocessor/internal/sampling/latency.go | 2 +- receiver/datadogreceiver/internal/translator/sketches.go | 2 +- .../githubreceiver/internal/scraper/githubscraper/config.go | 2 +- 12 files changed, 14 insertions(+), 14 deletions(-) diff --git a/connector/signaltometricsconnector/internal/aggregator/explicithistogram.go b/connector/signaltometricsconnector/internal/aggregator/explicithistogram.go index 23ce09c5f6ca..cb33ad9439de 100644 --- a/connector/signaltometricsconnector/internal/aggregator/explicithistogram.go +++ b/connector/signaltometricsconnector/internal/aggregator/explicithistogram.go @@ -29,7 +29,7 @@ type explicitHistogramDP struct { // counts represents the count values of histogram for each bucket. The sum of // counts across all buckets must be equal to the count variable. The length of - // counts must be one greather than the length of bounds slice. + // counts must be one greater than the length of bounds slice. counts []uint64 } diff --git a/exporter/loadbalancingexporter/consistent_hashing.go b/exporter/loadbalancingexporter/consistent_hashing.go index eda24bb2927e..faf71d1f515e 100644 --- a/exporter/loadbalancingexporter/consistent_hashing.go +++ b/exporter/loadbalancingexporter/consistent_hashing.go @@ -10,7 +10,7 @@ import ( const ( maxPositions uint32 = 36000 // 360 degrees with two decimal places - defaultWeight int = 100 // the number of points in the ring for each entry. For better results, it should be higher than 100. + defaultWeight int = 100 // the number of points in the ring for each entry. For better results, it should be greater than 100. ) // position represents a specific angle in the ring. @@ -79,7 +79,7 @@ func bsearch(pos position, left []ringItem, right []ringItem) ringItem { return left[0] } - // if the requested position is higher than the highest in the left, the item is in the right side + // if the requested position is greater than the highest in the left, the item is in the right side if pos > left[len(left)-1].pos { size := len(right) if size == 1 { diff --git a/internal/filter/filterlog/severity_matcher.go b/internal/filter/filterlog/severity_matcher.go index 89fecfcbc569..3277416cad28 100644 --- a/internal/filter/filterlog/severity_matcher.go +++ b/internal/filter/filterlog/severity_matcher.go @@ -7,7 +7,7 @@ import ( "go.opentelemetry.io/collector/pdata/plog" ) -// severtiyNumberMatcher is a Matcher that matches if the input log record has a severity higher than +// severtiyNumberMatcher is a Matcher that matches if the input log record has a severity greater than // the minSeverityNumber. type severityNumberMatcher struct { matchUndefined bool diff --git a/pkg/stanza/docs/operators/file_input.md b/pkg/stanza/docs/operators/file_input.md index 77be99e986f5..44688ec7ddd3 100644 --- a/pkg/stanza/docs/operators/file_input.md +++ b/pkg/stanza/docs/operators/file_input.md @@ -59,7 +59,7 @@ Also refer to [recombine](../operators/recombine.md) operator for merging events ### File rotation When files are rotated and its new names are no longer captured in `include` pattern (i.e. tailing symlink files), it could result in data loss. -To avoid the data loss, choose move/create rotation method and set `max_concurrent_files` higher than the twice of the number of files to tail. +To avoid the data loss, choose move/create rotation method and set `max_concurrent_files` greater than the twice of the number of files to tail. ### Supported encodings diff --git a/pkg/stanza/operator/parser/regex/cache_test.go b/pkg/stanza/operator/parser/regex/cache_test.go index d8f3a166ec78..16990cbc6f0e 100644 --- a/pkg/stanza/operator/parser/regex/cache_test.go +++ b/pkg/stanza/operator/parser/regex/cache_test.go @@ -215,7 +215,7 @@ func TestLimiter(t *testing.T) { func TestThrottledLimiter(t *testing.T) { const maxVal = uint64(3) - // Limiter with a count higher than the max, which will force + // Limiter with a count greater than the max, which will force // it to be throttled by default. Also note that the init method // has not been called yet, so the reset go routine is not running count := &atomic.Uint64{} diff --git a/processor/probabilisticsamplerprocessor/logsprocessor_test.go b/processor/probabilisticsamplerprocessor/logsprocessor_test.go index 7f675d80a09e..510ff038c92e 100644 --- a/processor/probabilisticsamplerprocessor/logsprocessor_test.go +++ b/processor/probabilisticsamplerprocessor/logsprocessor_test.go @@ -354,7 +354,7 @@ func TestLogsSamplingState(t *testing.T) { tid: mustParseTID("fefefefefefefefefefefefefefefefe"), attrs: map[string]any{ "sampling.threshold": "c", // Corresponds with 25% - "prio": 37, // Lower than 50, higher than 25 + "prio": 37, // Lower than 50, greater than 25 }, sampled: true, adjCount: 4, diff --git a/processor/tailsamplingprocessor/README.md b/processor/tailsamplingprocessor/README.md index 0c6c9978f588..98ac624d014a 100644 --- a/processor/tailsamplingprocessor/README.md +++ b/processor/tailsamplingprocessor/README.md @@ -49,7 +49,7 @@ The following configuration options can also be modified: - `decision_cache`: Options for configuring caches for sampling decisions. You may want to vary the size of these caches depending on how many "keep" vs "drop" decisions you expect from your policies. For example, you may allocate a larger `non_sampled_cache_size` if you expect most traces to be dropped. - Additionally, if using, configure this as much higher than `num_traces` so decisions for trace IDs are kept + Additionally, if using, configure this as much greater than `num_traces` so decisions for trace IDs are kept longer than the span data for the trace. - `sampled_cache_size` (default = 0): Configures amount of trace IDs to be kept in an LRU cache, persisting the "keep" decisions for traces that may have already been released from memory. diff --git a/processor/tailsamplingprocessor/config.go b/processor/tailsamplingprocessor/config.go index 1b18c039fb00..4868f017de1c 100644 --- a/processor/tailsamplingprocessor/config.go +++ b/processor/tailsamplingprocessor/config.go @@ -227,12 +227,12 @@ type OTTLConditionCfg struct { type DecisionCacheConfig struct { // SampledCacheSize specifies the size of the cache that holds the sampled trace IDs. // This value will be the maximum amount of trace IDs that the cache can hold before overwriting previous IDs. - // For effective use, this value should be at least an order of magnitude higher than Config.NumTraces. + // For effective use, this value should be at least an order of magnitude greater than Config.NumTraces. // If left as default 0, a no-op DecisionCache will be used. SampledCacheSize int `mapstructure:"sampled_cache_size"` // NonSampledCacheSize specifies the size of the cache that holds the non-sampled trace IDs. // This value will be the maximum amount of trace IDs that the cache can hold before overwriting previous IDs. - // For effective use, this value should be at least an order of magnitude higher than Config.NumTraces. + // For effective use, this value should be at least an order of magnitude greater than Config.NumTraces. // If left as default 0, a no-op DecisionCache will be used. NonSampledCacheSize int `mapstructure:"non_sampled_cache_size"` } diff --git a/processor/tailsamplingprocessor/internal/sampling/composite_test.go b/processor/tailsamplingprocessor/internal/sampling/composite_test.go index c323fe849946..7c57d9ce66b8 100644 --- a/processor/tailsamplingprocessor/internal/sampling/composite_test.go +++ b/processor/tailsamplingprocessor/internal/sampling/composite_test.go @@ -119,7 +119,7 @@ func TestCompositeEvaluator_OverflowAlwaysSampled(t *testing.T) { decision, err = c.Evaluate(context.Background(), traceID, trace) require.NoError(t, err, "Failed to evaluate composite policy: %v", err) - // The first policy fails as the tag value is higher than the range set where as the second policy is AlwaysSample, so the decision should be Sampled. + // The first policy fails as the tag value is greater than the range set where as the second policy is AlwaysSample, so the decision should be Sampled. expected = Sampled assert.Equal(t, expected, decision) } diff --git a/processor/tailsamplingprocessor/internal/sampling/latency.go b/processor/tailsamplingprocessor/internal/sampling/latency.go index be87f47165c9..2b24ba3a2496 100644 --- a/processor/tailsamplingprocessor/internal/sampling/latency.go +++ b/processor/tailsamplingprocessor/internal/sampling/latency.go @@ -20,7 +20,7 @@ type latency struct { var _ PolicyEvaluator = (*latency)(nil) -// NewLatency creates a policy evaluator sampling traces with a duration higher than a configured threshold +// NewLatency creates a policy evaluator sampling traces with a duration greater than a configured threshold func NewLatency(settings component.TelemetrySettings, thresholdMs int64, upperThresholdMs int64) PolicyEvaluator { return &latency{ logger: settings.Logger, diff --git a/receiver/datadogreceiver/internal/translator/sketches.go b/receiver/datadogreceiver/internal/translator/sketches.go index 6af96fc15596..57a1480367af 100644 --- a/receiver/datadogreceiver/internal/translator/sketches.go +++ b/receiver/datadogreceiver/internal/translator/sketches.go @@ -152,7 +152,7 @@ func mapSketchBucketsToHistogramBuckets(sketchKeys []int32, sketchCounts []uint3 continue } if sketchKeys[i] >= maxIndex { - // This should not happen, as sketches that contain bucket(s) with an index higher than the max + // This should not happen, as sketches that contain bucket(s) with an index greater than the max // limit should have already been discarded. However, if there happens to be an index > maxIndex, // it can cause an infinite loop within the below inner for loop on some operating systems. Therefore, // throw an error for sketches that have an index above the max limit diff --git a/receiver/githubreceiver/internal/scraper/githubscraper/config.go b/receiver/githubreceiver/internal/scraper/githubscraper/config.go index c8b767b97c29..554065f81bf1 100644 --- a/receiver/githubreceiver/internal/scraper/githubscraper/config.go +++ b/receiver/githubreceiver/internal/scraper/githubscraper/config.go @@ -10,7 +10,7 @@ import ( "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/githubreceiver/internal/metadata" ) -// Config relating to Github Metric Scraper. +// Config relating to GitHub Metric Scraper. type Config struct { metadata.MetricsBuilderConfig `mapstructure:",squash"` confighttp.ClientConfig `mapstructure:",squash"` From 6d85ecd858da7b826e0833f88ea24c43ab15bee6 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:15:23 -0500 Subject: [PATCH 156/450] spelling: groupbyattrsprocessor Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 199b99422217..8938b8041040 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5895,7 +5895,7 @@ https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/9278. - `honeycombexporter`: Add validation for `sending_queue` setting (#8113) - `routingprocessor`: Expand error handling on failure to build exporters (#8125) - `skywalkingreceiver`: Add new skywalking receiver component folder and structure (#8107) -- `groupbyattrsprocesor`: Allow empty keys, which allows to use the processor for compaction (#7793) +- `groupbyattrsprocessor`: Allow empty keys, which allows to use the processor for compaction (#7793) - `datadogexporter`: Add rbac to example k8s manifest file (#8186) - `splunkhecexporter`: Add validation for `sending_queue` setting (#8256) From c384ae80f4cdbe5d6b481aca73ff61e842bcc252 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 21:30:28 -0500 Subject: [PATCH 157/450] spelling: grouping Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/stanza/adapter/integration_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/stanza/adapter/integration_test.go b/pkg/stanza/adapter/integration_test.go index 51d7676f355c..102ab7a33b02 100644 --- a/pkg/stanza/adapter/integration_test.go +++ b/pkg/stanza/adapter/integration_test.go @@ -100,7 +100,7 @@ func BenchmarkEmitterToConsumer(b *testing.B) { } } -func BenchmarkEmitterToConsumerScopeGroupping(b *testing.B) { +func BenchmarkEmitterToConsumerScopeGrouping(b *testing.B) { const ( entryCount = 1_000_000 hostsCount = 2 From beae6f70d25a6fb04bfdd0b1c4992b990828143e Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 21:34:37 -0500 Subject: [PATCH 158/450] spelling: handler Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/azureblobreceiver/blobeventhandler_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/azureblobreceiver/blobeventhandler_test.go b/receiver/azureblobreceiver/blobeventhandler_test.go index 9ccf1b30c1b8..081444b2985f 100644 --- a/receiver/azureblobreceiver/blobeventhandler_test.go +++ b/receiver/azureblobreceiver/blobeventhandler_test.go @@ -30,7 +30,7 @@ func TestNewBlobEventHandler(t *testing.T) { assert.Equal(t, blobClient, blobEventHandler.blobClient) } -func TestNewMessageHangdler(t *testing.T) { +func TestNewMessageHandler(t *testing.T) { blobClient := newMockBlobClient() blobEventHandler := getBlobEventHandler(t, blobClient) From 36dd1a30edfe9bba6ed9b0ac97107b1547e53848 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 21:34:54 -0500 Subject: [PATCH 159/450] spelling: hardware Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../internal/scraper/loadscraper/load_scraper_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/hostmetricsreceiver/internal/scraper/loadscraper/load_scraper_test.go b/receiver/hostmetricsreceiver/internal/scraper/loadscraper/load_scraper_test.go index 913734e7aa6e..91fa42fc5d8b 100644 --- a/receiver/hostmetricsreceiver/internal/scraper/loadscraper/load_scraper_test.go +++ b/receiver/hostmetricsreceiver/internal/scraper/loadscraper/load_scraper_test.go @@ -179,7 +179,7 @@ func assertCompareAveragePerCPU(t *testing.T, average pmetric.Metric, standard p // For hardware with only 1 cpu, results must be very close assert.InDelta(t, valAverage, valStandard, 0.1) } else { - // For hardward with multiple CPU, average per cpu is fatally less than standard + // For hardware with multiple CPU, average per cpu is fatally less than standard assert.Less(t, valAverage, valStandard) } } From 7fc5dfd28148a4d769e2caed08f8391848342ae8 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 3 Jan 2025 09:55:33 -0500 Subject: [PATCH 160/450] spelling: has Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- internal/otelarrow/compression/zstd/mru_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/otelarrow/compression/zstd/mru_test.go b/internal/otelarrow/compression/zstd/mru_test.go index d21038eb1d6d..0f60de2c7fb3 100644 --- a/internal/otelarrow/compression/zstd/mru_test.go +++ b/internal/otelarrow/compression/zstd/mru_test.go @@ -74,7 +74,7 @@ func TestMRUReset(t *testing.T) { }) require.Equal(t, 1, m.Size()) - // Ensure the monotonic clock has has advanced before resetting. + // Ensure the monotonic clock has advanced before resetting. for time.Since(time.Time(g)) <= 0 { time.Sleep(10 * time.Millisecond) } From ddb6c82bf5ecb38248e026ff983fc0c14adfcc16 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 21:35:33 -0500 Subject: [PATCH 161/450] spelling: healthcheck Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG-API.md | 2 +- CHANGELOG.md | 2 +- extension/healthcheckv2extension/internal/http/config.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG-API.md b/CHANGELOG-API.md index 2824fa9fd0a0..5baa3b9addfc 100644 --- a/CHANGELOG-API.md +++ b/CHANGELOG-API.md @@ -532,7 +532,7 @@ If you are looking for user-facing changes, check out [CHANGELOG.md](./CHANGELOG ### 💡 Enhancements 💡 - `changelog`: Generate separate changelogs for end users and package consumers (#24014) -- `splunkhecexporter`: Add heartbeat check while startup and new config param, heartbeat/startup (defaults to false). This is different than the healtcheck_startup, as the latter doesn't take token or index into account. (#24411) +- `splunkhecexporter`: Add heartbeat check while startup and new config param, heartbeat/startup (defaults to false). This is different than the healthcheck_startup, as the latter doesn't take token or index into account. (#24411) - `k8sclusterreceiver`: Allows disabling metrics and resource attributes (#24568) - `cmd/mdatagen`: Avoid reusing the same ResourceBuilder instance for multiple ResourceMetrics (#24762) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8938b8041040..fafae6914f3d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3014,7 +3014,7 @@ This release fixes CVE-2024-42368 on the `bearerauthtokenextension` (#34516) This allows OTTL to pass Converters themselves as a parameter so they can be executed within the function. - `resourcedetectionprocessor`: GCP resource detection processor can automatically add `gcp.gce.instance.hostname` and `gcp.gce.instance.name` attributes. (#24598) -- `splunkhecexporter`: Add heartbeat check while startup and new config param, heartbeat/startup (defaults to false). This is different than the healtcheck_startup, as the latter doesn't take token or index into account. (#24411) +- `splunkhecexporter`: Add heartbeat check while startup and new config param, heartbeat/startup (defaults to false). This is different than the healthcheck_startup, as the latter doesn't take token or index into account. (#24411) - `hostmetricsreceiver`: Report logical and physical number of CPUs as metric. (#22099) Use the `system.cpu.logical.count::enabled` and `system.cpu.physical.count::enabled` flags to enable them diff --git a/extension/healthcheckv2extension/internal/http/config.go b/extension/healthcheckv2extension/internal/http/config.go index f2445bebe9ae..7421fc4ebcc9 100644 --- a/extension/healthcheckv2extension/internal/http/config.go +++ b/extension/healthcheckv2extension/internal/http/config.go @@ -53,7 +53,7 @@ type ResponseBodyConfig struct { } // CheckCollectorPipelineConfig is legacy config that is currently ignored as the -// `check_collector_pipeline` feature in the original healtcheck extension was not working as +// `check_collector_pipeline` feature in the original healthcheck extension was not working as // expected. This is here for backwards compatibility. type CheckCollectorPipelineConfig struct { // Enabled indicates whether to not enable collector pipeline check. From 713de2a1452d57c1829bd1d67960f397e567e9a3 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 21:35:55 -0500 Subject: [PATCH 162/450] spelling: heartbeat Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- extension/sumologicextension/extension.go | 2 +- extension/sumologicextension/extension_test.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/extension/sumologicextension/extension.go b/extension/sumologicextension/extension.go index cb7d2c173f4a..e8e59e6c7cea 100644 --- a/extension/sumologicextension/extension.go +++ b/extension/sumologicextension/extension.go @@ -578,7 +578,7 @@ func (se *SumologicExtension) heartbeatLoop() { cancel() }() - se.logger.Info("Heartbeat loop initialized. Starting to send hearbeat requests") + se.logger.Info("Heartbeat loop initialized. Starting to send heartbeat requests") timer := time.NewTimer(se.conf.HeartBeatInterval) for { select { diff --git a/extension/sumologicextension/extension_test.go b/extension/sumologicextension/extension_test.go index 7fb0177d0c30..58e3b169a246 100644 --- a/extension/sumologicextension/extension_test.go +++ b/extension/sumologicextension/extension_test.go @@ -766,7 +766,7 @@ func TestCollectorCheckingCredentialsFoundInLocalStorage(t *testing.T) { reqNum := atomic.AddInt32(&reqCount, 1) switch reqNum { - // heatbeat + // heartbeat case 1: assert.NotEqual(t, registerURL, req.URL.Path, "collector shouldn't call the register API when credentials locally retrieved") @@ -813,7 +813,7 @@ func TestCollectorCheckingCredentialsFoundInLocalStorage(t *testing.T) { reqNum := atomic.AddInt32(&reqCount, 1) switch reqNum { - // failing heatbeat + // failing heartbeat case 1: assert.NotEqual(t, registerURL, req.URL.Path, "collector shouldn't call the register API when credentials locally retrieved") @@ -829,7 +829,7 @@ func TestCollectorCheckingCredentialsFoundInLocalStorage(t *testing.T) { w.WriteHeader(http.StatusInternalServerError) - // successful heatbeat + // successful heartbeat case 2: assert.NotEqual(t, registerURL, req.URL.Path, "collector shouldn't call the register API when credentials locally retrieved") @@ -876,7 +876,7 @@ func TestCollectorCheckingCredentialsFoundInLocalStorage(t *testing.T) { reqNum := atomic.AddInt32(&reqCount, 1) switch reqNum { - // failing heatbeat + // failing heartbeat case 1: assert.NotEqual(t, registerURL, req.URL.Path, "collector shouldn't call the register API when credentials locally retrieved") From 3404562805c8c26318fc0e9f2ed31a2cd1c3920e Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:34:21 -0500 Subject: [PATCH 163/450] spelling: here's Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/syslogexporter/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/syslogexporter/README.md b/exporter/syslogexporter/README.md index da84b645e1ff..a54e4b3f2bc3 100644 --- a/exporter/syslogexporter/README.md +++ b/exporter/syslogexporter/README.md @@ -94,7 +94,7 @@ And here's the output message based on the above log record: <34>1 2003-10-11T22:14:15.003Z mymachine.example.com su - - - 'su root' failed for lonvick on /dev/pts/8 ``` -Here'a another example, this includes the structured data and other attributes: +Here's another example, this includes the structured data and other attributes: ```json { From 1364abcf5f6b1e9d23e11d61afb284e3b257bf06 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:34:42 -0500 Subject: [PATCH 164/450] spelling: histogram Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- connector/countconnector/connector_test.go | 2 +- connector/sumconnector/connector_test.go | 2 +- exporter/awsemfexporter/emf_exporter_test.go | 4 ++-- exporter/datadogexporter/metrics_exporter_test.go | 4 ++-- receiver/prometheusreceiver/internal/util_test.go | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/connector/countconnector/connector_test.go b/connector/countconnector/connector_test.go index 44ad48f8e9a5..53a6cd8eb920 100644 --- a/connector/countconnector/connector_test.go +++ b/connector/countconnector/connector_test.go @@ -288,7 +288,7 @@ func TestTracesToMetrics(t *testing.T) { // - (no attributes) // // - The size metrics have the following sets of types: -// - int gauge, double gauge, int sum, double sum, historgram, summary +// - int gauge, double gauge, int sum, double sum, histogram, summary // // - The four data points on each metric have the following sets of attributes: // - datapoint.required: foo, datapoint.optional: bar diff --git a/connector/sumconnector/connector_test.go b/connector/sumconnector/connector_test.go index d37129de7c02..669b0fcbdc88 100644 --- a/connector/sumconnector/connector_test.go +++ b/connector/sumconnector/connector_test.go @@ -279,7 +279,7 @@ func TestTracesToMetrics(t *testing.T) { // - (no attributes) // // - The size metrics have the following sets of types: -// - int gauge, double gauge, int sum, double sum, historgram, summary +// - int gauge, double gauge, int sum, double sum, histogram, summary // // - The four data points on each metric have the following sets of attributes: // - datapoint.required: foo, datapoint.optional: bar diff --git a/exporter/awsemfexporter/emf_exporter_test.go b/exporter/awsemfexporter/emf_exporter_test.go index a031d3d2b160..f57b941891c7 100644 --- a/exporter/awsemfexporter/emf_exporter_test.go +++ b/exporter/awsemfexporter/emf_exporter_test.go @@ -71,7 +71,7 @@ func TestConsumeMetricsWithNaNValues(t *testing.T) { generateFunc func(string) pmetric.Metrics }{ { - "histograme-with-nan", + "histogram-with-nan", generateTestHistogramMetricWithNaNs, }, { "gauge-with-nan", @@ -110,7 +110,7 @@ func TestConsumeMetricsWithInfValues(t *testing.T) { generateFunc func(string) pmetric.Metrics }{ { - "histograme-with-inf", + "histogram-with-inf", generateTestHistogramMetricWithInfs, }, { "gauge-with-inf", diff --git a/exporter/datadogexporter/metrics_exporter_test.go b/exporter/datadogexporter/metrics_exporter_test.go index 95935fd053a4..dcad0d25e19d 100644 --- a/exporter/datadogexporter/metrics_exporter_test.go +++ b/exporter/datadogexporter/metrics_exporter_test.go @@ -344,7 +344,7 @@ func Test_metricsExporter_PushMetricsData(t *testing.T) { }, } for _, tt := range tests { - t.Run(fmt.Sprintf("kind=%s,histgramMode=%s", tt.source.Kind, tt.histogramMode), func(t *testing.T) { + t.Run(fmt.Sprintf("kind=%s,histogramMode=%s", tt.source.Kind, tt.histogramMode), func(t *testing.T) { seriesRecorder := &testutil.HTTPRequestRecorder{Pattern: testutil.MetricV2Endpoint} sketchRecorder := &testutil.HTTPRequestRecorder{Pattern: testutil.SketchesMetricEndpoint} server := testutil.DatadogServerMock( @@ -788,7 +788,7 @@ func Test_metricsExporter_PushMetricsData_Zorkian(t *testing.T) { }, } for _, tt := range tests { - t.Run(fmt.Sprintf("kind=%s,histgramMode=%s", tt.source.Kind, tt.histogramMode), func(t *testing.T) { + t.Run(fmt.Sprintf("kind=%s,histogramMode=%s", tt.source.Kind, tt.histogramMode), func(t *testing.T) { seriesRecorder := &testutil.HTTPRequestRecorder{Pattern: testutil.MetricV1Endpoint} sketchRecorder := &testutil.HTTPRequestRecorder{Pattern: testutil.SketchesMetricEndpoint} server := testutil.DatadogServerMock( diff --git a/receiver/prometheusreceiver/internal/util_test.go b/receiver/prometheusreceiver/internal/util_test.go index 7567c68e1a10..6910367056d4 100644 --- a/receiver/prometheusreceiver/internal/util_test.go +++ b/receiver/prometheusreceiver/internal/util_test.go @@ -105,7 +105,7 @@ func TestConvToMetricType(t *testing.T) { wantMonotonic: false, }, { - name: "model.metric_gauge_hostogram", + name: "model.metric_gauge_histogram", mtype: model.MetricTypeGaugeHistogram, want: pmetric.MetricTypeEmpty, wantMonotonic: false, From 3cb37c00483f0f32981ef88210f2f1bbf61030d1 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:34:35 -0500 Subject: [PATCH 165/450] spelling: histograms Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/prometheusreceiver/internal/transaction_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/prometheusreceiver/internal/transaction_test.go b/receiver/prometheusreceiver/internal/transaction_test.go index b47b8ce83b96..2c675b31ccbf 100644 --- a/receiver/prometheusreceiver/internal/transaction_test.go +++ b/receiver/prometheusreceiver/internal/transaction_test.go @@ -1589,7 +1589,7 @@ func TestMetricBuilderHistogram(t *testing.T) { for _, tt := range tests { for _, enableNativeHistograms := range []bool{true, false} { - // None of the histograms above have native histogram versions, so enabling native hisotgrams has no effect. + // None of the histograms above have native histogram versions, so enabling native histograms has no effect. t.Run(fmt.Sprintf("%s/enableNativeHistograms=%v", tt.name, enableNativeHistograms), func(t *testing.T) { tt.run(t, enableNativeHistograms) }) From de847fb5c599bf41f6b475b9aa13f1341c50cd80 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:38:33 -0500 Subject: [PATCH 166/450] spelling: hours Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/ottl/math_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/ottl/math_test.go b/pkg/ottl/math_test.go index 859291f75213..7eaf4d1caf63 100644 --- a/pkg/ottl/math_test.go +++ b/pkg/ottl/math_test.go @@ -610,7 +610,7 @@ func Test_evaluateMathExpressionTimeDuration(t *testing.T) { ) zeroSecs, err := time.ParseDuration("0s") require.NoError(t, err) - fortySevenHourseFortyTwoMinutesTwentySevenSecs, err := time.ParseDuration("47h42m27s") + fortySevenHoursFortyTwoMinutesTwentySevenSecs, err := time.ParseDuration("47h42m27s") require.NoError(t, err) oneHundredOne, err := time.ParseDuration("101h101m101s101ns") require.NoError(t, err) @@ -730,7 +730,7 @@ func Test_evaluateMathExpressionTimeDuration(t *testing.T) { }, }, }, - expected: -fortySevenHourseFortyTwoMinutesTwentySevenSecs, + expected: -fortySevenHoursFortyTwoMinutesTwentySevenSecs, }, { name: "dur add time", From f7701bb2b44289b73e7f8057ce8766f591c8d65c Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:39:19 -0500 Subject: [PATCH 167/450] spelling: hoursetc Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/ottl/math_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/ottl/math_test.go b/pkg/ottl/math_test.go index 7eaf4d1caf63..c9123daed500 100644 --- a/pkg/ottl/math_test.go +++ b/pkg/ottl/math_test.go @@ -618,7 +618,7 @@ func Test_evaluateMathExpressionTimeDuration(t *testing.T) { require.NoError(t, err) threeTwentyEightMins, err := time.ParseDuration("328m") require.NoError(t, err) - tenHoursetc, err := time.ParseDuration("10h47m48s11ns") + tenHoursEtc, err := time.ParseDuration("10h47m48s11ns") require.NoError(t, err) tests := []struct { @@ -1142,7 +1142,7 @@ func Test_evaluateMathExpressionTimeDuration(t *testing.T) { }, }, }, - expected: tenHoursetc, + expected: tenHoursEtc, }, } for _, tt := range tests { From 718e5ff6e7395ee263c41eedc425db7d0ad21073 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 3 Jan 2025 09:17:57 -0500 Subject: [PATCH 168/450] spelling: http-client Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/sumologicexporter/exporter_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/sumologicexporter/exporter_test.go b/exporter/sumologicexporter/exporter_test.go index 3347deb7e1a9..e042b7db6f9a 100644 --- a/exporter/sumologicexporter/exporter_test.go +++ b/exporter/sumologicexporter/exporter_test.go @@ -234,7 +234,7 @@ func TestPartiallyFailed(t *testing.T) { assert.Equal(t, logsExpected, partial.Data()) } -func TestInvalidHTTPCLient(t *testing.T) { +func TestInvalidHTTPClient(t *testing.T) { clientConfig := confighttp.NewDefaultClientConfig() clientConfig.Endpoint = "test_endpoint" clientConfig.TLSSetting = configtls.ClientConfig{ From b34be30415ca9191677dd98d360970570036f528 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:39:51 -0500 Subject: [PATCH 169/450] spelling: httpforwarder Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/signalfxexporter/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/signalfxexporter/config.go b/exporter/signalfxexporter/config.go index 9703b9313db8..ab339795229b 100644 --- a/exporter/signalfxexporter/config.go +++ b/exporter/signalfxexporter/config.go @@ -74,7 +74,7 @@ type Config struct { // value takes precedence over the value of Realm APIURL string `mapstructure:"api_url"` - // api_tls needs to be set if the exporter's APIURL is pointing to a httforwarder extension + // api_tls needs to be set if the exporter's APIURL is pointing to a httpforwarder extension // with TLS enabled and using a self-signed certificate where its CA is not loaded in the system cert pool. APITLSSettings configtls.ClientConfig `mapstructure:"api_tls,omitempty"` From 08545aeb422a5777ce79cc8ee48cd0b0f8c1dc6e Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 3 Jan 2025 09:42:32 -0500 Subject: [PATCH 170/450] spelling: id Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/azuredataexplorerexporter/README.md | 6 +++--- .../azuredataexplorerexporter/testdata/config.yaml | 8 ++++---- pkg/translator/zipkin/zipkinv1/json.go | 12 ++++++------ pkg/translator/zipkin/zipkinv1/json_test.go | 4 ++-- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/exporter/azuredataexplorerexporter/README.md b/exporter/azuredataexplorerexporter/README.md index 6257b43e0f83..105b5009dc36 100644 --- a/exporter/azuredataexplorerexporter/README.md +++ b/exporter/azuredataexplorerexporter/README.md @@ -30,7 +30,7 @@ One authentication method is required: - `application_key` (no default): The cluster secret corresponding to the client id. - `tenant_id` (no default): The tenant id where the application_id is referenced from. - Managed identity: - - `managed_identity_id` (no default): The managed identity id to authenticate with. Set to "system" for system-assigned managed identity. Set the MI client Id (GUID) for user-assigned managed identity. + - `managed_identity_id` (no default): The managed identity id to authenticate with. Set to "system" for system-assigned managed identity. Set the MI client ID (GUID) for user-assigned managed identity. - Default authentication: - `use_azure_auth` (default: false): Set to true to use the Azure [default authentication](https://learn.microsoft.com/en-us/azure/developer/go/azure-sdk-authentication?tabs=bash#2-authenticate-with-azure). @@ -61,7 +61,7 @@ exporters: azuredataexplorer: # Kusto cluster uri cluster_uri: "https://CLUSTER.kusto.windows.net" - # Client Id + # Client ID application_id: "f80da32c-108c-415c-a19e-643f461a677a" # The client secret for the client application_key: "xx-xx-xx-xx" @@ -69,7 +69,7 @@ exporters: tenant_id: "21ff9e36-fbaa-43c8-98ba-00431ea10bc3" # A managed identity id to authenticate with. # Set to "system" for system-assigned managed identity. - # Set the MI client Id (GUID) for user-assigned managed identity. + # Set the MI client ID (GUID) for user-assigned managed identity. managed_identity_id: "z80da32c-108c-415c-a19e-643f461a677a" # Database for the logs db_name: "oteldb" diff --git a/exporter/azuredataexplorerexporter/testdata/config.yaml b/exporter/azuredataexplorerexporter/testdata/config.yaml index 33ca1d14793d..766c9ad1a511 100644 --- a/exporter/azuredataexplorerexporter/testdata/config.yaml +++ b/exporter/azuredataexplorerexporter/testdata/config.yaml @@ -1,7 +1,7 @@ azuredataexplorer: # Kusto cluster uri cluster_uri: "https://CLUSTER.kusto.windows.net" - # Client Id + # Client ID application_id: "f80da32c-108c-415c-a19e-643f461a677a" # The client secret for the client application_key: "xx-xx-xx-xx" @@ -20,7 +20,7 @@ azuredataexplorer: azuredataexplorer/2: # Kusto cluster uri cluster_uri: "https://CLUSTER.kusto.windows.net" - # Client Id + # Client ID application_id: "" # The client secret for the client application_key: "xx-xx-xx-xx" @@ -40,7 +40,7 @@ azuredataexplorer/2: azuredataexplorer/3: # Kusto cluster uri cluster_uri: "https://CLUSTER.kusto.windows.net" - # Client Id + # Client ID application_id: "f80da32c-108c-415c-a19e-643f461a677a" # The client secret for the client application_key: "xx-xx-xx-xx" @@ -119,7 +119,7 @@ azuredataexplorer/7: azuredataexplorer/8: # Kusto cluster uri cluster_uri: "https://CLUSTER.kusto.windows.net" - # Client Id + # Client ID application_id: "f80da32c-108c-415c-a19e-643f461a677a" # The client secret for the client application_key: "xx-xx-xx-xx" diff --git a/pkg/translator/zipkin/zipkinv1/json.go b/pkg/translator/zipkin/zipkinv1/json.go index b45e7b188786..60fa26fe751c 100644 --- a/pkg/translator/zipkin/zipkinv1/json.go +++ b/pkg/translator/zipkin/zipkinv1/json.go @@ -23,13 +23,13 @@ import ( var ( // ZipkinV1 friendly conversion errors msgZipkinV1JSONUnmarshalError = "zipkinv1" - msgZipkinV1TraceIDError = "zipkinV1 span traceId" - msgZipkinV1SpanIDError = "zipkinV1 span id" - msgZipkinV1ParentIDError = "zipkinV1 span parentId" + msgZipkinV1TraceIDError = "zipkinV1 span traceID" + msgZipkinV1SpanIDError = "zipkinV1 span ID" + msgZipkinV1ParentIDError = "zipkinV1 span parentID" // Generic hex to ID conversion errors - errHexTraceIDWrongLen = errors.New("hex traceId span has wrong length (expected 16 or 32)") - errHexTraceIDZero = errors.New("traceId is zero") - errHexIDWrongLen = errors.New("hex Id has wrong length (expected 16)") + errHexTraceIDWrongLen = errors.New("hex traceID span has wrong length (expected 16 or 32)") + errHexTraceIDZero = errors.New("traceID is zero") + errHexIDWrongLen = errors.New("hex ID has wrong length (expected 16)") errHexIDZero = errors.New("ID is zero") ) diff --git a/pkg/translator/zipkin/zipkinv1/json_test.go b/pkg/translator/zipkin/zipkinv1/json_test.go index 257261265f7d..40984b7822cf 100644 --- a/pkg/translator/zipkin/zipkinv1/json_test.go +++ b/pkg/translator/zipkin/zipkinv1/json_test.go @@ -663,7 +663,7 @@ func TestZipkinV1ToSpanAnsEndpointInvalidTraceId(t *testing.T) { }, } _, err := jsonToSpanAndEndpoint(zSpan, false) - assert.EqualError(t, err, "zipkinV1 span traceId: hex traceId span has wrong length (expected 16 or 32)") + assert.EqualError(t, err, "zipkinV1 span traceID: hex traceID span has wrong length (expected 16 or 32)") } func TestZipkinV1ToSpanAnsEndpointInvalidSpanId(t *testing.T) { @@ -675,5 +675,5 @@ func TestZipkinV1ToSpanAnsEndpointInvalidSpanId(t *testing.T) { }, } _, err := jsonToSpanAndEndpoint(zSpan, false) - assert.EqualError(t, err, "zipkinV1 span id: hex Id has wrong length (expected 16)") + assert.EqualError(t, err, "zipkinV1 span ID: hex ID has wrong length (expected 16)") } From 6d49dccf1cfc963444c113627fc1b0261ec5352b Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:42:01 -0500 Subject: [PATCH 171/450] spelling: ignore Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- internal/docker/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/docker/config.go b/internal/docker/config.go index 50651e58ba50..9b15c920436a 100644 --- a/internal/docker/config.go +++ b/internal/docker/config.go @@ -31,7 +31,7 @@ type Config struct { } func (config *Config) Unmarshal(conf *confmap.Conf) error { - // WithIgonreUnused needed because this configuration is embedded inside other configurations + // WithIgnoreUnused needed because this configuration is embedded inside other configurations err := conf.Unmarshal(config, confmap.WithIgnoreUnused()) if err != nil { if floatAPIVersion, ok := conf.Get("api_version").(float64); ok { From b339004ad91fa7cc2a2d2cb332f935102eb3ca36 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:41:54 -0500 Subject: [PATCH 172/450] spelling: ignored Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/translator/jaeger/traces_to_jaegerproto_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/translator/jaeger/traces_to_jaegerproto_test.go b/pkg/translator/jaeger/traces_to_jaegerproto_test.go index 785e1f8a96e5..9748d6053adc 100644 --- a/pkg/translator/jaeger/traces_to_jaegerproto_test.go +++ b/pkg/translator/jaeger/traces_to_jaegerproto_test.go @@ -346,7 +346,7 @@ func TestInternalTracesToJaegerProtoBatchesAndBack(t *testing.T) { func generateTracesOneSpanNoResourceWithEventAttribute() ptrace.Traces { td := generateTracesOneSpanNoResource() event := td.ResourceSpans().At(0).ScopeSpans().At(0).Spans().At(0).Events().At(0) - event.SetName("must-be-ignorred") + event.SetName("must-be-ignored") event.Attributes().PutStr("event", "must-be-used-instead-of-event-name") return td } From ca8768f1d2cd27738fd479d88eacc70c31b3fb9a Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:42:23 -0500 Subject: [PATCH 173/450] spelling: implementation Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/stanza/operator/helper/operator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/stanza/operator/helper/operator.go b/pkg/stanza/operator/helper/operator.go index d7ed6f56f776..180182a7c3eb 100644 --- a/pkg/stanza/operator/helper/operator.go +++ b/pkg/stanza/operator/helper/operator.go @@ -19,7 +19,7 @@ func NewBasicConfig(operatorID, operatorType string) BasicConfig { } } -// BasicConfig provides a basic implemention for an operator config. +// BasicConfig provides a basic implementation for an operator config. type BasicConfig struct { OperatorID string `mapstructure:"id"` OperatorType string `mapstructure:"type"` From 8eff50601dff94cdaa30f003d766cb1676a0ae06 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:42:15 -0500 Subject: [PATCH 174/450] spelling: implemented Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/stanza/fileconsumer/config_test.go | 4 ++-- pkg/stanza/operator/helper/helper_test.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/stanza/fileconsumer/config_test.go b/pkg/stanza/fileconsumer/config_test.go index 51af232c9e37..ecac7ae4a2ad 100644 --- a/pkg/stanza/fileconsumer/config_test.go +++ b/pkg/stanza/fileconsumer/config_test.go @@ -865,8 +865,8 @@ func newMockOperatorConfig(cfg *Config) *mockOperatorConfig { } } -// This function is impelmented for compatibility with operatortest +// This function is implemented for compatibility with operatortest // but is not meant to be used directly func (h *mockOperatorConfig) Build(_ component.TelemetrySettings) (operator.Operator, error) { - panic("not impelemented") + panic("not implemented") } diff --git a/pkg/stanza/operator/helper/helper_test.go b/pkg/stanza/operator/helper/helper_test.go index d052e6a67139..fd5e54d00a94 100644 --- a/pkg/stanza/operator/helper/helper_test.go +++ b/pkg/stanza/operator/helper/helper_test.go @@ -33,8 +33,8 @@ func newHelpersConfig() *helpersConfig { } } -// This function is impelmented for compatibility with operatortest +// This function is implemented for compatibility with operatortest // but is not meant to be used directly func (h *helpersConfig) Build(_ component.TelemetrySettings) (operator.Operator, error) { - panic("not impelemented") + panic("not implemented") } From 0597befaa4a6268f85c0172169fbd93664f5a5cc Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:45:57 -0500 Subject: [PATCH 175/450] spelling: in increased Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/googlecloudexporter/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/googlecloudexporter/README.md b/exporter/googlecloudexporter/README.md index 0b4d5330c935..e1cb7c40ead8 100644 --- a/exporter/googlecloudexporter/README.md +++ b/exporter/googlecloudexporter/README.md @@ -193,7 +193,7 @@ The following configuration options are supported: - `resource_filters` (default = []): If provided, resource attributes matching any filter will be included in metric labels. Can be defined by `prefix`, `regex`, or `prefix` AND `regex`. - `prefix`: Match resource keys by prefix. - `regex`: Match resource keys by regex. - - `cumulative_normalization` (default = true): If true, normalizes cumulative metrics without start times or with explicit reset points by subtracting subsequent points from the initial point. It is enabled by default. Since it caches starting points, it may result inincreased memory usage. + - `cumulative_normalization` (default = true): If true, normalizes cumulative metrics without start times or with explicit reset points by subtracting subsequent points from the initial point. It is enabled by default. Since it caches starting points, it may result in increased memory usage. - `sum_of_squared_deviation` (default = false): If true, enables calculation of an estimated sum of squared deviation. It is an estimate, and is not exact. - `experimental_wal` (default = []): If provided, enables use of a write ahead log for time series requests. From 45dd13682001323c146ca33cba0808d6c8e13aa4 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:47:19 -0500 Subject: [PATCH 176/450] spelling: in-sync Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/kafkametricsreceiver/documentation.md | 2 +- .../kafkametricsreceiver/internal/metadata/generated_metrics.go | 2 +- .../internal/metadata/generated_metrics_test.go | 2 +- receiver/kafkametricsreceiver/metadata.yaml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/receiver/kafkametricsreceiver/documentation.md b/receiver/kafkametricsreceiver/documentation.md index c3537fafb823..f2848f29995e 100644 --- a/receiver/kafkametricsreceiver/documentation.md +++ b/receiver/kafkametricsreceiver/documentation.md @@ -224,7 +224,7 @@ log retention size of a topic in Bytes, The value (-1) indicates infinite size. ### kafka.topic.min_insync_replicas -minimum insync replicas of a topic. +minimum in-sync replicas of a topic. | Unit | Metric Type | Value Type | | ---- | ----------- | ---------- | diff --git a/receiver/kafkametricsreceiver/internal/metadata/generated_metrics.go b/receiver/kafkametricsreceiver/internal/metadata/generated_metrics.go index 9cc364612666..84a83aecfb9e 100644 --- a/receiver/kafkametricsreceiver/internal/metadata/generated_metrics.go +++ b/receiver/kafkametricsreceiver/internal/metadata/generated_metrics.go @@ -700,7 +700,7 @@ type metricKafkaTopicMinInsyncReplicas struct { // init fills kafka.topic.min_insync_replicas metric with initial data. func (m *metricKafkaTopicMinInsyncReplicas) init() { m.data.SetName("kafka.topic.min_insync_replicas") - m.data.SetDescription("minimum insync replicas of a topic.") + m.data.SetDescription("minimum in-sync replicas of a topic.") m.data.SetUnit("{replicas}") m.data.SetEmptyGauge() m.data.Gauge().DataPoints().EnsureCapacity(m.capacity) diff --git a/receiver/kafkametricsreceiver/internal/metadata/generated_metrics_test.go b/receiver/kafkametricsreceiver/internal/metadata/generated_metrics_test.go index 8b45bd711f4e..d0dc07bc4e7f 100644 --- a/receiver/kafkametricsreceiver/internal/metadata/generated_metrics_test.go +++ b/receiver/kafkametricsreceiver/internal/metadata/generated_metrics_test.go @@ -386,7 +386,7 @@ func TestMetricsBuilder(t *testing.T) { validatedMetrics["kafka.topic.min_insync_replicas"] = true assert.Equal(t, pmetric.MetricTypeGauge, ms.At(i).Type()) assert.Equal(t, 1, ms.At(i).Gauge().DataPoints().Len()) - assert.Equal(t, "minimum insync replicas of a topic.", ms.At(i).Description()) + assert.Equal(t, "minimum in-sync replicas of a topic.", ms.At(i).Description()) assert.Equal(t, "{replicas}", ms.At(i).Unit()) dp := ms.At(i).Gauge().DataPoints().At(0) assert.Equal(t, start, dp.StartTimestamp()) diff --git a/receiver/kafkametricsreceiver/metadata.yaml b/receiver/kafkametricsreceiver/metadata.yaml index bf47e7bf0277..9c861806dbcc 100644 --- a/receiver/kafkametricsreceiver/metadata.yaml +++ b/receiver/kafkametricsreceiver/metadata.yaml @@ -78,7 +78,7 @@ metrics: attributes: [topic] kafka.topic.min_insync_replicas: enabled: false - description: minimum insync replicas of a topic. + description: minimum in-sync replicas of a topic. unit: "{replicas}" gauge: value_type: int From 805e11b7299b20c4d41cdbcf67d2ee115e35cd6d Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:42:35 -0500 Subject: [PATCH 177/450] spelling: include Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/solacereceiver/unmarshaller_receive.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/solacereceiver/unmarshaller_receive.go b/receiver/solacereceiver/unmarshaller_receive.go index 27d806b6157c..860bed8fe6a7 100644 --- a/receiver/solacereceiver/unmarshaller_receive.go +++ b/receiver/solacereceiver/unmarshaller_receive.go @@ -175,7 +175,7 @@ func (u *brokerTraceReceiveUnmarshallerV1) mapClientSpanAttributes(spanData *rec attrMap.PutInt(droppedEnqueueEventsSuccessAttrKey, int64(spanData.DroppedEnqueueEventsSuccess)) attrMap.PutInt(droppedEnqueueEventsFailedAttrKey, int64(spanData.DroppedEnqueueEventsFailed)) - // The IPs are now optional meaning we will not incluude them if they are zero length + // The IPs are now optional meaning we will not include them if they are zero length hostIPLen := len(spanData.HostIp) if hostIPLen == 4 || hostIPLen == 16 { attrMap.PutStr(hostIPAttrKey, net.IP(spanData.HostIp).String()) From cd5c3c7cd674b86d58ffacb3e43a3c2bf74c84d4 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:43:01 -0500 Subject: [PATCH 178/450] spelling: incomplete Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/splunkenterprisereceiver/scraper_test.go | 2 +- receiver/splunkenterprisereceiver/search_result.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/receiver/splunkenterprisereceiver/scraper_test.go b/receiver/splunkenterprisereceiver/scraper_test.go index 594a2ac4ed7b..8c568ba3ae7f 100644 --- a/receiver/splunkenterprisereceiver/scraper_test.go +++ b/receiver/splunkenterprisereceiver/scraper_test.go @@ -51,7 +51,7 @@ func mockDispatchArtifacts(w http.ResponseWriter, _ *http.Request) { status := http.StatusOK w.Header().Set("Content-Type", "application/json") w.WriteHeader(status) - _, _ = w.Write([]byte(`{"links":{},"origin":"https://somehost:8089/services/server/status/dispatch-artifacts","updated":"2024-10-24T04:46:47+00:00","generator":{"build":"05775df3af30","version":"9.2.2406.108"},"entry":[{"name":"result","id":"https://somehost:8089/services/server/status/dispatch-artifacts/result","updated":"1970-01-01T00:00:00+00:00","links":{"alternate":"/services/server/status/dispatch-artifacts/result","list":"/services/server/status/dispatch-artifacts/result"},"author":"system","acl":{"app":"","can_list":true,"can_write":true,"modifiable":false,"owner":"system","perms":{"read":["*"],"write":[]},"removable":false,"sharing":"system"},"content":{"adhoc_count":"7","adhoc_size_mb":"1","adhoc_subsearch_count":"0","adhoc_subsearch_size_mb":"0","cached_job_status_info_csv_size_mb":"0","cached_job_status_status_csv_size_mb":"0","cached_job_status_total_entries":"20","completed_count":"20","completed_size_mb":"2","count_summary":"1","disk_usage_MB":"2","eai:acl":null,"incomple_count":"0","incomple_size_mb":"0","invalid_count":"1","remote_count":"0","remote_mb":"0","rsa_count":"0","rsa_scheduled_count":"0","rsa_scheduled_size_mb":"0","rsa_size_mb":"0","scheduled_count":"13","scheduled_size_mb":"1","scheduled_subsearch_count":"0","scheduled_subsearch_size_mb":"0","ss_count":"7","status_cache_info_csv_size_mb":"0","status_cache_status_csv_size_mb":"0","status_cache_total_entries":"20","temp_dispatch_count":"0","temp_dispatch_size_mb":"0","top_apps":{"0":{"splunk_instrumentation":"6"},"1":{"search":"1"}},"top_named_searches":null,"top_users":{"0":{"splunk-system-user":"6"},"1":{"internal_observability":"1"}},"total_count":"7"}}],"paging":{"total":1,"perPage":30,"offset":0},"messages":[]}`)) + _, _ = w.Write([]byte(`{"links":{},"origin":"https://somehost:8089/services/server/status/dispatch-artifacts","updated":"2024-10-24T04:46:47+00:00","generator":{"build":"05775df3af30","version":"9.2.2406.108"},"entry":[{"name":"result","id":"https://somehost:8089/services/server/status/dispatch-artifacts/result","updated":"1970-01-01T00:00:00+00:00","links":{"alternate":"/services/server/status/dispatch-artifacts/result","list":"/services/server/status/dispatch-artifacts/result"},"author":"system","acl":{"app":"","can_list":true,"can_write":true,"modifiable":false,"owner":"system","perms":{"read":["*"],"write":[]},"removable":false,"sharing":"system"},"content":{"adhoc_count":"7","adhoc_size_mb":"1","adhoc_subsearch_count":"0","adhoc_subsearch_size_mb":"0","cached_job_status_info_csv_size_mb":"0","cached_job_status_status_csv_size_mb":"0","cached_job_status_total_entries":"20","completed_count":"20","completed_size_mb":"2","count_summary":"1","disk_usage_MB":"2","eai:acl":null,"incomplete_count":"0","incomplete_size_mb":"0","invalid_count":"1","remote_count":"0","remote_mb":"0","rsa_count":"0","rsa_scheduled_count":"0","rsa_scheduled_size_mb":"0","rsa_size_mb":"0","scheduled_count":"13","scheduled_size_mb":"1","scheduled_subsearch_count":"0","scheduled_subsearch_size_mb":"0","ss_count":"7","status_cache_info_csv_size_mb":"0","status_cache_status_csv_size_mb":"0","status_cache_total_entries":"20","temp_dispatch_count":"0","temp_dispatch_size_mb":"0","top_apps":{"0":{"splunk_instrumentation":"6"},"1":{"search":"1"}},"top_named_searches":null,"top_users":{"0":{"splunk-system-user":"6"},"1":{"internal_observability":"1"}},"total_count":"7"}}],"paging":{"total":1,"perPage":30,"offset":0},"messages":[]}`)) } // mock server create diff --git a/receiver/splunkenterprisereceiver/search_result.go b/receiver/splunkenterprisereceiver/search_result.go index bd6c4318b016..d90e538db831 100644 --- a/receiver/splunkenterprisereceiver/search_result.go +++ b/receiver/splunkenterprisereceiver/search_result.go @@ -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"` InvalidCount string `json:"invalid_count"` InfoCacheSize string `json:"cached_job_status_info_csv_size_mb"` StatusCacheSize string `json:"cached_job_status_status_csv_size_mb"` From 166b4b7cda434fee334cdfcee235ea10c49f285f Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:43:21 -0500 Subject: [PATCH 179/450] spelling: indeed Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../githubreceiver/internal/scraper/githubscraper/helpers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/receiver/githubreceiver/internal/scraper/githubscraper/helpers.go b/receiver/githubreceiver/internal/scraper/githubscraper/helpers.go index 4a9753525176..573adf152ab3 100644 --- a/receiver/githubreceiver/internal/scraper/githubscraper/helpers.go +++ b/receiver/githubreceiver/internal/scraper/githubscraper/helpers.go @@ -289,9 +289,9 @@ func (ghs *githubScraper) getCommitData( tar := data.Repository.Refs.Nodes[0].GetTarget() // We do a sanity type check just to make sure the GraphQL response was - // indead for commits. This is a byproduct of the `... on Commit` syntax + // indeed for commits. This is a byproduct of the `... on Commit` syntax // within the GraphQL query and then return the actual history if the - // returned Target is inded of type Commit. + // returned Target is indeed of type Commit. if ct, ok := tar.(*BranchHistoryTargetCommit); ok { return &ct.History, nil } From aa18195806b8308acf686e52d8c13b72e0dce54e Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:43:34 -0500 Subject: [PATCH 180/450] spelling: indefinitely Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fafae6914f3d..5f0ce89d9a61 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2551,7 +2551,7 @@ This release fixes CVE-2024-42368 on the `bearerauthtokenextension` (#34516) The purpose of this list was to allow us to emit a lot whenever a path was seen for the first time. This removes the separate list and relies instead on the same mechanism as checkpointing. Now, a similar log is emitted any time a file is found which is not currently checkpointed. Because the checkpointing mechanism does not maintain history - indefintiely, it is now possible that a log will be emitted for the same file path. This will happen when no file exists at + indefinitely, it is now possible that a log will be emitted for the same file path. This will happen when no file exists at the path for a period of time. - `dockerstatsreceiver`: cpu.container.percent metric is removed in favor of container.cpu.utilization (#21807) From 21657933ec286866f028ddb9f2610dd09305c344 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:43:46 -0500 Subject: [PATCH 181/450] spelling: indices Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/pdatatest/pprofiletest/profiles.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/pdatatest/pprofiletest/profiles.go b/pkg/pdatatest/pprofiletest/profiles.go index 15dcbc61d8b5..b6b144f05c8e 100644 --- a/pkg/pdatatest/pprofiletest/profiles.go +++ b/pkg/pdatatest/pprofiletest/profiles.go @@ -254,7 +254,7 @@ func CompareProfile(expected, actual pprofile.Profile) error { } if !reflect.DeepEqual(expected.LocationIndices(), actual.LocationIndices()) { - errs = multierr.Append(errs, fmt.Errorf("locationIndicies do not match expected")) + errs = multierr.Append(errs, fmt.Errorf("locationIndices do not match expected")) } if !reflect.DeepEqual(expected.CommentStrindices(), actual.CommentStrindices()) { From fe9d4eabefeec86653fae8a7bd97920dfd9ad0c6 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:45:32 -0500 Subject: [PATCH 182/450] spelling: info-creator Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../internal/ecsInfo/ecsinfo_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/awscontainerinsightreceiver/internal/ecsInfo/ecsinfo_test.go b/receiver/awscontainerinsightreceiver/internal/ecsInfo/ecsinfo_test.go index f4120ee88f96..31a6f5c9e36f 100644 --- a/receiver/awscontainerinsightreceiver/internal/ecsInfo/ecsinfo_test.go +++ b/receiver/awscontainerinsightreceiver/internal/ecsInfo/ecsinfo_test.go @@ -77,7 +77,7 @@ func (c *MockCgroupScanner) getMEMReservedInTask(_ string, _ string, _ []ECSCont } func TestNewECSInfo(t *testing.T) { - // test the case when containerInstanceInfor fails to initialize + // test the case when containerInstanceInfoCreator fails to initialize containerInstanceInfoCreatorOpt := func(ei *EcsInfo) { ei.containerInstanceInfoCreator = func(context.Context, hostIPProvider, time.Duration, *zap.Logger, doer, chan bool) containerInstanceInfoProvider { return &MockInstanceInfo{ From 76fca43b6d8a536231f2d2a657a913721f929dd9 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:46:08 -0500 Subject: [PATCH 183/450] spelling: ingestion Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- internal/coreinternal/goldendataset/span_generator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/coreinternal/goldendataset/span_generator.go b/internal/coreinternal/goldendataset/span_generator.go index 71720b154443..61030e703234 100644 --- a/internal/coreinternal/goldendataset/span_generator.go +++ b/internal/coreinternal/goldendataset/span_generator.go @@ -355,7 +355,7 @@ func appendMaxCountAttributes(includeStatus bool, attrMap pcommon.Map) { attrMap.PutStr("application.create.location", "https://api.opentelemetry.io/blog/posts/806673B9-4F4D-4284-9635-3A3E3E3805BE") stages := attrMap.PutEmptySlice("application.stages") stages.AppendEmpty().SetStr("Launch") - stages.AppendEmpty().SetStr("Injestion") + stages.AppendEmpty().SetStr("Ingestion") stages.AppendEmpty().SetStr("Validation") subMap := attrMap.PutEmptyMap("application.abflags") subMap.PutBool("UIx", false) From 5e729bb4e1264ffeb7c2efdb5fbafe54523296a8 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:46:01 -0500 Subject: [PATCH 184/450] spelling: initially Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5f0ce89d9a61..1dd8c96f9a2d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1639,11 +1639,11 @@ This release fixes CVE-2024-42368 on the `bearerauthtokenextension` (#34516) This fixes the bug when all errors are retriable in bulk request response, retried docs will be included in failed docs. - `cmd/opampsupervisor`: The OpAMP supervisor now configures the `ppid` parameter of the opamp extension, which allows the collector to shut down if the supervisor is no longer running. (#32189) -- `vcenterreceiver`: Adds inititially disabled packet drop rate metric for VMs. (#32929) +- `vcenterreceiver`: Adds initially disabled packet drop rate metric for VMs. (#32929) - `awskinesisexporter`: fixed compressed data not generating the compression footers (#32860) - `splunkhecreceiver`: Fix single metric value parsing (#33084) - `vcenterreceiver`: vcenterreceiver client no longer returns error if no Virtual Apps are found. (#33073) -- `vcenterreceiver`: Adds inititially disabled new packet rate metrics to replace the existing ones for VMs & Hosts. (#32835) +- `vcenterreceiver`: Adds initially disabled new packet rate metrics to replace the existing ones for VMs & Hosts. (#32835) - `googlecloudpubsubreceiver`: Fix memory leak during shutdown (#32361) - `datadogexporter`: Compress host metadata before sending with gzip. (#32992) - `resourcedetectionprocessor`: Change type of `host.cpu.stepping` from int to string. (#31136) From 827e200df69bf29fa26bbb646d5ef001e914f536 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:46:37 -0500 Subject: [PATCH 185/450] spelling: insert Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/solacereceiver/unmarshaller_receive.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/solacereceiver/unmarshaller_receive.go b/receiver/solacereceiver/unmarshaller_receive.go index 860bed8fe6a7..9214471b7d0a 100644 --- a/receiver/solacereceiver/unmarshaller_receive.go +++ b/receiver/solacereceiver/unmarshaller_receive.go @@ -372,7 +372,7 @@ func (u *brokerTraceReceiveUnmarshallerV1) unmarshalBaggage(toMap pcommon.Map, b return nil } -// insertUserProperty will instert a user property value with the given key to an attribute if possible. +// insertUserProperty will insert a user property value with the given key to an attribute if possible. // Since AttributeMap only supports int64 integer types, uint64 data may be misrepresented. func (u *brokerTraceReceiveUnmarshallerV1) insertUserProperty(toMap pcommon.Map, key string, value any) { const ( From cec3623aca4e62eabf6a1ea1507fb165259f8469 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:46:44 -0500 Subject: [PATCH 186/450] spelling: instance Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- extension/observer/ecsobserver/fetcher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extension/observer/ecsobserver/fetcher.go b/extension/observer/ecsobserver/fetcher.go index 8f42050736db..209d5b218284 100644 --- a/extension/observer/ecsobserver/fetcher.go +++ b/extension/observer/ecsobserver/fetcher.go @@ -275,7 +275,7 @@ func (f *taskFetcher) attachContainerInstance(ctx context.Context, tasks []*task containerInstance := aws.StringValue(t.Task.ContainerInstanceArn) ec2Info, ok := ciToEC2[containerInstance] if !ok { - return fmt.Errorf("container instance ec2 info not found containerInstnace=%q", containerInstance) + return fmt.Errorf("container instance ec2 info not found containerInstance=%q", containerInstance) } t.EC2 = ec2Info } From 6aca2957f57803f4cf126402750e477f56f48ace Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:49:20 -0500 Subject: [PATCH 187/450] spelling: instead Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1dd8c96f9a2d..d0db08315f8a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2660,7 +2660,7 @@ This release fixes CVE-2024-42368 on the `bearerauthtokenextension` (#34516) - `processor/k8sattributes`: Set attributes from namespace/node labels or annotations even if node/namespaces attribute are not set. (#28837) - `datadogexporter`: Only extract DD container tags from resource attributes. Previously, container tags were also extracted from span attributes. (#29156) - `datadogexporter`: Only add container tags in dedicated container tag section. Previously, container tags were also added as span tags. Container tags will now only be accessible via the span container tab, and not as span tags. (#29156) -- `pkg/stanza`: Fix data-corruption/race-condition issue in udp async (reuse of buffer); use buffer pool isntead. (#27613) +- `pkg/stanza`: Fix data-corruption/race-condition issue in udp async (reuse of buffer); use buffer pool instead. (#27613) - `datadogexporter`: Fixes potential log records loss on a transient network/connectivity error (#24550) The Datadog exporter threats network/connectivity errors (http client doesn't receive a response) as permanent errors, which can lead to log records loss. This change makes these errors retryable. - `servicegraphprocessor, servicegraphconnector`: Measure latency in seconds instead of milliseconds (#27488) From 6fc3a188268014856b0674284f4cb7e799a6a26f Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:46:25 -0500 Subject: [PATCH 188/450] spelling: instrumentation Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/awsemfexporter/datapoint_test.go | 2 +- exporter/awsxrayexporter/internal/translator/http.go | 2 +- receiver/otelarrowreceiver/internal/arrow/arrow.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/exporter/awsemfexporter/datapoint_test.go b/exporter/awsemfexporter/datapoint_test.go index c13de8777156..9de974c8156d 100644 --- a/exporter/awsemfexporter/datapoint_test.go +++ b/exporter/awsemfexporter/datapoint_test.go @@ -1968,7 +1968,7 @@ func TestCreateLabels(t *testing.T) { labels := createLabels(labelsMap, "") assert.Equal(t, expectedLabels, labels) - // With isntrumentation library name + // With instrumentation library name labels = createLabels(labelsMap, "cloudwatch-otel") expectedLabels[oTellibDimensionKey] = "cloudwatch-otel" assert.Equal(t, expectedLabels, labels) diff --git a/exporter/awsxrayexporter/internal/translator/http.go b/exporter/awsxrayexporter/internal/translator/http.go index ccf865423d30..347f77f1cd36 100644 --- a/exporter/awsxrayexporter/internal/translator/http.go +++ b/exporter/awsxrayexporter/internal/translator/http.go @@ -147,7 +147,7 @@ func makeHTTP(span ptrace.Span) (map[string]pcommon.Value, *awsxray.HTTPData) { } func extractResponseSizeFromEvents(span ptrace.Span) int64 { - // Support insrumentation that sets response size in span or as an event. + // Support instrumentation that sets response size in span or as an event. size := extractResponseSizeFromAttributes(span.Attributes()) if size != 0 { return size diff --git a/receiver/otelarrowreceiver/internal/arrow/arrow.go b/receiver/otelarrowreceiver/internal/arrow/arrow.go index 080b36e2a9ef..65b041068068 100644 --- a/receiver/otelarrowreceiver/internal/arrow/arrow.go +++ b/receiver/otelarrowreceiver/internal/arrow/arrow.go @@ -524,7 +524,7 @@ func (id *inFlightData) anyDone(ctx context.Context) { // data. // // This handles constructing an inFlightData object, which itself -// tracks everything that needs to be used by instrumention when the +// tracks everything that needs to be used by instrumentation when the // batch finishes. func (r *receiverStream) recvOne(streamCtx context.Context, serverStream anyStreamServer, hrcv *headerReceiver, pendingCh chan<- batchResp, method string, ac arrowRecord.ConsumerAPI) (retErr error) { // Receive a batch corresponding with one ptrace.Traces, pmetric.Metrics, From ba5c11a4b67b8cc84069cd76f84c51ba21d43649 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:47:45 -0500 Subject: [PATCH 189/450] spelling: internal Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- exporter/awskinesisexporter/internal/batch/batch.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d0db08315f8a..0b428b4bdc5b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4506,7 +4506,7 @@ This release fixes CVE-2024-42368 on the `bearerauthtokenextension` (#34516) - `splunkhecreceiver`: Add a healthcheck endpoint as part of the splunkhecreceiver. Just returns 200 for now if the receiver is running. (#15367) - `filterprocessor`: Add ability to filter spans, span events, metrics, datapoints, and logs via OTTL conditions (#16369) - `googlecloudspannerreceiver`: Configurably mask the PII in lock stats metrics. (#16343) -- `interna/coreinternal`: Split internal/coreinternal/processor into a separate internal/filter module (#16410) +- `internal/coreinternal`: Split internal/coreinternal/processor into a separate internal/filter module (#16410) ### 🧰 Bug fixes 🧰 diff --git a/exporter/awskinesisexporter/internal/batch/batch.go b/exporter/awskinesisexporter/internal/batch/batch.go index 2c3d716f991a..7a13754134ff 100644 --- a/exporter/awskinesisexporter/internal/batch/batch.go +++ b/exporter/awskinesisexporter/internal/batch/batch.go @@ -101,7 +101,7 @@ func (b *Batch) AddRecord(raw []byte, key string) error { return nil } -// Chunk breaks up the iternal queue into blocks that can be used +// Chunk breaks up the internal queue into blocks that can be used // to be written to he kinesis.PutRecords endpoint func (b *Batch) Chunk() (chunks [][]types.PutRecordsRequestEntry) { // Using local copies to avoid mutating internal data From 41362f65e237d14112b92e8b99fcc62c825f9f9a Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:47:53 -0500 Subject: [PATCH 190/450] spelling: interpreted Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/stanza/docs/types/severity.md | 4 ++-- pkg/stanza/docs/types/timestamp.md | 2 +- pkg/stanza/operator/helper/time.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/stanza/docs/types/severity.md b/pkg/stanza/docs/types/severity.md index d45a83422140..5a9872066133 100644 --- a/pkg/stanza/docs/types/severity.md +++ b/pkg/stanza/docs/types/severity.md @@ -11,8 +11,8 @@ Parser operators can parse a severity and attach the resulting value to a log en | Field | Default | Description | | --- | --- | --- | | `parse_from` | required | The [field](../types/field.md) from which the value will be parsed. | -| `preset` | `default` | A predefined set of values that should be interpretted at specific severity levels. | -| `mapping` | | A custom set of values that should be interpretted at designated severity levels. | +| `preset` | `default` | A predefined set of values that should be interpreted at specific severity levels. | +| `mapping` | | A custom set of values that should be interpreted at designated severity levels. | | `overwrite_text` | `false` | If `true`, the severity text will be set to the [recommeneded short name](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/logs/data-model.md#displaying-severity) corresponding to the severity number. | Note that by default the severity _text_ will be set to the original value which was interpreted into a severity number. In order to set the severity text to a standard short name (e.g. `ERROR`, `INFO3`, etc.), set `overwrite_text` to `true`. diff --git a/pkg/stanza/docs/types/timestamp.md b/pkg/stanza/docs/types/timestamp.md index d9d9f57df3d5..114ec4461cc7 100644 --- a/pkg/stanza/docs/types/timestamp.md +++ b/pkg/stanza/docs/types/timestamp.md @@ -74,7 +74,7 @@ The `epoch` layout type uses can consume epoch-based timestamps. The following l | `s.us` | Seconds plus microseconds since the epoch | 1136214245.123456 | `string`, `int64`[1], `float64` | | `s.ns` | Seconds plus nanoseconds since the epoch | 1136214245.123456789 | `string`, `int64`[1], `float64`[2] | -[1] Interpretted as seconds. Equivalent to using `s` layout.
+[1] Interpreted as seconds. Equivalent to using `s` layout.
[2] Due to floating point precision limitations, loss of up to 100ns may be expected. diff --git a/pkg/stanza/operator/helper/time.go b/pkg/stanza/operator/helper/time.go index 753eb79159b4..43b817d8c2bf 100644 --- a/pkg/stanza/operator/helper/time.go +++ b/pkg/stanza/operator/helper/time.go @@ -125,7 +125,7 @@ func (t *TimeParser) setLocation() error { } if strings.HasSuffix(t.Layout, "Z") { - // If a timestamp ends with 'Z', it should be interpretted at Zulu (UTC) time + // If a timestamp ends with 'Z', it should be interpreted at Zulu (UTC) time t.location = time.UTC return nil } From dd9e799430d21236d54c0849809784b99ca5ab4a Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:48:45 -0500 Subject: [PATCH 191/450] spelling: intialization Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- internal/aws/k8s/k8sclient/clientset.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/aws/k8s/k8sclient/clientset.go b/internal/aws/k8s/k8sclient/clientset.go index d6e6e9061c7d..26be5bff07b0 100644 --- a/internal/aws/k8s/k8sclient/clientset.go +++ b/internal/aws/k8s/k8sclient/clientset.go @@ -117,7 +117,7 @@ func getStringifiedOptions(options ...Option) string { } // Get returns a singleton instance of k8s client -// If the intialization fails, it returns nil +// If the initialization fails, it returns nil func Get(logger *zap.Logger, options ...Option) *K8sClient { strOptions := getStringifiedOptions(options...) From 479ab4e085ad6982ab448261be830dcf3adaf7dc Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:42:28 -0500 Subject: [PATCH 192/450] spelling: invalid Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/stanza/entry/copy_test.go | 2 +- pkg/stanza/operator/output/drop/output_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/stanza/entry/copy_test.go b/pkg/stanza/entry/copy_test.go index c2cfc4512fe4..e08f75777818 100644 --- a/pkg/stanza/entry/copy_test.go +++ b/pkg/stanza/entry/copy_test.go @@ -138,7 +138,7 @@ func TestCopyUnknownValueValid(t *testing.T) { require.Equal(t, expectedValue, copiedValue) } -func TestCopyUnknownValueInalid(t *testing.T) { +func TestCopyUnknownValueInvalid(t *testing.T) { unknownValue := map[string]any{ "foo": make(chan int), } diff --git a/pkg/stanza/operator/output/drop/output_test.go b/pkg/stanza/operator/output/drop/output_test.go index 520dcfee6e4b..f691865e3e6d 100644 --- a/pkg/stanza/operator/output/drop/output_test.go +++ b/pkg/stanza/operator/output/drop/output_test.go @@ -21,7 +21,7 @@ func TestBuildValid(t *testing.T) { require.IsType(t, &Output{}, op) } -func TestBuildIvalid(t *testing.T) { +func TestBuildInvalid(t *testing.T) { cfg := NewConfig("test") set := componenttest.NewNopTelemetrySettings() set.Logger = nil From 6d49e693aa038860158619f696ed4e0748f6e0f8 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 3 Jan 2025 09:52:16 -0500 Subject: [PATCH 193/450] spelling: is equal Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/awsemfexporter/datapoint.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/awsemfexporter/datapoint.go b/exporter/awsemfexporter/datapoint.go index 36d16b62de88..eb6ccc2b87b8 100644 --- a/exporter/awsemfexporter/datapoint.go +++ b/exporter/awsemfexporter/datapoint.go @@ -567,7 +567,7 @@ func getDataPoints(pmd pmetric.Metric, metadata cWMetricMetadata, logger *zap.Lo // For summaries coming from the prometheus receiver, the sum and count are cumulative, whereas for summaries // coming from other sources, e.g. SDK, the sum and count are delta by being accumulated and reset periodically. // In order to ensure metrics are sent as deltas, we check the receiver attribute (which can be injected by - // attribute processor) from resource metrics. If it exists, and equals to prometheus, the sum and count will be + // attribute processor) from resource metrics. If it exists, and is equal to prometheus, the sum and count will be // converted. // For more information: https://github.com/open-telemetry/opentelemetry-collector/blob/main/receiver/prometheusreceiver/DESIGN.md#summary metricMetadata.adjustToDelta = metadata.receiver == prometheusReceiver From af8b00b2ccc47ace69d8cb9dace6ca72594e5c83 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:49:35 -0500 Subject: [PATCH 194/450] spelling: issue Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b428b4bdc5b..a5e4ce2f5a02 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4394,7 +4394,7 @@ This release fixes CVE-2024-42368 on the `bearerauthtokenextension` (#34516) - `postgresqlreceiver`: Fix issue where WAL stats query was incorrectly coalescing intervals. (#16769) - `splunkhecexporter`: Fix data race when gzip compression is enabled (#17083) Removed gzip writer pool and create a new one when needed. -- `splunkhecexporter`: Fix isssue where splunkhec exporter always returns over capacity error when compression is enabled and MaxContentLength is 0 (#17035) +- `splunkhecexporter`: Fix issue where splunkhec exporter always returns over capacity error when compression is enabled and MaxContentLength is 0 (#17035) ## v0.67.0 From 013b3facc16f533791044c70a238a5b5e35fad15 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 3 Jan 2025 09:50:38 -0500 Subject: [PATCH 195/450] spelling: its Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- cmd/opampsupervisor/README.md | 4 ++-- exporter/loadbalancingexporter/README.md | 2 +- exporter/prometheusremotewriteexporter/helper.go | 2 +- processor/k8sattributesprocessor/README.md | 2 +- processor/resourcedetectionprocessor/README.md | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cmd/opampsupervisor/README.md b/cmd/opampsupervisor/README.md index 381a9c23b582..bf2e6f004cbc 100644 --- a/cmd/opampsupervisor/README.md +++ b/cmd/opampsupervisor/README.md @@ -86,6 +86,6 @@ For a list of open issues related to the Supervisor, see [these issues](https:// | Starts and stops a Collector using remote configuration | ⚠️ | | Communicates with OpAMP extension running in the Collector | | | Updates the Collector binary | 📅 | -| Configures the Collector to report it's own metrics over OTLP | 📅 | -| Configures the Collector to report it's own logs over OTLP | 📅 | +| Configures the Collector to report its own metrics over OTLP | 📅 | +| Configures the Collector to report its own logs over OTLP | 📅 | | Sanitization or restriction of Collector config | | diff --git a/exporter/loadbalancingexporter/README.md b/exporter/loadbalancingexporter/README.md index a6d5e8606d8e..667b21c833af 100644 --- a/exporter/loadbalancingexporter/README.md +++ b/exporter/loadbalancingexporter/README.md @@ -48,7 +48,7 @@ This also supports service name based exporting for traces. If you have two or m ## Resilience and scaling considerations -The `loadbalancingexporter` will, irrespective of the chosen resolver (`static`, `dns`, `k8s`), create one `otlp` exporter per endpoint. Each level of exporters, `loadbalancingexporter` itself and all sub-exporters (one per each endpoint), have it's own queue, timeout and retry mechanisms. Importantly, the `loadbalancingexporter`, by default, will NOT attempt to re-route data to a healthy endpoint on delivery failure, because in-memory queue, retry and timeout setting are disabled by default ([more details on queuing, retry and timeout default settings](https://github.com/open-telemetry/opentelemetry-collector/blob/main/exporter/exporterhelper/README.md)). +The `loadbalancingexporter` will, irrespective of the chosen resolver (`static`, `dns`, `k8s`), create one `otlp` exporter per endpoint. Each level of exporters, `loadbalancingexporter` itself and all sub-exporters (one per each endpoint), have its own queue, timeout and retry mechanisms. Importantly, the `loadbalancingexporter`, by default, will NOT attempt to re-route data to a healthy endpoint on delivery failure, because in-memory queue, retry and timeout setting are disabled by default ([more details on queuing, retry and timeout default settings](https://github.com/open-telemetry/opentelemetry-collector/blob/main/exporter/exporterhelper/README.md)). ``` +------------------+ +---------------+ diff --git a/exporter/prometheusremotewriteexporter/helper.go b/exporter/prometheusremotewriteexporter/helper.go index 26def2570eff..265864aade15 100644 --- a/exporter/prometheusremotewriteexporter/helper.go +++ b/exporter/prometheusremotewriteexporter/helper.go @@ -95,7 +95,7 @@ func batchTimeSeries(tsMap map[string]*prompb.TimeSeries, maxBatchByteSize int, func convertTimeseriesToRequest(tsArray []prompb.TimeSeries) *prompb.WriteRequest { // the remote_write endpoint only requires the timeseries. - // otlp defines it's own way to handle metric metadata + // otlp defines its own way to handle metric metadata return &prompb.WriteRequest{ // Prometheus requires time series to be sorted by Timestamp to avoid out of order problems. // See: diff --git a/processor/k8sattributesprocessor/README.md b/processor/k8sattributesprocessor/README.md index c13667c0e25e..f86d1959a714 100644 --- a/processor/k8sattributesprocessor/README.md +++ b/processor/k8sattributesprocessor/README.md @@ -389,7 +389,7 @@ When running as an agent, the processor detects IP addresses of pods sending spa and uses this information to extract metadata from pods. When running as an agent, it is important to apply a discovery filter so that the processor only discovers pods from the same host that it is running on. Not using such a filter can result in unnecessary resource usage especially on very large clusters. Once the filter is applied, -each processor will only query the k8s API for pods running on it's own node. +each processor will only query the k8s API for pods running on its own node. Node filter can be applied by setting the `filter.node` config option to the name of a k8s node. While this works as expected, it cannot be used to automatically filter pods by the same node that the processor is running on in diff --git a/processor/resourcedetectionprocessor/README.md b/processor/resourcedetectionprocessor/README.md index cf16a5abc9e8..bd200ef4da43 100644 --- a/processor/resourcedetectionprocessor/README.md +++ b/processor/resourcedetectionprocessor/README.md @@ -410,7 +410,7 @@ If accurate parsing cannot be performed, the infrastructure resource group value ### Consul -Queries a [consul agent](https://www.consul.io/docs/agent) and reads its' [configuration endpoint](https://www.consul.io/api-docs/agent#read-configuration) to retrieve related resource attributes: +Queries a [consul agent](https://www.consul.io/docs/agent) and reads its [configuration endpoint](https://www.consul.io/api-docs/agent#read-configuration) to retrieve related resource attributes: The list of the populated resource attributes can be found at [Consul Detector Resource Attributes](./internal/consul/documentation.md). From 11c4c2608677c2790af6bb56e0dd05629f17523d Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:52:49 -0500 Subject: [PATCH 196/450] spelling: kubelet Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- receiver/kubeletstatsreceiver/factory.go | 2 +- receiver/kubeletstatsreceiver/scraper.go | 22 +++++++++---------- receiver/kubeletstatsreceiver/scraper_test.go | 16 +++++++------- 4 files changed, 21 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a5e4ce2f5a02..23efb006b9a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5508,7 +5508,7 @@ This version has been skipped. ### 🧰 Bug fixes 🧰 -- `kubletetstatsreceiver`: Bring back `k8s.container.name` attribute (#10848) +- `kubeletstatsreceiver`: Bring back `k8s.container.name` attribute (#10848) - `transformprocessor`: Fix issue where some metric fields were not working correctly in conditions. (#10473) - `transformprocessor`: Fix issue where some trace fields were not working correctly in conditions. (#10471) - `transformprocessor`: Fix issue where some log fields were not working correctly in conditions. (#10903) diff --git a/receiver/kubeletstatsreceiver/factory.go b/receiver/kubeletstatsreceiver/factory.go index 4ae2e9f39567..b82d8b82a60a 100644 --- a/receiver/kubeletstatsreceiver/factory.go +++ b/receiver/kubeletstatsreceiver/factory.go @@ -103,7 +103,7 @@ func createMetricsReceiver( } } - scrp, err := newKubletScraper(rest, set, rOptions, cfg.MetricsBuilderConfig, cfg.NodeName) + scrp, err := newKubeletScraper(rest, set, rOptions, cfg.MetricsBuilderConfig, cfg.NodeName) if err != nil { return nil, err } diff --git a/receiver/kubeletstatsreceiver/scraper.go b/receiver/kubeletstatsreceiver/scraper.go index ce7c71730324..e19a37487c81 100644 --- a/receiver/kubeletstatsreceiver/scraper.go +++ b/receiver/kubeletstatsreceiver/scraper.go @@ -32,7 +32,7 @@ type scraperOptions struct { k8sAPIClient kubernetes.Interface } -type kubletScraper struct { +type kubeletScraper struct { statsProvider *kubelet.StatsProvider metadataProvider *kubelet.MetadataProvider logger *zap.Logger @@ -50,14 +50,14 @@ type kubletScraper struct { nodeLimits *kubelet.NodeCapacity } -func newKubletScraper( +func newKubeletScraper( restClient kubelet.RestClient, set receiver.Settings, rOptions *scraperOptions, metricsConfig metadata.MetricsBuilderConfig, nodeName string, ) (scraper.Metrics, error) { - ks := &kubletScraper{ + ks := &kubeletScraper{ statsProvider: kubelet.NewStatsProvider(restClient), metadataProvider: kubelet.NewMetadataProvider(restClient), logger: set.Logger, @@ -97,7 +97,7 @@ func newKubletScraper( ) } -func (r *kubletScraper) scrape(context.Context) (pmetric.Metrics, error) { +func (r *kubeletScraper) scrape(context.Context) (pmetric.Metrics, error) { summary, err := r.statsProvider.StatsSummary() if err != nil { r.logger.Error("call to /stats/summary endpoint failed", zap.Error(err)) @@ -129,7 +129,7 @@ func (r *kubletScraper) scrape(context.Context) (pmetric.Metrics, error) { return md, nil } -func (r *kubletScraper) detailedPVCLabelsSetter() func(rb *metadata.ResourceBuilder, volCacheID, volumeClaim, namespace string) error { +func (r *kubeletScraper) detailedPVCLabelsSetter() func(rb *metadata.ResourceBuilder, volCacheID, volumeClaim, namespace string) error { return func(rb *metadata.ResourceBuilder, volCacheID, volumeClaim, namespace string) error { if r.k8sAPIClient == nil { return nil @@ -160,13 +160,13 @@ func (r *kubletScraper) detailedPVCLabelsSetter() func(rb *metadata.ResourceBuil } } -func (r *kubletScraper) node() kubelet.NodeCapacity { +func (r *kubeletScraper) node() kubelet.NodeCapacity { r.m.RLock() defer r.m.RUnlock() return *r.nodeLimits } -func (r *kubletScraper) start(_ context.Context, _ component.Host) error { +func (r *kubeletScraper) start(_ context.Context, _ component.Host) error { if r.nodeInformer != nil { _, err := r.nodeInformer.AddEventHandler(cache.ResourceEventHandlerFuncs{ AddFunc: r.handleNodeAdd, @@ -180,7 +180,7 @@ func (r *kubletScraper) start(_ context.Context, _ component.Host) error { return nil } -func (r *kubletScraper) shutdown(_ context.Context) error { +func (r *kubeletScraper) shutdown(_ context.Context) error { r.logger.Debug("executing close") if r.stopCh != nil { close(r.stopCh) @@ -188,7 +188,7 @@ func (r *kubletScraper) shutdown(_ context.Context) error { return nil } -func (r *kubletScraper) handleNodeAdd(obj any) { +func (r *kubeletScraper) handleNodeAdd(obj any) { if node, ok := obj.(*v1.Node); ok { r.addOrUpdateNode(node) } else { @@ -196,7 +196,7 @@ func (r *kubletScraper) handleNodeAdd(obj any) { } } -func (r *kubletScraper) handleNodeUpdate(_, newNode any) { +func (r *kubeletScraper) handleNodeUpdate(_, newNode any) { if node, ok := newNode.(*v1.Node); ok { r.addOrUpdateNode(node) } else { @@ -204,7 +204,7 @@ func (r *kubletScraper) handleNodeUpdate(_, newNode any) { } } -func (r *kubletScraper) addOrUpdateNode(node *v1.Node) { +func (r *kubeletScraper) addOrUpdateNode(node *v1.Node) { r.m.Lock() defer r.m.Unlock() diff --git a/receiver/kubeletstatsreceiver/scraper_test.go b/receiver/kubeletstatsreceiver/scraper_test.go index 8905ea9c015c..45680d17bcba 100644 --- a/receiver/kubeletstatsreceiver/scraper_test.go +++ b/receiver/kubeletstatsreceiver/scraper_test.go @@ -55,7 +55,7 @@ func TestScraper(t *testing.T) { options := &scraperOptions{ metricGroupsToCollect: allMetricGroups, } - r, err := newKubletScraper( + r, err := newKubeletScraper( &fakeRestClient{}, receivertest.NewNopSettings(), options, @@ -105,7 +105,7 @@ func TestScraperWithCPUNodeUtilization(t *testing.T) { }, k8sAPIClient: client, } - r, err := newKubletScraper( + r, err := newKubeletScraper( &fakeRestClient{}, receivertest.NewNopSettings(), options, @@ -185,7 +185,7 @@ func TestScraperWithMemoryNodeUtilization(t *testing.T) { }, k8sAPIClient: client, } - r, err := newKubletScraper( + r, err := newKubeletScraper( &fakeRestClient{}, receivertest.NewNopSettings(), options, @@ -277,7 +277,7 @@ func TestScraperWithMetadata(t *testing.T) { extraMetadataLabels: tt.metadataLabels, metricGroupsToCollect: tt.metricGroups, } - r, err := newKubletScraper( + r, err := newKubeletScraper( &fakeRestClient{}, receivertest.NewNopSettings(), options, @@ -469,7 +469,7 @@ func TestScraperWithPercentMetrics(t *testing.T) { }, ResourceAttributes: metadata.DefaultResourceAttributesConfig(), } - r, err := newKubletScraper( + r, err := newKubeletScraper( &fakeRestClient{}, receivertest.NewNopSettings(), options, @@ -545,7 +545,7 @@ func TestScraperWithMetricGroups(t *testing.T) { } for _, test := range tests { t.Run(test.name, func(t *testing.T) { - r, err := newKubletScraper( + r, err := newKubeletScraper( &fakeRestClient{}, receivertest.NewNopSettings(), &scraperOptions{ @@ -707,7 +707,7 @@ func TestScraperWithPVCDetailedLabels(t *testing.T) { for _, test := range tests { t.Run(test.name, func(t *testing.T) { - r, err := newKubletScraper( + r, err := newKubeletScraper( &fakeRestClient{}, receivertest.NewNopSettings(), &scraperOptions{ @@ -795,7 +795,7 @@ func TestClientErrors(t *testing.T) { extraMetadataLabels: test.extraMetadataLabels, metricGroupsToCollect: test.metricGroupsToCollect, } - r, err := newKubletScraper( + r, err := newKubeletScraper( &fakeRestClient{ statsSummaryFail: test.statsSummaryFail, podsFail: test.podsFail, From dfe3ee055a2869d9cc8dcd3ff8fa81eb9e500ca2 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:51:51 -0500 Subject: [PATCH 197/450] spelling: kubernetes Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/kubeletstatsreceiver/mocked_objects_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/kubeletstatsreceiver/mocked_objects_test.go b/receiver/kubeletstatsreceiver/mocked_objects_test.go index 61797e1bc5c9..6144364b010f 100644 --- a/receiver/kubeletstatsreceiver/mocked_objects_test.go +++ b/receiver/kubeletstatsreceiver/mocked_objects_test.go @@ -13,7 +13,7 @@ import ( // getValidMockedObjects returns a list of volume claims and persistent // volume objects based on values present in testdata/pods.json. These -// values will be used to mock objects returned by the Kuberentes API. +// values will be used to mock objects returned by the Kubernetes API. func getValidMockedObjects() []runtime.Object { return []runtime.Object{ volumeClaim1, From 68b7fce2e5a62e64f383676d70ecdddad4db3a08 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:53:15 -0500 Subject: [PATCH 198/450] spelling: label Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- extension/observer/ecsobserver/docker_label.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extension/observer/ecsobserver/docker_label.go b/extension/observer/ecsobserver/docker_label.go index fad49d32650f..81a80ac0ddce 100644 --- a/extension/observer/ecsobserver/docker_label.go +++ b/extension/observer/ecsobserver/docker_label.go @@ -17,7 +17,7 @@ import ( // NOTE: it's possible to make DockerLabelConfig part of CommonExporterConfig // and use it both ServiceConfig and TaskDefinitionConfig. // However, based on existing users, few people mix different types of filters. -// If that usecase arises in the future, we can rewrite the top level docker lable filter +// If that usecase arises in the future, we can rewrite the top level docker label filter // using a task definition filter with arn_pattern:*. type DockerLabelConfig struct { CommonExporterConfig `mapstructure:",squash" yaml:",inline"` From c50a9b3440566c928386d169c296d2ec0ef6780a Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:53:36 -0500 Subject: [PATCH 199/450] spelling: labels Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/translator/loki/logs_to_loki_test.go | 8 ++++---- pkg/translator/opencensus/oc_to_metrics.go | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/pkg/translator/loki/logs_to_loki_test.go b/pkg/translator/loki/logs_to_loki_test.go index 342fb500a3dd..bdb01b658065 100644 --- a/pkg/translator/loki/logs_to_loki_test.go +++ b/pkg/translator/loki/logs_to_loki_test.go @@ -249,7 +249,7 @@ func TestLogsToLokiRequestWithoutTenant(t *testing.T) { levelAttribute string expectedLabel string expectedLines []string - defaultLebelsEnabled map[string]bool + defaultLabelsEnabled map[string]bool }{ { desc: "with attribute to label and regular attribute", @@ -313,7 +313,7 @@ func TestLogsToLokiRequestWithoutTenant(t *testing.T) { { desc: "with severity to label, but default_labels_enable disables level label", severity: plog.SeverityNumberDebug4, - defaultLebelsEnabled: map[string]bool{ + defaultLabelsEnabled: map[string]bool{ levelLabel: false, }, expectedLabel: `{exporter="OTLP"}`, @@ -338,7 +338,7 @@ func TestLogsToLokiRequestWithoutTenant(t *testing.T) { desc: "with severity, already existing level, but default_labels_enable disables level label", severity: plog.SeverityNumberDebug4, levelAttribute: "dummy", - defaultLebelsEnabled: map[string]bool{ + defaultLabelsEnabled: map[string]bool{ levelLabel: false, }, expectedLabel: `{exporter="OTLP"}`, @@ -475,7 +475,7 @@ func TestLogsToLokiRequestWithoutTenant(t *testing.T) { } // test - requests := LogsToLokiRequests(ld, tt.defaultLebelsEnabled) + requests := LogsToLokiRequests(ld, tt.defaultLabelsEnabled) assert.Len(t, requests, 1) request := requests[""] diff --git a/pkg/translator/opencensus/oc_to_metrics.go b/pkg/translator/opencensus/oc_to_metrics.go index 4af329f24dcd..da791f43e701 100644 --- a/pkg/translator/opencensus/oc_to_metrics.go +++ b/pkg/translator/opencensus/oc_to_metrics.go @@ -193,15 +193,15 @@ func fillAttributesMap(ocLabelsKeys []*ocmetrics.LabelKey, ocLabelValues []*ocme return } - lablesCount := len(ocLabelsKeys) + labelsCount := len(ocLabelsKeys) // Handle invalid length of OC label values list - if len(ocLabelValues) < lablesCount { - lablesCount = len(ocLabelValues) + if len(ocLabelValues) < labelsCount { + labelsCount = len(ocLabelValues) } - attributesMap.EnsureCapacity(lablesCount) - for i := 0; i < lablesCount; i++ { + attributesMap.EnsureCapacity(labelsCount) + for i := 0; i < labelsCount; i++ { if !ocLabelValues[i].GetHasValue() { continue } From ca77ddafb7e98ec996bdc884254c641f59e53408 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:53:46 -0500 Subject: [PATCH 200/450] spelling: length Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/pdatatest/pprofiletest/profiles.go | 2 +- pkg/pdatatest/pprofiletest/profiles_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/pdatatest/pprofiletest/profiles.go b/pkg/pdatatest/pprofiletest/profiles.go index b6b144f05c8e..d0c08046d88c 100644 --- a/pkg/pdatatest/pprofiletest/profiles.go +++ b/pkg/pdatatest/pprofiletest/profiles.go @@ -452,7 +452,7 @@ func CompareProfileSample(expected, actual pprofile.Sample) error { } if expected.LocationsLength() != actual.LocationsLength() { - errs = multierr.Append(errs, fmt.Errorf("expected locationLenght '%d', got '%d'", expected.LocationsLength(), actual.LocationsLength())) + errs = multierr.Append(errs, fmt.Errorf("expected locationLength '%d', got '%d'", expected.LocationsLength(), actual.LocationsLength())) } if !reflect.DeepEqual(expected.TimestampsUnixNano().AsRaw(), actual.TimestampsUnixNano().AsRaw()) { diff --git a/pkg/pdatatest/pprofiletest/profiles_test.go b/pkg/pdatatest/pprofiletest/profiles_test.go index 471ba5ff0c4f..8b9a331282a9 100644 --- a/pkg/pdatatest/pprofiletest/profiles_test.go +++ b/pkg/pdatatest/pprofiletest/profiles_test.go @@ -1032,7 +1032,7 @@ func TestCompareProfileSampleSlice(t *testing.T) { return l }(), err: multierr.Combine( - fmt.Errorf(`sample "attributes: [1 2 3]": %w`, fmt.Errorf(`expected locationLenght '2', got '3'`)), + fmt.Errorf(`sample "attributes: [1 2 3]": %w`, fmt.Errorf(`expected locationLength '2', got '3'`)), ), }, { @@ -1123,7 +1123,7 @@ func TestCompareProfileSample(t *testing.T) { }(), err: multierr.Combine( errors.New(`expected locationStartIndex '1', got '2'`), - errors.New(`expected locationLenght '1', got '3'`), + errors.New(`expected locationLength '1', got '3'`), errors.New(`expected attributes '[1 2]', got '[1 2 3]'`), ), }, From ed01f0cf55eda884bc9f9dd3a1d7a7c4a41f7f73 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 3 Jan 2025 09:17:23 -0500 Subject: [PATCH 201/450] spelling: library Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/stanza/docs/types/timestamp.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/stanza/docs/types/timestamp.md b/pkg/stanza/docs/types/timestamp.md index 114ec4461cc7..35078f5896be 100644 --- a/pkg/stanza/docs/types/timestamp.md +++ b/pkg/stanza/docs/types/timestamp.md @@ -102,7 +102,7 @@ As a special case, the [`time_parser`](../operators/time_parser.md) operator sup ### Example Configurations -The following examples use file log receiver, but they also apply to other components that use the stanza libarary. +The following examples use file log receiver, but they also apply to other components that use the stanza library. #### Parse timestamps from plain text logs From ad4bbf889346871758c83362677b4661b4ff6c0b Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:16:57 -0500 Subject: [PATCH 202/450] spelling: listen Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/stanza/operator/input/tcp/input.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/stanza/operator/input/tcp/input.go b/pkg/stanza/operator/input/tcp/input.go index f5f0af8fd483..2dd2d3a5f7ab 100644 --- a/pkg/stanza/operator/input/tcp/input.go +++ b/pkg/stanza/operator/input/tcp/input.go @@ -78,7 +78,7 @@ func (i *Input) configureListener() error { return nil } -// goListenn will listen for tcp connections. +// goListen will listen for tcp connections. func (i *Input) goListen(ctx context.Context) { i.wg.Add(1) From 70bd1c8e1e033c5617cc0bb934604e6835bb7841 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:54:52 -0500 Subject: [PATCH 203/450] spelling: loadbalancing Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- exporter/loadbalancingexporter/example/README.md | 2 +- exporter/loadbalancingexporter/example/docker-compose.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 23efb006b9a0..8dcff5f99af5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7139,7 +7139,7 @@ The OpenTelemetry Collector Contrib contains everything in the [opentelemetry-co ### 🚀 New components 🚀 - `zookeeper` receiver: Collects metrics from a Zookeeper instance using the `mntr` command -- `loadbalacing` exporter: Consistently exports spans belonging to the same trace to the same backend +- `loadbalancing` exporter: Consistently exports spans belonging to the same trace to the same backend - `windowsperfcounters` receiver: Captures the configured system, application, or custom performance counter data from the Windows registry using the PDH interface - `awsprometheusremotewrite` exporter: Sends metrics data in Prometheus TimeSeries format to a Prometheus Remote Write Backend and signs each outgoing HTTP request following the AWS Signature Version 4 signing process diff --git a/exporter/loadbalancingexporter/example/README.md b/exporter/loadbalancingexporter/example/README.md index 6c5ef4710e2b..82e289d4f9aa 100644 --- a/exporter/loadbalancingexporter/example/README.md +++ b/exporter/loadbalancingexporter/example/README.md @@ -9,7 +9,7 @@ Supported pipeline types: logs docker build -t otelcontribcol . ``` -2. Then from this directory (exporter/loadbalacingexporter/example), run: +2. Then from this directory (exporter/loadbalancingexporter/example), run: ```shell docker-compose up ``` diff --git a/exporter/loadbalancingexporter/example/docker-compose.yaml b/exporter/loadbalancingexporter/example/docker-compose.yaml index 942d9506e856..a9e58e00785b 100644 --- a/exporter/loadbalancingexporter/example/docker-compose.yaml +++ b/exporter/loadbalancingexporter/example/docker-compose.yaml @@ -40,7 +40,7 @@ services: - "4317" # OTLP gRPC receiver - "55679" # zpages extension - # Otel agent (running loadbalacing exporter) + # Otel agent (running loadbalancing exporter) otel-agent: image: otelcontribcol:latest command: ["--config=/etc/otel-agent-config.yaml"] From 1cff2e3daf9720a718b73e3e4d1ce3138a2c119f Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 23:55:08 -0500 Subject: [PATCH 204/450] spelling: lock Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/prometheusreceiver/internal/metrics_adjuster.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/prometheusreceiver/internal/metrics_adjuster.go b/receiver/prometheusreceiver/internal/metrics_adjuster.go index ebb33bb970b5..d6e9a36e083b 100644 --- a/receiver/prometheusreceiver/internal/metrics_adjuster.go +++ b/receiver/prometheusreceiver/internal/metrics_adjuster.go @@ -209,7 +209,7 @@ func (jm *JobsMap) maybeGC() { func (jm *JobsMap) get(job, instance string) *timeseriesMap { sig := job + ":" + instance - // a read locke is taken here as we will not need to modify jobsMap if the target timeseriesMap is available. + // a read lock is taken here as we will not need to modify jobsMap if the target timeseriesMap is available. jm.RLock() tsm, ok := jm.jobsMap[sig] jm.RUnlock() From 2e8c023d45c9f88f6cb9b89748733d317cca0f66 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:17:27 -0500 Subject: [PATCH 205/450] spelling: logdedupprocessor Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8dcff5f99af5..73686b96abce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -980,7 +980,7 @@ This release fixes CVE-2024-42368 on the `bearerauthtokenextension` (#34516) ### 🚀 New components 🚀 -- `logdedupeprocessor`: Add new logdedupeprocessor processor that deduplicates log entries. (#34118) +- `logdedupprocessor`: Add new logdedupprocessor processor that deduplicates log entries. (#34118) - `coralogixprocessor`: creating new component for coralogix features (#33090) - `googlecloudmonitoringreceiver`: Adding new component - [Google Cloud monitoring](https://cloud.google.com/monitoring/api/metrics_gcp) receiver to fetch GCP Cloud Metrics and transform to OpenTelemetry compatible format. (#33762) From 4484c3000053be198323341e6cdb92090cc07dc1 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 3 Jan 2025 09:50:59 -0500 Subject: [PATCH 206/450] spelling: macos Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- cmd/opampsupervisor/README.md | 2 +- .../internal/scraper/processscraper/factory.go | 2 +- .../internal/scraper/systemscraper/factory.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/opampsupervisor/README.md b/cmd/opampsupervisor/README.md index bf2e6f004cbc..32101d02b39f 100644 --- a/cmd/opampsupervisor/README.md +++ b/cmd/opampsupervisor/README.md @@ -24,7 +24,7 @@ The supervisor is currently undergoing heavy development and is not ready for an make otelcontribcol ``` -3. Run the supervisor in the `cmd/opampsupervisor` directory of Collector contrib repository, substituting `` for your operating system (`darwin` for MacOS, `linux` or `windows`): +3. Run the supervisor in the `cmd/opampsupervisor` directory of Collector contrib repository, substituting `` for your operating system (`darwin` for macOS, `linux` or `windows`): ```shell cd cmd/opampsupervisor diff --git a/receiver/hostmetricsreceiver/internal/scraper/processscraper/factory.go b/receiver/hostmetricsreceiver/internal/scraper/processscraper/factory.go index 20971d017849..b8e9d6c97c6d 100644 --- a/receiver/hostmetricsreceiver/internal/scraper/processscraper/factory.go +++ b/receiver/hostmetricsreceiver/internal/scraper/processscraper/factory.go @@ -50,7 +50,7 @@ func (f *Factory) CreateMetricsScraper( cfg internal.Config, ) (scraper.Metrics, error) { if runtime.GOOS != "linux" && runtime.GOOS != "windows" && runtime.GOOS != "darwin" { - return nil, errors.New("process scraper only available on Linux, Windows, or MacOS") + return nil, errors.New("process scraper only available on Linux, Windows, or macOS") } s, err := newProcessScraper(settings, cfg.(*Config)) diff --git a/receiver/hostmetricsreceiver/internal/scraper/systemscraper/factory.go b/receiver/hostmetricsreceiver/internal/scraper/systemscraper/factory.go index c163bea26ec4..ccf1caacd009 100644 --- a/receiver/hostmetricsreceiver/internal/scraper/systemscraper/factory.go +++ b/receiver/hostmetricsreceiver/internal/scraper/systemscraper/factory.go @@ -38,7 +38,7 @@ func (f *Factory) CreateMetricsScraper( cfg internal.Config, ) (scraper.Metrics, error) { if runtime.GOOS != "linux" && runtime.GOOS != "windows" && runtime.GOOS != "darwin" { - return nil, errors.New("uptime scraper only available on Linux, Windows, or MacOS") + return nil, errors.New("uptime scraper only available on Linux, Windows, or macOS") } uptimeScraper := newUptimeScraper(ctx, settings, cfg.(*Config)) From 791b19a7e545a230f0fee7d4d2b3d2606793b0f4 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:18:09 -0500 Subject: [PATCH 207/450] spelling: maintain Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- cmd/opampsupervisor/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/opampsupervisor/README.md b/cmd/opampsupervisor/README.md index 32101d02b39f..1fce2164ee0d 100644 --- a/cmd/opampsupervisor/README.md +++ b/cmd/opampsupervisor/README.md @@ -34,7 +34,7 @@ The supervisor is currently undergoing heavy development and is not ready for an 4. The supervisor should connect to the OpAMP server and start a Collector instance. ## Persistent data storage -The supervisor persists some data to disk in order to mantain state between restarts. The directory where this data is stored may be specified via the supervisor configuration: +The supervisor persists some data to disk in order to maintain state between restarts. The directory where this data is stored may be specified via the supervisor configuration: ```yaml storage: directory: "/path/to/storage/dir" From 4de48bf229efce408f97ce4d807b9c2d4664636e Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:17:45 -0500 Subject: [PATCH 208/450] spelling: maintenance Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .github/workflows/changelog.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index 50efb4040a6d..a309f0eb9341 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -1,6 +1,6 @@ # This action requires that any PR targeting the main branch should add a # yaml file to the ./.chloggen/ directory. If a CHANGELOG entry is not required, -# or if performing maintance on the Changelog, add either \"[chore]\" to the title of +# or if performing maintenance on the Changelog, add either \"[chore]\" to the title of # the pull request or add the \"Skip Changelog\" label to disable this action. name: changelog From b704c57067044ea4f89b8fb595c3f2dffd1647fd Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:18:03 -0500 Subject: [PATCH 209/450] spelling: managed Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- extension/observer/ecsobserver/fetcher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extension/observer/ecsobserver/fetcher.go b/extension/observer/ecsobserver/fetcher.go index 209d5b218284..e10fb314266b 100644 --- a/extension/observer/ecsobserver/fetcher.go +++ b/extension/observer/ecsobserver/fetcher.go @@ -396,7 +396,7 @@ func (f *taskFetcher) attachService(tasks []*taskAnnotated, services []*ecs.Serv // Attach service to task for _, t := range tasks { - // taskAnnotated is created using RunTask i.e. not manged by a service. + // taskAnnotated is created using RunTask i.e. not managed by a service. if t.Task.StartedBy == nil { continue } From c9dd85b945363a9e77da4e8d4f085fd59cd361aa Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:17:54 -0500 Subject: [PATCH 210/450] spelling: mandatory Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- extension/observer/ecsobserver/task_definition.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extension/observer/ecsobserver/task_definition.go b/extension/observer/ecsobserver/task_definition.go index 37002def94e1..9b3cf3af60c7 100644 --- a/extension/observer/ecsobserver/task_definition.go +++ b/extension/observer/ecsobserver/task_definition.go @@ -15,7 +15,7 @@ import ( type TaskDefinitionConfig struct { CommonExporterConfig `mapstructure:",squash" yaml:",inline"` - // ArnPattern is mandetory, empty string means arn based match is skipped. + // ArnPattern is mandatory, empty string means arn based match is skipped. ArnPattern string `mapstructure:"arn_pattern" yaml:"arn_pattern"` // ContainerNamePattern is optional, empty string means all containers in that task definition would be exported. // Otherwise both service and container name petterns need to metch. From ed6131fc7c361b08d2b7f52392ab10f2fe555d5a Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:18:17 -0500 Subject: [PATCH 211/450] spelling: marshaling Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/fileexporter/marshaller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/fileexporter/marshaller.go b/exporter/fileexporter/marshaller.go index 166d42c4ce0d..69bc78f1ee7a 100644 --- a/exporter/fileexporter/marshaller.go +++ b/exporter/fileexporter/marshaller.go @@ -14,7 +14,7 @@ import ( "go.opentelemetry.io/collector/pdata/ptrace" ) -// Marshaler configuration used for marhsaling Protobuf +// Marshaler configuration used for marshaling Protobuf var tracesMarshalers = map[string]ptrace.Marshaler{ formatTypeJSON: &ptrace.JSONMarshaler{}, formatTypeProto: &ptrace.ProtoMarshaler{}, From 565732354caa4167f83c3fa83de034e9aa4a497d Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:36:40 -0500 Subject: [PATCH 212/450] spelling: match Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- extension/observer/ecsobserver/service.go | 2 +- extension/observer/ecsobserver/task_definition.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extension/observer/ecsobserver/service.go b/extension/observer/ecsobserver/service.go index 75bf480306e7..b4b8f8b8cb59 100644 --- a/extension/observer/ecsobserver/service.go +++ b/extension/observer/ecsobserver/service.go @@ -18,7 +18,7 @@ type ServiceConfig struct { // NamePattern is mandatory. NamePattern string `mapstructure:"name_pattern" yaml:"name_pattern"` // ContainerNamePattern is optional, empty string means all containers in that service would be exported. - // Otherwise both service and container name petterns need to metch. + // Otherwise both service and container name petterns need to match. ContainerNamePattern string `mapstructure:"container_name_pattern" yaml:"container_name_pattern"` } diff --git a/extension/observer/ecsobserver/task_definition.go b/extension/observer/ecsobserver/task_definition.go index 9b3cf3af60c7..b30a79e7c209 100644 --- a/extension/observer/ecsobserver/task_definition.go +++ b/extension/observer/ecsobserver/task_definition.go @@ -18,7 +18,7 @@ type TaskDefinitionConfig struct { // ArnPattern is mandatory, empty string means arn based match is skipped. ArnPattern string `mapstructure:"arn_pattern" yaml:"arn_pattern"` // ContainerNamePattern is optional, empty string means all containers in that task definition would be exported. - // Otherwise both service and container name petterns need to metch. + // Otherwise both service and container name petterns need to match. ContainerNamePattern string `mapstructure:"container_name_pattern" yaml:"container_name_pattern"` } From 06784ab787d884246876ad81591665e286f563d4 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 3 Jan 2025 09:55:51 -0500 Subject: [PATCH 213/450] spelling: math Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/ottl/paths_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/ottl/paths_test.go b/pkg/ottl/paths_test.go index 9f31dda15718..a1d3b1f97682 100644 --- a/pkg/ottl/paths_test.go +++ b/pkg/ottl/paths_test.go @@ -373,7 +373,7 @@ func Test_getParsedStatementPaths(t *testing.T) { }, }, { - name: "converter math math expression", + name: "converter math expression", statement: `set(attributes["test"], 1000 - 600) where 1 + 1 * 2 == three / One()`, expected: []path{ { From 3c48ad8fbc97c57d4bb84258645a3118b0dacd98 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:18:32 -0500 Subject: [PATCH 214/450] spelling: mccontainer Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/awsemfexporter/grouped_metric_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exporter/awsemfexporter/grouped_metric_test.go b/exporter/awsemfexporter/grouped_metric_test.go index c72f9b53e993..35b2ffff3f67 100644 --- a/exporter/awsemfexporter/grouped_metric_test.go +++ b/exporter/awsemfexporter/grouped_metric_test.go @@ -454,7 +454,7 @@ func TestAddKubernetesWrapper(t *testing.T) { dockerObj := struct { ContainerID string `json:"container_id"` }{ - ContainerID: "Container mccontainter the third", + ContainerID: "Container mccontainer the third", } expectedCreatedObj := struct { ContainerName string `json:"container_name"` @@ -469,7 +469,7 @@ func TestAddKubernetesWrapper(t *testing.T) { } inputs := make(map[string]string) - inputs["container_id"] = "Container mccontainter the third" + inputs["container_id"] = "Container mccontainer the third" inputs["container"] = "container mccontainer" inputs["NodeName"] = "hosty de la host" inputs["PodId"] = "Le id de Pod" From 0410749979a16431bb93f550a889e3d80df80d54 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:19:12 -0500 Subject: [PATCH 215/450] spelling: mdatagen Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c2f346c3135f..e2a668861c92 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -125,7 +125,7 @@ Components refer to connectors, exporters, extensions, processors, and receivers * Implement the [component.Component](https://pkg.go.dev/go.opentelemetry.io/collector/component#Component) interface * Provide a configuration structure which defines the configuration of the component * Provide the implementation which performs the component operation -* Have a `metadata.yaml` file and its generated code (using [mdatadgen](https://github.com/open-telemetry/opentelemetry-collector/blob/main/cmd/mdatagen/README.md)). +* Have a `metadata.yaml` file and its generated code (using [mdatagen](https://github.com/open-telemetry/opentelemetry-collector/blob/main/cmd/mdatagen/README.md)). Familiarize yourself with the interface of the component that you want to write, and use existing implementations as a reference. [Building a Trace Receiver](https://opentelemetry.io/docs/collector/trace-receiver/) tutorial provides a detailed example of building a component. From 4bd735573e523fb1e52c01eea65afac09c078203 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:36:16 -0500 Subject: [PATCH 216/450] spelling: measurement Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../internal/scraper/loadscraper/load_scraper_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/hostmetricsreceiver/internal/scraper/loadscraper/load_scraper_test.go b/receiver/hostmetricsreceiver/internal/scraper/loadscraper/load_scraper_test.go index 91fa42fc5d8b..4ba8805847e6 100644 --- a/receiver/hostmetricsreceiver/internal/scraper/loadscraper/load_scraper_test.go +++ b/receiver/hostmetricsreceiver/internal/scraper/loadscraper/load_scraper_test.go @@ -72,7 +72,7 @@ func TestScrape(t *testing.T) { resultsMapLock := sync.Mutex{} testFn := func(t *testing.T, test testCase) { - // wait for messurement to start + // wait for measurement to start <-startChan scraper := newLoadScraper(context.Background(), receivertest.NewNopSettings(), test.config) From 76815e2ef939dee127d2cba0129360af65a12f69 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:19:20 -0500 Subject: [PATCH 217/450] spelling: mechanism Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/datadogreceiver/receiver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/datadogreceiver/receiver.go b/receiver/datadogreceiver/receiver.go index e667ebec5221..714ad0f7b8b0 100644 --- a/receiver/datadogreceiver/receiver.go +++ b/receiver/datadogreceiver/receiver.go @@ -215,7 +215,7 @@ func (ddr *datadogReceiver) handleInfo(w http.ResponseWriter, _ *http.Request, i } func (ddr *datadogReceiver) handleTraces(w http.ResponseWriter, req *http.Request) { - if req.ContentLength == 0 { // Ping mecanism of Datadog SDK perform http request with empty body when GET /info not implemented. + if req.ContentLength == 0 { // Ping mechanism of Datadog SDK perform http request with empty body when GET /info not implemented. http.Error(w, "Fake featuresdiscovery", http.StatusBadRequest) // The response code should be different of 404 to be considered ok by Datadog SDK. return } From 0520cabd2597ce518eb75da65aab9b77bb0e59c5 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 09:12:26 -0500 Subject: [PATCH 218/450] spelling: memory Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/stanza/operator/parser/regex/parser_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/stanza/operator/parser/regex/parser_test.go b/pkg/stanza/operator/parser/regex/parser_test.go index 56e119bbec6e..c7e75c530bbf 100644 --- a/pkg/stanza/operator/parser/regex/parser_test.go +++ b/pkg/stanza/operator/parser/regex/parser_test.go @@ -91,7 +91,7 @@ func TestParserRegex(t *testing.T) { }, }, { - "MemeoryCache", + "MemoryCache", func(p *Config) { p.Regex = "a=(?P.*)" p.Cache.Size = 100 From 8f1d9f2f8e40305b9f6b5a41ada6d6ef69f29695 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 09:12:46 -0500 Subject: [PATCH 219/450] spelling: message Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- extension/opampextension/registry_test.go | 30 +++++++++---------- .../internal/libhoneyevent/libhoneyevent.go | 4 +-- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/extension/opampextension/registry_test.go b/extension/opampextension/registry_test.go index 7c1fe69b231b..f70739ea08b9 100644 --- a/extension/opampextension/registry_test.go +++ b/extension/opampextension/registry_test.go @@ -60,11 +60,11 @@ func TestRegistry_ProcessMessage(t *testing.T) { t.Run("Calls registered callback", func(t *testing.T) { capabilityString := "io.opentelemetry.teapot" messageType := "steep" - mesageBytes := []byte("blackTea") + messageBytes := []byte("blackTea") customMessage := &protobufs.CustomMessage{ Capability: capabilityString, Type: messageType, - Data: mesageBytes, + Data: messageBytes, } client := mockCustomCapabilityClient{} @@ -83,11 +83,11 @@ func TestRegistry_ProcessMessage(t *testing.T) { t.Run("Skips blocked message channels", func(t *testing.T) { capabilityString := "io.opentelemetry.teapot" messageType := "steep" - mesageBytes := []byte("blackTea") + messageBytes := []byte("blackTea") customMessage := &protobufs.CustomMessage{ Capability: capabilityString, Type: messageType, - Data: mesageBytes, + Data: messageBytes, } client := mockCustomCapabilityClient{} @@ -148,18 +148,18 @@ func TestRegistry_ProcessMessage(t *testing.T) { }) } -func TestCustomCapability_SendMesage(t *testing.T) { +func TestCustomCapability_SendMessage(t *testing.T) { t.Run("Sends message", func(t *testing.T) { capabilityString := "io.opentelemetry.teapot" messageType := "brew" - mesageBytes := []byte("black") + messageBytes := []byte("black") client := mockCustomCapabilityClient{ sendCustomMessage: func(message *protobufs.CustomMessage) (chan struct{}, error) { require.Equal(t, &protobufs.CustomMessage{ Capability: capabilityString, Type: messageType, - Data: mesageBytes, + Data: messageBytes, }, message) return nil, nil }, @@ -171,7 +171,7 @@ func TestCustomCapability_SendMesage(t *testing.T) { require.NoError(t, err) require.NotNil(t, sender) - channel, err := sender.SendMessage(messageType, mesageBytes) + channel, err := sender.SendMessage(messageType, messageBytes) require.NoError(t, err) require.Nil(t, channel, nil) }) @@ -181,11 +181,11 @@ func TestCustomCapability_Unregister(t *testing.T) { t.Run("Unregistered capability callback is no longer called", func(t *testing.T) { capabilityString := "io.opentelemetry.teapot" messageType := "steep" - mesageBytes := []byte("blackTea") + messageBytes := []byte("blackTea") customMessage := &protobufs.CustomMessage{ Capability: capabilityString, Type: messageType, - Data: mesageBytes, + Data: messageBytes, } client := mockCustomCapabilityClient{} @@ -210,11 +210,11 @@ func TestCustomCapability_Unregister(t *testing.T) { t.Run("Unregister is successful even if set capabilities fails", func(t *testing.T) { capabilityString := "io.opentelemetry.teapot" messageType := "steep" - mesageBytes := []byte("blackTea") + messageBytes := []byte("blackTea") customMessage := &protobufs.CustomMessage{ Capability: capabilityString, Type: messageType, - Data: mesageBytes, + Data: messageBytes, } client := &mockCustomCapabilityClient{} @@ -243,7 +243,7 @@ func TestCustomCapability_Unregister(t *testing.T) { t.Run("Does not send if unregistered", func(t *testing.T) { capabilityString := "io.opentelemetry.teapot" messageType := "steep" - mesageBytes := []byte("blackTea") + messageBytes := []byte("blackTea") client := mockCustomCapabilityClient{} @@ -255,7 +255,7 @@ func TestCustomCapability_Unregister(t *testing.T) { unregisteredSender.Unregister() - _, err = unregisteredSender.SendMessage(messageType, mesageBytes) + _, err = unregisteredSender.SendMessage(messageType, messageBytes) require.ErrorContains(t, err, "capability has already been unregistered") select { @@ -267,7 +267,7 @@ func TestCustomCapability_Unregister(t *testing.T) { } type mockCustomCapabilityClient struct { - sendCustomMessage func(message *protobufs.CustomMessage) (chan struct{}, error) + sendCustomMessage func(message *protobufs.CustomMessage) (chan struct{}, error) setCustomCapabilities func(customCapabilities *protobufs.CustomCapabilities) error } diff --git a/receiver/libhoneyreceiver/internal/libhoneyevent/libhoneyevent.go b/receiver/libhoneyreceiver/internal/libhoneyevent/libhoneyevent.go index f9245ac00cfd..14a518472b39 100644 --- a/receiver/libhoneyreceiver/internal/libhoneyevent/libhoneyevent.go +++ b/receiver/libhoneyreceiver/internal/libhoneyevent/libhoneyevent.go @@ -332,8 +332,8 @@ func (l *LibhoneyEvent) ToPTraceSpan(newSpan *ptrace.Span, alreadyUsedFields *[] if spanName, ok := l.Data[cfg.Attributes.Name]; ok { newSpan.SetName(spanName.(string)) } - if spanStatusMessge, ok := l.Data["status_message"]; ok { - newSpan.Status().SetMessage(spanStatusMessge.(string)) + if spanStatusMessage, ok := l.Data["status_message"]; ok { + newSpan.Status().SetMessage(spanStatusMessage.(string)) } newSpan.Status().SetCode(ptrace.StatusCodeUnset) From db0cc6a822db110f4583b3584219f9f5c9c0d604 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:36:09 -0500 Subject: [PATCH 220/450] spelling: messages Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 73686b96abce..6aeefb4de128 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4329,7 +4329,7 @@ This release fixes CVE-2024-42368 on the `bearerauthtokenextension` (#34516) - `internal/comparetest`: add golden functions ReadLogs, WriteLogs, CompareLogs (#10896) - `haproxyreceiver`: Adds a new socket interface and CSV reader for haproxy stats (#16829) - `resourcedetectionprocessor`: Add support to detect Heroku resources (#16833) -- `logstransformprocessor`: Lets the logs transform processor directly pass messags to next consumer, avoiding the timing issues it previously exhibited. (#16604, #15378, #9761) +- `logstransformprocessor`: Lets the logs transform processor directly pass messages to next consumer, avoiding the timing issues it previously exhibited. (#16604, #15378, #9761) - `mdatagen`: Add ability to specify additional warnings in metadata.yaml (#17180) - `signalfxexporter`: Add all HTTP client settings to the SignalFx exporter configuration (#16807) - `snowflakereceiver`: added client to snowflakereceiver (#14754) From 9ccd3de72e9425a60000280b8d8f77c3f575c213 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:36:22 -0500 Subject: [PATCH 221/450] spelling: metadata Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- extension/cgroupruntimeextension/integration_test.go | 2 +- pkg/stanza/fileconsumer/internal/tracker/tracker.go | 2 +- receiver/k8sclusterreceiver/receiver_test.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/extension/cgroupruntimeextension/integration_test.go b/extension/cgroupruntimeextension/integration_test.go index 29032012a295..068c49dc82bb 100644 --- a/extension/cgroupruntimeextension/integration_test.go +++ b/extension/cgroupruntimeextension/integration_test.go @@ -373,7 +373,7 @@ func TestECSCgroupV2SudoIntegration(t *testing.T) { for _, test := range tests { t.Run(test.name, func(t *testing.T) { - // running in ECS environment, set the ECS metedata URI environment variable + // running in ECS environment, set the ECS metadata URI environment variable // to get the Cgroup CPU quota from the httptest server server := testServerECSMetadata(t, test.containerCPU, test.taskCPU) t.Setenv(ecsMetadataURI, server.URL) diff --git a/pkg/stanza/fileconsumer/internal/tracker/tracker.go b/pkg/stanza/fileconsumer/internal/tracker/tracker.go index 8b09ec17ca07..13b7de6b57e5 100644 --- a/pkg/stanza/fileconsumer/internal/tracker/tracker.go +++ b/pkg/stanza/fileconsumer/internal/tracker/tracker.go @@ -218,7 +218,7 @@ func (t *fileTracker) FindFiles(fps []*fingerprint.Fingerprint) []*reader.Metada continue } if md := data.Match(fp, fileset.StartsWith); md != nil { - // update the matched metada for the index + // update the matched metadata for the index matchedMetadata[j] = md archiveModified = true numMatched++ diff --git a/receiver/k8sclusterreceiver/receiver_test.go b/receiver/k8sclusterreceiver/receiver_test.go index 46623c0569e9..03d5fb9810d9 100644 --- a/receiver/k8sclusterreceiver/receiver_test.go +++ b/receiver/k8sclusterreceiver/receiver_test.go @@ -241,7 +241,7 @@ func TestReceiverWithMetadata(t *testing.T) { deletePods(t, client, 1) // Ensure ConsumeKubernetesMetadata is called twice, once for the add and - // then for the update. Note the second update does not result in metatada call + // then for the update. Note the second update does not result in metadata call // since the pod is not changed. require.Eventually(t, func() bool { return int(numCalls.Load()) == 2 From bce124eb5c37f54504137d4df34e01ba6e2cc7b6 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 09:12:40 -0500 Subject: [PATCH 222/450] spelling: metrics Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/signalfxexporter/internal/translation/translator.go | 2 +- extension/observer/ecsobserver/task_test.go | 2 +- receiver/collectdreceiver/collectd_test.go | 4 ++-- receiver/collectdreceiver/receiver_test.go | 4 ++-- receiver/pulsarreceiver/factory.go | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/exporter/signalfxexporter/internal/translation/translator.go b/exporter/signalfxexporter/internal/translation/translator.go index ab7795b8917f..5dd4b7dccb76 100644 --- a/exporter/signalfxexporter/internal/translation/translator.go +++ b/exporter/signalfxexporter/internal/translation/translator.go @@ -46,7 +46,7 @@ const ( // ActionCopyMetrics copies metrics using Rule.Mapping. // Rule.DimensionKey and Rule.DimensionValues can be used to filter datapoints that must be copied, - // if these fields are set, only metics having a dimension with key == Rule.DimensionKey and + // if these fields are set, only metrics having a dimension with key == Rule.DimensionKey and // value in Rule.DimensionValues will be copied. ActionCopyMetrics Action = "copy_metrics" diff --git a/extension/observer/ecsobserver/task_test.go b/extension/observer/ecsobserver/task_test.go index 2085912b8655..5f8a91c4314a 100644 --- a/extension/observer/ecsobserver/task_test.go +++ b/extension/observer/ecsobserver/task_test.go @@ -237,7 +237,7 @@ func TestTask_AddMatchedContainer(t *testing.T) { }, task.Matched) }) - t.Run("same container different metris path", func(t *testing.T) { + t.Run("same container different metrics path", func(t *testing.T) { task := taskAnnotated{ Matched: []matchedContainer{ { diff --git a/receiver/collectdreceiver/collectd_test.go b/receiver/collectdreceiver/collectd_test.go index a1c5dd7fba95..9c5a7cdb7d97 100644 --- a/receiver/collectdreceiver/collectd_test.go +++ b/receiver/collectdreceiver/collectd_test.go @@ -39,7 +39,7 @@ func TestDecodeEvent(t *testing.T) { func TestDecodeMetrics(t *testing.T) { metrics := pmetric.NewMetrics() - scopeMemtrics := metrics.ResourceMetrics().AppendEmpty().ScopeMetrics().AppendEmpty() + scopeMetrics := metrics.ResourceMetrics().AppendEmpty().ScopeMetrics().AppendEmpty() jsonData, err := os.ReadFile(filepath.Join("testdata", "collectd.json")) require.NoError(t, err) @@ -48,7 +48,7 @@ func TestDecodeMetrics(t *testing.T) { require.NoError(t, err) for _, cdr := range records { - err = cdr.appendToMetrics(zap.NewNop(), scopeMemtrics, map[string]string{}) + err = cdr.appendToMetrics(zap.NewNop(), scopeMetrics, map[string]string{}) assert.NoError(t, err) } assert.Equal(t, 10, metrics.MetricCount()) diff --git a/receiver/collectdreceiver/receiver_test.go b/receiver/collectdreceiver/receiver_test.go index f9ae893824cc..0d5a26967c29 100644 --- a/receiver/collectdreceiver/receiver_test.go +++ b/receiver/collectdreceiver/receiver_test.go @@ -193,7 +193,7 @@ func TestCollectDServer(t *testing.T) { func createWantedMetrics(wantedRequestBody wantedBody) pmetric.Metrics { var dataPoint pmetric.NumberDataPoint testMetrics := pmetric.NewMetrics() - scopeMemtrics := testMetrics.ResourceMetrics().AppendEmpty().ScopeMetrics().AppendEmpty() + scopeMetrics := testMetrics.ResourceMetrics().AppendEmpty().ScopeMetrics().AppendEmpty() testMetric := pmetric.NewMetric() testMetric.SetName(wantedRequestBody.Name) sum := testMetric.SetEmptySum() @@ -206,7 +206,7 @@ func createWantedMetrics(wantedRequestBody wantedBody) pmetric.Metrics { } attributes.CopyTo(dataPoint.Attributes()) dataPoint.SetDoubleValue(wantedRequestBody.Value) - newMetric := scopeMemtrics.Metrics().AppendEmpty() + newMetric := scopeMetrics.Metrics().AppendEmpty() testMetric.MoveTo(newMetric) return testMetrics } diff --git a/receiver/pulsarreceiver/factory.go b/receiver/pulsarreceiver/factory.go index aa15ed799f58..730f75865ddb 100644 --- a/receiver/pulsarreceiver/factory.go +++ b/receiver/pulsarreceiver/factory.go @@ -16,7 +16,7 @@ import ( const ( defaultEncoding = "otlp_proto" defaultTraceTopic = "otlp_spans" - defaultMeticsTopic = "otlp_metrics" + defaultMetricsTopic = "otlp_metrics" defaultLogsTopic = "otlp_logs" defaultConsumerName = "" defaultSubscription = "otlp_subscription" @@ -103,7 +103,7 @@ func (f *pulsarReceiverFactory) createMetricsReceiver( ) (receiver.Metrics, error) { c := *(cfg.(*Config)) if len(c.Topic) == 0 { - c.Topic = defaultMeticsTopic + c.Topic = defaultMetricsTopic } r, err := newMetricsReceiver(c, set, f.metricsUnmarshalers, nextConsumer) if err != nil { From e76459d13adf1e1ebbc20420c264c58f667a6d0e Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 09:14:48 -0500 Subject: [PATCH 223/450] spelling: metricsbuilder Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../hostmetricsreceiver/internal/scraper/diskscraper/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/hostmetricsreceiver/internal/scraper/diskscraper/config.go b/receiver/hostmetricsreceiver/internal/scraper/diskscraper/config.go index 29048bd3188e..3ef926a35048 100644 --- a/receiver/hostmetricsreceiver/internal/scraper/diskscraper/config.go +++ b/receiver/hostmetricsreceiver/internal/scraper/diskscraper/config.go @@ -11,7 +11,7 @@ import ( // Config relating to Disk Metric Scraper. type Config struct { - // MetricsbuilderConfig allows to customize scraped metrics/attributes representation. + // MetricsBuilderConfig allows to customize scraped metrics/attributes representation. metadata.MetricsBuilderConfig `mapstructure:",squash"` internal.ScraperConfig From 17329da9e863c955bf72b1374946d765de7baa6d Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:37:06 -0500 Subject: [PATCH 224/450] spelling: metricstransform Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 4 ++-- receiver/awsecscontainermetricsreceiver/README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6aeefb4de128..d6e93fd029b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7205,7 +7205,7 @@ The OpenTelemetry Collector Contrib contains everything in the [opentelemetry-co - Add EC2 hostname attribute (#1324) - Add ECS Resource detector (#1360) - `sapm` exporter: Add queue settings (#1390) -- `metrictransform` processor: Add metric filter option (#1447) +- `metricstransform` processor: Add metric filter option (#1447) - `awsxray` exporter: Improve ECS attribute and origin translation (#1428) - `resourcedetection` processor: Initial system detector (#1405) @@ -7419,7 +7419,7 @@ The OpenTelemetry Collector Contrib contains everything in the [opentelemetry-co - Add working-set and page-fault metrics (#666) - Add basic support for volume metrics (#667) - `stackdriver` trace exporter: Move to new interface and pdata (#486) -- `metricstranform` processor: Keep timeseries and points in order after aggregation (#663) +- `metricstransform` processor: Keep timeseries and points in order after aggregation (#663) - `k8scluster` receiver: Change `container.spec.name` label to `k8s.container.name` (#681) - Migrate receiver creator to internal data model (#701) - Add ec2 support to `resourcedetection` processor (#587) diff --git a/receiver/awsecscontainermetricsreceiver/README.md b/receiver/awsecscontainermetricsreceiver/README.md index d3a8b29f4779..6bc9cf1d4280 100644 --- a/receiver/awsecscontainermetricsreceiver/README.md +++ b/receiver/awsecscontainermetricsreceiver/README.md @@ -79,7 +79,7 @@ service: ## Collect specific metrics and update metric names -The previous configurations collect all the metrics and sends them to Amazon CloudWatch using default names. Customers can use `filter` and `metrictransform` processors to send specific metrics and rename them respectively. +The previous configurations collect all the metrics and sends them to Amazon CloudWatch using default names. Customers can use `filter` and `metricstransform` processors to send specific metrics and rename them respectively. The following configuration example collects only the `ecs.task.memory.utilized` metric and renames it to `MemoryUtilized` before sending to CloudWatch. From 3d27078fa4bf22e8e210137615da831ff3749745 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:37:53 -0500 Subject: [PATCH 225/450] spelling: mezmoexporter Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d6e93fd029b7..14b39f76bd79 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5548,7 +5548,7 @@ This version has been skipped. - `awsemfexporter`: Add min and max support for histograms (#10577) - `tailsamplingprocessor`: Add support for string invert matching to `and` policy (#9553) -- `mezemoexporter`: Add user agent string to outgoing HTTP requests (#10470) +- `mezmoexporter`: Add user agent string to outgoing HTTP requests (#10470) - `prometheusreceiver`: Improve performance of metrics builder (#10546) - `transformprocessor`: Add functions for conversion of scalar metric types (`gauge_to_sum` and `sum_to_gauge`) (#10255) - `dynatraceexporter`: Use min and max when provided in a data point for histograms (#10815) From 46c5b8ff598e596e943aae9314ceebb9c8cc3466 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:38:09 -0500 Subject: [PATCH 226/450] spelling: milliseconds Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/opensearchexporter/config.go | 2 +- processor/groupbytraceprocessor/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/exporter/opensearchexporter/config.go b/exporter/opensearchexporter/config.go index b3108fa2a747..9f274be98ef6 100644 --- a/exporter/opensearchexporter/config.go +++ b/exporter/opensearchexporter/config.go @@ -83,7 +83,7 @@ type MappingsSettings struct { // Field to store timestamp in. If not set uses the default @timestamp TimestampField string `mapstructure:"timestamp_field"` - // Whether to store timestamp in Epoch miliseconds + // Whether to store timestamp in Epoch milliseconds UnixTimestamp bool `mapstructure:"unix_timestamp"` // Try to find and remove duplicate fields diff --git a/processor/groupbytraceprocessor/README.md b/processor/groupbytraceprocessor/README.md index c4fc5e14ba3a..9aa43e96df53 100644 --- a/processor/groupbytraceprocessor/README.md +++ b/processor/groupbytraceprocessor/README.md @@ -68,7 +68,7 @@ The following metrics are recorded by this processor: A healthy system would have the same value for the metric `otelcol_processor_groupbytrace_spans_released` and for three events under `otelcol_processor_groupbytrace_event_latency_bucket`: `onTraceExpired`, `onTraceRemoved` and `onTraceReleased`. -The metric `otelcol_processor_groupbytrace_event_latency_bucket` is a bucket and shows how long each event took to be processed in miliseconds. In most cases, it should take less than 5ms for an event to be processed, but it might be the case where an event could take 10ms. Higher latencies are possible, but it should never really reach the last item, representing 1s. Events taking more than 1s are killed automatically, and if you have multiple items in this bucket, it might indicate a bug in the software. +The metric `otelcol_processor_groupbytrace_event_latency_bucket` is a bucket and shows how long each event took to be processed in milliseconds. In most cases, it should take less than 5ms for an event to be processed, but it might be the case where an event could take 10ms. Higher latencies are possible, but it should never really reach the last item, representing 1s. Events taking more than 1s are killed automatically, and if you have multiple items in this bucket, it might indicate a bug in the software. Most metrics are updated when the events occur, except for the following ones, which are updated periodically: * `otelcol_processor_groupbytrace_num_events_in_queue` From d0665c4df321a60bf8d92ac23f81ce6551173c8b Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 09:15:17 -0500 Subject: [PATCH 227/450] spelling: minimal Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/translator/zipkin/zipkinv2/to_translator_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/translator/zipkin/zipkinv2/to_translator_test.go b/pkg/translator/zipkin/zipkinv2/to_translator_test.go index c037ee1bcd3e..129a47a28d27 100644 --- a/pkg/translator/zipkin/zipkinv2/to_translator_test.go +++ b/pkg/translator/zipkin/zipkinv2/to_translator_test.go @@ -36,7 +36,7 @@ func TestZipkinSpansToInternalTraces(t *testing.T) { { name: "onlyLocalEndpointSpan", zs: generateSpanNoTags(), - td: generateTraceSingleSpanMinmalResource(), + td: generateTraceSingleSpanMinimalResource(), err: nil, }, { @@ -200,7 +200,7 @@ func generateTraceSingleSpanNoResourceOrInstrLibrary() ptrace.Traces { return td } -func generateTraceSingleSpanMinmalResource() ptrace.Traces { +func generateTraceSingleSpanMinimalResource() ptrace.Traces { td := generateTraceSingleSpanNoResourceOrInstrLibrary() rs := td.ResourceSpans().At(0) rsc := rs.Resource() From b76656acec7702182f2545777ac842e02468f474 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:38:32 -0500 Subject: [PATCH 228/450] spelling: minimize Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- processor/probabilisticsamplerprocessor/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/processor/probabilisticsamplerprocessor/README.md b/processor/probabilisticsamplerprocessor/README.md index 417b4e965ca3..dc304b49a5a4 100644 --- a/processor/probabilisticsamplerprocessor/README.md +++ b/processor/probabilisticsamplerprocessor/README.md @@ -60,7 +60,7 @@ instead of using the parent-based approach (e.g., using the `TraceIDRatioBased` sampler for a non-root span), incompleteness may result, and when spans and log records are independently sampled in a processor, as by this component, the same potential for completeness -arises. The consistency guarantee helps minimimize this issue. +arises. The consistency guarantee helps minimize this issue. Consistent probability samplers can be safely used with a mixture of probabilities and preserve sub-trace completeness, provided that child From b0cc3081e8805420b74e9c0924fe2bbaa8849efc Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 09:15:07 -0500 Subject: [PATCH 229/450] spelling: minimum Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- .../internal/mockserver/responses/perf-manager.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 14b39f76bd79..1d66b3157098 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -714,7 +714,7 @@ arrow.waiter_limit -> admission.waiter_limit Span events are now supported in OTel mapping mode. They will be routed to `logs-${data_stream.dataset}-${data_stream.namespace}` if `traces_dynamic_index::enabled` is `true`. - `transformprocessor`: Support aggregating metrics based on their attribute values and substituting the values with a new value. (#16224) - `kafkareceiver`: Adds tunable fetch sizes to Kafka Receiver (#22741, #34431) - Adds the ability to tune the minumum, default and maximum fetch sizes for the Kafka Receiver + Adds the ability to tune the minimum, default and maximum fetch sizes for the Kafka Receiver - `solarwindsapmsettingsextension`: Added logic for refresh function (#27668) - `githubreceiver`: Promote GitHub receiver metrics to alpha status. (#34960) - `googlecloudmonitoringreceiver`: Enhancing the Google Cloud monitoring receiver to establish a client connection, scrape GCP Cloud Metrics, and transform them into an OpenTelemetry compatible format for pipeline processing. (#33762) diff --git a/receiver/vcenterreceiver/internal/mockserver/responses/perf-manager.xml b/receiver/vcenterreceiver/internal/mockserver/responses/perf-manager.xml index 4d8fa166e4f3..f7ec17a4c6f8 100644 --- a/receiver/vcenterreceiver/internal/mockserver/responses/perf-manager.xml +++ b/receiver/vcenterreceiver/internal/mockserver/responses/perf-manager.xml @@ -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 From 35ec70c357a0f3b344f6782a232e9016d10c6d74 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:39:02 -0500 Subject: [PATCH 230/450] spelling: misleading Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/lokiexporter/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/lokiexporter/README.md b/exporter/lokiexporter/README.md index 8929d4f32582..3ab7d98ce771 100644 --- a/exporter/lokiexporter/README.md +++ b/exporter/lokiexporter/README.md @@ -209,7 +209,7 @@ Configuration screenshot: To enable the "logs to trace" navigation from Loki to Tempo, navigate to the Grafana Loki data source configuration screen, in the "Derived fields" section, update or create a derived field with: * Name: `Trace ID` -* Type: `Label` (note that this `Label` name may be missleading because it also supports Loki message metadata) +* Type: `Label` (note that this `Label` name may be misleading because it also supports Loki message metadata) * Label: `trace_id` * Internal link: activated * Select the Tempo data source on which "trace to logs" is configured as described above From b3615673071ee50d31d2552f0dfcc177c53dc784 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 09:15:28 -0500 Subject: [PATCH 231/450] spelling: mismatch Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- internal/filter/filtermetric/filtermetric_test.go | 2 +- receiver/activedirectorydsreceiver/scraper.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/filter/filtermetric/filtermetric_test.go b/internal/filter/filtermetric/filtermetric_test.go index c5935b97d651..01073571090a 100644 --- a/internal/filter/filtermetric/filtermetric_test.go +++ b/internal/filter/filtermetric/filtermetric_test.go @@ -58,7 +58,7 @@ func TestMatcherMatches(t *testing.T) { shouldMatch: true, }, { - name: "regexpNameMisatch", + name: "regexpNameMismatch", cfg: createConfig(regexpFilters, filterset.Regexp), metric: createMetric("test/match/wrongsuffix"), shouldMatch: false, diff --git a/receiver/activedirectorydsreceiver/scraper.go b/receiver/activedirectorydsreceiver/scraper.go index 1e922f8ecf06..e4e1d037d03e 100644 --- a/receiver/activedirectorydsreceiver/scraper.go +++ b/receiver/activedirectorydsreceiver/scraper.go @@ -136,10 +136,10 @@ func (a *activeDirectoryDSScraper) scrape(_ context.Context) (pmetric.Metrics, e a.mb.RecordActiveDirectoryDsReplicationOperationPendingDataPoint(now, int64(draPendingReplicationOperations)) } - draSyncFailuresSchemaMistmatch, schemaMismatchErr := a.w.Scrape(draSyncFailuresSchemaMismatch) + draSyncFailuresSchemaMismatch, schemaMismatchErr := a.w.Scrape(draSyncFailuresSchemaMismatch) multiErr = multierr.Append(multiErr, schemaMismatchErr) if schemaMismatchErr == nil { - a.mb.RecordActiveDirectoryDsReplicationSyncRequestCountDataPoint(now, int64(draSyncFailuresSchemaMistmatch), metadata.AttributeSyncResultSchemaMismatch) + a.mb.RecordActiveDirectoryDsReplicationSyncRequestCountDataPoint(now, int64(draSyncFailuresSchemaMismatch), metadata.AttributeSyncResultSchemaMismatch) } draSyncRequestsSuccessful, requestsSuccessfulErr := a.w.Scrape(draSyncRequestsSuccessful) @@ -151,7 +151,7 @@ func (a *activeDirectoryDSScraper) scrape(_ context.Context) (pmetric.Metrics, e draSyncRequestsTotal, totalErr := a.w.Scrape(draSyncRequestsMade) multiErr = multierr.Append(multiErr, totalErr) if totalErr == nil && requestsSuccessfulErr == nil && schemaMismatchErr == nil { - otherReplicationSyncRequests := draSyncRequestsTotal - draSyncRequestsSuccessful - draSyncFailuresSchemaMistmatch + otherReplicationSyncRequests := draSyncRequestsTotal - draSyncRequestsSuccessful - draSyncFailuresSchemaMismatch a.mb.RecordActiveDirectoryDsReplicationSyncRequestCountDataPoint(now, int64(otherReplicationSyncRequests), metadata.AttributeSyncResultOther) } From 92891fcb74e2d66ca20cd682fc418fbad1998f1c Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 22:02:52 -0500 Subject: [PATCH 232/450] spelling: more useful Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1d66b3157098..f28537f94e9b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4808,7 +4808,7 @@ This release fixes CVE-2024-42368 on the `bearerauthtokenextension` (#34516) - `pkg/stanza`: `readerFactory` and `Reader` use `helper.Encoding` directly, no longer depends on `helper.Splitter` (#14593) - `pkg/stanza`: `readerFactory` and `Reader` use `bufio.SplitFunc` directly, no longer depends on `helper.Splitter` (#14766) - `pkg/stanza`: add splitter factory which return a split func (#14766) -- `exporter/awsxrayexporter`: Change the value of xraysegment.url from `dbConnectionString` to the span name. This makes the XRay segment timeline more informationally useful. (#14342) +- `exporter/awsxrayexporter`: Change the value of xraysegment.url from `dbConnectionString` to the span name. This makes the XRay segment timeline more useful. (#14342) This change contravenes the AWS documentation for what values should go into this segment field. - `pkg/translator/zipkin`: Change zipkin V1 conversion to use pdata. (#14592) - `filterexpr`: Prevent the matcher from panicking (#13573) From 30d6219a74a32143cef1df1001788dce7aef63bd Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 09:15:56 -0500 Subject: [PATCH 233/450] spelling: mountpoints Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../scraper/filesystemscraper/filesystem_scraper_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/receiver/hostmetricsreceiver/internal/scraper/filesystemscraper/filesystem_scraper_test.go b/receiver/hostmetricsreceiver/internal/scraper/filesystemscraper/filesystem_scraper_test.go index 8143102f3d07..533c83adfb01 100644 --- a/receiver/hostmetricsreceiver/internal/scraper/filesystemscraper/filesystem_scraper_test.go +++ b/receiver/hostmetricsreceiver/internal/scraper/filesystemscraper/filesystem_scraper_test.go @@ -267,7 +267,7 @@ func TestScrape(t *testing.T) { newErrRegex: "^error creating exclude_fs_types filter:", }, { - name: "Invalid Include Moountpoints Filter", + name: "Invalid Include Mountpoints Filter", config: Config{ MetricsBuilderConfig: metadata.DefaultMetricsBuilderConfig(), IncludeMountPoints: MountPointMatchConfig{MountPoints: []string{"test"}}, @@ -275,7 +275,7 @@ func TestScrape(t *testing.T) { newErrRegex: "^error creating include_mount_points filter:", }, { - name: "Invalid Exclude Moountpoints Filter", + name: "Invalid Exclude Mountpoints Filter", config: Config{ MetricsBuilderConfig: metadata.DefaultMetricsBuilderConfig(), ExcludeMountPoints: MountPointMatchConfig{MountPoints: []string{"test"}}, From 56e5f943b6a941af840f6cdad181c0c56c1aaebd Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:40:15 -0500 Subject: [PATCH 234/450] spelling: multiple Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- processor/metricstransformprocessor/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/processor/metricstransformprocessor/config.go b/processor/metricstransformprocessor/config.go index ca08ec49c47c..878f0560f5df 100644 --- a/processor/metricstransformprocessor/config.go +++ b/processor/metricstransformprocessor/config.go @@ -152,7 +152,7 @@ const ( // Combine combines multiple metrics into a single metric. Combine ConfigAction = "combine" - // Group groups mutiple metrics matching the predicate into multiple ResourceMetrics messages + // Group groups multiple metrics matching the predicate into multiple ResourceMetrics messages Group ConfigAction = "group" ) From 182fc89bf28e819c897dc6ce81a3ab9ee7a36596 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 3 Jan 2025 09:55:59 -0500 Subject: [PATCH 235/450] spelling: must Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/apachereceiver/testdata/integration/httpd.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/apachereceiver/testdata/integration/httpd.conf b/receiver/apachereceiver/testdata/integration/httpd.conf index 856c209df28d..b4616254f773 100644 --- a/receiver/apachereceiver/testdata/integration/httpd.conf +++ b/receiver/apachereceiver/testdata/integration/httpd.conf @@ -545,7 +545,7 @@ Include conf/extra/proxy-html.conf # Secure (SSL/TLS) connections #Include conf/extra/httpd-ssl.conf # -# Note: The following must must be present to support +# Note: The following must be present to support # starting without SSL on platforms with no /dev/random equivalent # but a statically compiled-in mod_ssl. # From bfca3ce0118bf58ddf5e5f4b5a7a51776007c441 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 09:16:32 -0500 Subject: [PATCH 236/450] spelling: name Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/sapmexporter/examples/signalfx-k8s.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/sapmexporter/examples/signalfx-k8s.yaml b/exporter/sapmexporter/examples/signalfx-k8s.yaml index d660306fe566..84863dbf4db5 100644 --- a/exporter/sapmexporter/examples/signalfx-k8s.yaml +++ b/exporter/sapmexporter/examples/signalfx-k8s.yaml @@ -44,7 +44,7 @@ data: #attributes/copyfromexistingkey: #actions: #- key: environment - #from_attribute: YOUR_EXISTING_TAG_NAMEE + #from_attribute: YOUR_EXISTING_TAG_NAME #action: upsert # Optional: If you want to add an environment tag # If this option is enabled it must be added to the pipeline section below From 5aa14dad6bec3f09b8a18550dfbbf0c01846790c Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:41:17 -0500 Subject: [PATCH 237/450] spelling: namespace Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- processor/sumologicprocessor/processor_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/processor/sumologicprocessor/processor_test.go b/processor/sumologicprocessor/processor_test.go index 6f9c11a726c0..02f31879a84f 100644 --- a/processor/sumologicprocessor/processor_test.go +++ b/processor/sumologicprocessor/processor_test.go @@ -86,7 +86,7 @@ func TestAddCloudNamespaceForLogs(t *testing.T) { }, }, { - name: "does not add cloud.namespce attribute when disabled", + name: "does not add cloud.namespace attribute when disabled", addCloudNamespace: false, createLogs: func() plog.Logs { inputLogs := plog.NewLogs() @@ -212,7 +212,7 @@ func TestAddCloudNamespaceForMetrics(t *testing.T) { }, }, { - name: "does not add cloud.namespce attribute when disabled", + name: "does not add cloud.namespace attribute when disabled", addCloudNamespace: false, createMetrics: func() pmetric.Metrics { inputMetrics := pmetric.NewMetrics() @@ -338,7 +338,7 @@ func TestAddCloudNamespaceForTraces(t *testing.T) { }, }, { - name: "does not add cloud.namespce attribute when disabled", + name: "does not add cloud.namespace attribute when disabled", addCloudNamespace: false, createTraces: func() ptrace.Traces { inputTraces := ptrace.NewTraces() From 265c4e42aff1407ac7d62419f1479fe3b711838c Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 3 Jan 2025 09:53:58 -0500 Subject: [PATCH 238/450] spelling: neither-nor Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/ottl/contexts/internal/errors.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/ottl/contexts/internal/errors.go b/pkg/ottl/contexts/internal/errors.go index 7ccc931e2ba4..7bc6a7af1caa 100644 --- a/pkg/ottl/contexts/internal/errors.go +++ b/pkg/ottl/contexts/internal/errors.go @@ -6,7 +6,7 @@ package internal // import "github.com/open-telemetry/opentelemetry-collector-co import "fmt" const ( - DefaultErrorMessage = "segment %q from path %q is not a valid path nor a valid OTTL keyword for the %v context - review %v to see all valid paths" + DefaultErrorMessage = "segment %q from path %q is neither a valid path nor a valid OTTL keyword for the %v context - review %v to see all valid paths" ResourceContextRef = "https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/pkg/ottl/contexts/ottlresource" InstrumentationScopeRef = "https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/pkg/ottl/contexts/ottlscope" From ce04be54abb429f28070e04d46a494f27ab757fd Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 3 Jan 2025 09:43:20 -0500 Subject: [PATCH 239/450] spelling: nonexistent Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- cmd/opampsupervisor/e2e_test.go | 2 +- cmd/opampsupervisor/testdata/collector/bad_config.yaml | 8 ++++---- confmap/provider/s3provider/provider_test.go | 2 +- exporter/kafkaexporter/kafka_exporter_test.go | 2 +- exporter/logzioexporter/factory_test.go | 6 +++--- .../prometheusremotewriteexporter/exporter_test.go | 2 +- exporter/prometheusremotewriteexporter/factory_test.go | 2 +- .../internal/http/server_test.go | 2 +- extension/oauth2clientauthextension/extension_test.go | 2 +- internal/filter/filtermatcher/filtermatcher_test.go | 2 +- internal/kafka/authentication_test.go | 2 +- pkg/ottl/ottlfuncs/func_append_test.go | 4 ++-- pkg/stanza/entry/entry_test.go | 2 +- .../operator/transformer/retain/transformer_test.go | 2 +- pkg/status/aggregator_test.go | 8 ++++---- processor/attributesprocessor/factory_test.go | 2 +- .../internal/kube/client_test.go | 10 +++++----- .../internal/ecsInfo/cgroup.go | 2 +- receiver/k8sclusterreceiver/watcher_test.go | 2 +- receiver/kafkareceiver/kafka_receiver_test.go | 6 +++--- receiver/prometheusreceiver/config_test.go | 10 +++++----- ...-prometheus-nonexistent-auth-credentials-file.yaml} | 0 ...valid-config-prometheus-nonexistent-cert-file.yaml} | 0 ...nvalid-config-prometheus-nonexistent-key-file.yaml} | 0 ...d-config-prometheus-nonexistent-scrape-config.yaml} | 0 ...yaml => nonexistent-prometheus-sd-file-config.yaml} | 2 +- receiver/rabbitmqreceiver/client_test.go | 8 ++++---- receiver/rabbitmqreceiver/scraper_test.go | 8 ++++---- receiver/riakreceiver/client_test.go | 8 ++++---- receiver/riakreceiver/scraper_test.go | 8 ++++---- .../internal/configssh/configssh_test.go | 2 +- 32 files changed, 59 insertions(+), 59 deletions(-) rename receiver/prometheusreceiver/testdata/{invalid-config-prometheus-non-existent-auth-credentials-file.yaml => invalid-config-prometheus-nonexistent-auth-credentials-file.yaml} (100%) rename receiver/prometheusreceiver/testdata/{invalid-config-prometheus-non-existent-cert-file.yaml => invalid-config-prometheus-nonexistent-cert-file.yaml} (100%) rename receiver/prometheusreceiver/testdata/{invalid-config-prometheus-non-existent-key-file.yaml => invalid-config-prometheus-nonexistent-key-file.yaml} (100%) rename receiver/prometheusreceiver/testdata/{invalid-config-prometheus-non-existent-scrape-config.yaml => invalid-config-prometheus-nonexistent-scrape-config.yaml} (100%) rename receiver/prometheusreceiver/testdata/{non-existent-prometheus-sd-file-config.yaml => nonexistent-prometheus-sd-file-config.yaml} (67%) diff --git a/CHANGELOG.md b/CHANGELOG.md index f28537f94e9b..18df8065df19 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4575,7 +4575,7 @@ This release fixes CVE-2024-42368 on the `bearerauthtokenextension` (#34516) - `mongodbatlasreceiver`: Checks host and port before assigning attributes in `poll` mode (#16284) - `datadogexporter`: Fixes crash when logging error on logs exporter (#16077) - `pkg/ottl`: Fix list argument parsing when using internal arguments (#16298) -- `pkg/stanza, filelog, journald, windowseventlog`: Fix issue where specifying a non-existent storage extension caused panic during shutdown. (#16212) +- `pkg/stanza, filelog, journald, windowseventlog`: Fix issue where specifying a nonexistent storage extension caused panic during shutdown. (#16212) - `pkg/stanza`: Fix severity range unmarshaling (#16339) - `splunkhecexporter`: Do not log a warning on mapping empty metrics. (#3549) - `exporter/datadog`: Fixes bug to append tags in attributes instead of replacing them, simplifies filelog receiver setup, and adds `otel_source` tag. (#15387) diff --git a/cmd/opampsupervisor/e2e_test.go b/cmd/opampsupervisor/e2e_test.go index 96935b4bd0d0..00aa8ca25b31 100644 --- a/cmd/opampsupervisor/e2e_test.go +++ b/cmd/opampsupervisor/e2e_test.go @@ -456,7 +456,7 @@ func TestSupervisorRestartsCollectorAfterBadConfig(t *testing.T) { if ok { // The effective config may be structurally different compared to what was sent, // so just check that it includes some strings we know to be unique to the remote config. - return strings.Contains(cfg, "doesntexist") + return strings.Contains(cfg, "nonexistent") } return false diff --git a/cmd/opampsupervisor/testdata/collector/bad_config.yaml b/cmd/opampsupervisor/testdata/collector/bad_config.yaml index f9a17d198368..e821f779c839 100644 --- a/cmd/opampsupervisor/testdata/collector/bad_config.yaml +++ b/cmd/opampsupervisor/testdata/collector/bad_config.yaml @@ -1,11 +1,11 @@ receivers: - doesntexist: + nonexistent: exporters: - doesntexist: + nonexistent: service: pipelines: traces: - receivers: [doesntexist] - exporters: [doesntexist] + receivers: [nonexistent] + exporters: [nonexistent] diff --git a/confmap/provider/s3provider/provider_test.go b/confmap/provider/s3provider/provider_test.go index 3d585e694018..cac770ce848a 100644 --- a/confmap/provider/s3provider/provider_test.go +++ b/confmap/provider/s3provider/provider_test.go @@ -102,7 +102,7 @@ func TestUnsupportedScheme(t *testing.T) { } func TestNonExistent(t *testing.T) { - fp := NewTestProvider("./testdata/non-existent.yaml") + fp := NewTestProvider("./testdata/nonexistent.yaml") _, err := fp.Retrieve(context.Background(), "s3://non-exist-bucket.s3.region.amazonaws.com/key", nil) assert.Error(t, err) _, err = fp.Retrieve(context.Background(), "s3://bucket.s3.region.amazonaws.com/non-exist-key.yaml", nil) diff --git a/exporter/kafkaexporter/kafka_exporter_test.go b/exporter/kafkaexporter/kafka_exporter_test.go index 80b56d05dbc8..a522ee585388 100644 --- a/exporter/kafkaexporter/kafka_exporter_test.go +++ b/exporter/kafkaexporter/kafka_exporter_test.go @@ -116,7 +116,7 @@ func TestNewExporter_err_auth_type(t *testing.T) { Authentication: kafka.Authentication{ TLS: &configtls.ClientConfig{ Config: configtls.Config{ - CAFile: "/doesnotexist", + CAFile: "/nonexistent", }, }, }, diff --git a/exporter/logzioexporter/factory_test.go b/exporter/logzioexporter/factory_test.go index 343e9b4565f7..14492b3a2613 100644 --- a/exporter/logzioexporter/factory_test.go +++ b/exporter/logzioexporter/factory_test.go @@ -50,9 +50,9 @@ func TestGenerateUrl(t *testing.T) { generateURLTests := []generateURLTest{ {"", "us", "https://listener.logz.io:8071/?token=token"}, {"", "", "https://listener.logz.io:8071/?token=token"}, - {"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"}, + {"https://nonexistent.com", "us", "https://nonexistent.com"}, + {"https://nonexistent.com", "not-valid", "https://nonexistent.com"}, {"", "not-valid", "https://listener.logz.io:8071/?token=token"}, {"", "US", "https://listener.logz.io:8071/?token=token"}, {"", "Us", "https://listener.logz.io:8071/?token=token"}, diff --git a/exporter/prometheusremotewriteexporter/exporter_test.go b/exporter/prometheusremotewriteexporter/exporter_test.go index 56dc9d7298cc..69721010bbd6 100644 --- a/exporter/prometheusremotewriteexporter/exporter_test.go +++ b/exporter/prometheusremotewriteexporter/exporter_test.go @@ -164,7 +164,7 @@ func Test_Start(t *testing.T) { clientConfigTLS.Endpoint = "https://some.url:9411/api/prom/push" clientConfigTLS.TLSSetting = configtls.ClientConfig{ Config: configtls.Config{ - CAFile: "non-existent file", + CAFile: "nonexistent file", CertFile: "", KeyFile: "", }, diff --git a/exporter/prometheusremotewriteexporter/factory_test.go b/exporter/prometheusremotewriteexporter/factory_test.go index 8196d5baaf8f..435908ff1328 100644 --- a/exporter/prometheusremotewriteexporter/factory_test.go +++ b/exporter/prometheusremotewriteexporter/factory_test.go @@ -30,7 +30,7 @@ func Test_createMetricsExporter(t *testing.T) { invalidTLSConfig := createDefaultConfig().(*Config) invalidTLSConfig.ClientConfig.TLSSetting = configtls.ClientConfig{ Config: configtls.Config{ - CAFile: "non-existent file", + CAFile: "nonexistent file", CertFile: "", KeyFile: "", }, diff --git a/extension/healthcheckv2extension/internal/http/server_test.go b/extension/healthcheckv2extension/internal/http/server_test.go index 2f390ef4ec65..5ef0c22ca201 100644 --- a/extension/healthcheckv2extension/internal/http/server_test.go +++ b/extension/healthcheckv2extension/internal/http/server_test.go @@ -2570,7 +2570,7 @@ func TestStatus(t *testing.T) { }, }, { - name: "pipeline non-existent", + name: "pipeline nonexistent", legacyConfig: LegacyConfig{UseV2: true}, config: &Config{ ServerConfig: confighttp.ServerConfig{ diff --git a/extension/oauth2clientauthextension/extension_test.go b/extension/oauth2clientauthextension/extension_test.go index 0444f370728e..ddfbc1ef8595 100644 --- a/extension/oauth2clientauthextension/extension_test.go +++ b/extension/oauth2clientauthextension/extension_test.go @@ -66,7 +66,7 @@ func TestOAuthClientSettings(t *testing.T) { TLSSetting: configtls.ClientConfig{ Config: configtls.Config{ CAFile: testCAFile, - CertFile: "doestexist.cert", + CertFile: "nonexistent.cert", KeyFile: testKeyFile, }, Insecure: false, diff --git a/internal/filter/filtermatcher/filtermatcher_test.go b/internal/filter/filtermatcher/filtermatcher_test.go index 26a556c3814a..70b0fd85a544 100644 --- a/internal/filter/filtermatcher/filtermatcher_test.go +++ b/internal/filter/filtermatcher/filtermatcher_test.go @@ -185,7 +185,7 @@ func Test_Matching_False(t *testing.T) { Services: []string{}, Attributes: []filterconfig.Attribute{ { - Key: "doesnotexist", + Key: "nonexistent", Value: nil, }, }, diff --git a/internal/kafka/authentication_test.go b/internal/kafka/authentication_test.go index 47cbc0989684..a328748ab5fe 100644 --- a/internal/kafka/authentication_test.go +++ b/internal/kafka/authentication_test.go @@ -103,7 +103,7 @@ func TestAuthentication(t *testing.T) { }, { auth: Authentication{TLS: &configtls.ClientConfig{ - Config: configtls.Config{CAFile: "/doesnotexists"}, + Config: configtls.Config{CAFile: "/nonexistent"}, }}, saramaConfig: saramaTLSCfg, err: "failed to load TLS config", diff --git a/pkg/ottl/ottlfuncs/func_append_test.go b/pkg/ottl/ottlfuncs/func_append_test.go index 455dc37169de..4e5879fc6ab4 100644 --- a/pkg/ottl/ottlfuncs/func_append_test.go +++ b/pkg/ottl/ottlfuncs/func_append_test.go @@ -60,7 +60,7 @@ func Test_Append(t *testing.T) { Want func(pcommon.Slice) }{ { - "Single: non existing target", + "Single: nonexistent target", &ottl.StandardGetSetter[any]{ Getter: func(_ context.Context, _ any) (any, error) { return nil, nil @@ -74,7 +74,7 @@ func Test_Append(t *testing.T) { }, }, { - "Single: non existing target - non string value", + "Single: nonexistent target - non string value", &ottl.StandardGetSetter[any]{ Getter: func(_ context.Context, _ any) (any, error) { return nil, nil diff --git a/pkg/stanza/entry/entry_test.go b/pkg/stanza/entry/entry_test.go index bbc50f63b69c..693c1b1ea0ab 100644 --- a/pkg/stanza/entry/entry_test.go +++ b/pkg/stanza/entry/entry_test.go @@ -38,7 +38,7 @@ func TestRead(t *testing.T) { t.Run("field not exist error", func(t *testing.T) { var s string - err := testEntry.Read(NewBodyField("nonexistant_field"), &s) + err := testEntry.Read(NewBodyField("nonexistent_field"), &s) require.Error(t, err) }) diff --git a/pkg/stanza/operator/transformer/retain/transformer_test.go b/pkg/stanza/operator/transformer/retain/transformer_test.go index 5f610a404958..ac1e6d83fe57 100644 --- a/pkg/stanza/operator/transformer/retain/transformer_test.go +++ b/pkg/stanza/operator/transformer/retain/transformer_test.go @@ -409,7 +409,7 @@ func TestBuildAndProcess(t *testing.T) { false, func() *Config { cfg := NewConfig() - cfg.Fields = append(cfg.Fields, entry.NewBodyField("aNonExsistentKey")) + cfg.Fields = append(cfg.Fields, entry.NewBodyField("aNonexistentKey")) return cfg }(), newTestEntry, diff --git a/pkg/status/aggregator_test.go b/pkg/status/aggregator_test.go index 9dd8d7950dbf..dc136dd741d4 100644 --- a/pkg/status/aggregator_test.go +++ b/pkg/status/aggregator_test.go @@ -176,8 +176,8 @@ func TestPipelineAggregateStatus(t *testing.T) { agg := status.NewAggregator(status.PriorityPermanent) traces := testhelpers.NewPipelineMetadata("traces") - t.Run("non existent pipeline", func(t *testing.T) { - st, ok := agg.AggregateStatus("doesnotexist", status.Concise) + t.Run("nonexistent pipeline", func(t *testing.T) { + st, ok := agg.AggregateStatus("nonexistent", status.Concise) require.Nil(t, st) require.False(t, ok) }) @@ -212,8 +212,8 @@ func TestPipelineAggregateStatusVerbose(t *testing.T) { agg := status.NewAggregator(status.PriorityPermanent) traces := testhelpers.NewPipelineMetadata("traces") - t.Run("non existent pipeline", func(t *testing.T) { - st, ok := agg.AggregateStatus("doesnotexist", status.Verbose) + t.Run("nonexistent pipeline", func(t *testing.T) { + st, ok := agg.AggregateStatus("nonexistent", status.Verbose) require.Nil(t, st) require.False(t, ok) }) diff --git a/processor/attributesprocessor/factory_test.go b/processor/attributesprocessor/factory_test.go index c210ffd08a1d..72a26027ba52 100644 --- a/processor/attributesprocessor/factory_test.go +++ b/processor/attributesprocessor/factory_test.go @@ -91,7 +91,7 @@ func TestFactory_CreateMetrics(t *testing.T) { {Key: "fake_key", Action: attraction.UPSERT}, } - // Upsert should fail on non-existent key + // Upsert should fail on nonexistent key mp, err = factory.CreateMetrics(context.Background(), processortest.NewNopSettings(), cfg, consumertest.NewNop()) require.Nil(t, mp) require.Error(t, err) diff --git a/processor/k8sattributesprocessor/internal/kube/client_test.go b/processor/k8sattributesprocessor/internal/kube/client_test.go index de701f6fd673..5d28ac5b9508 100644 --- a/processor/k8sattributesprocessor/internal/kube/client_test.go +++ b/processor/k8sattributesprocessor/internal/kube/client_test.go @@ -428,7 +428,7 @@ func TestPodDelete(t *testing.T) { // delete empty IP pod c.handlePodDelete(&api_v1.Pod{}) - // delete non-existent IP + // delete nonexistent IP c.deleteQueue = c.deleteQueue[:0] pod := &api_v1.Pod{} pod.Status.PodIP = "9.9.9.9" @@ -494,14 +494,14 @@ func TestNamespaceDelete(t *testing.T) { // delete empty namespace c.handleNamespaceDelete(&api_v1.Namespace{}) - // delete non-existent namespace + // delete nonexistent namespace namespace := &api_v1.Namespace{} namespace.Name = "namespaceC" c.handleNamespaceDelete(namespace) assert.Len(t, c.Namespaces, 2) got := c.Namespaces["namespaceA"] assert.Equal(t, "namespaceA", got.Name) - // delete non-existent namespace when DeletedFinalStateUnknown + // delete nonexistent namespace when DeletedFinalStateUnknown c.handleNamespaceDelete(cache.DeletedFinalStateUnknown{Obj: namespace}) assert.Len(t, c.Namespaces, 2) got = c.Namespaces["namespaceA"] @@ -529,14 +529,14 @@ func TestNodeDelete(t *testing.T) { // delete empty node c.handleNodeDelete(&api_v1.Node{}) - // delete non-existent node + // delete nonexistent node node := &api_v1.Node{} node.Name = "nodeC" c.handleNodeDelete(node) assert.Len(t, c.Nodes, 2) got := c.Nodes["nodeA"] assert.Equal(t, "nodeA", got.Name) - // delete non-existent namespace when DeletedFinalStateUnknown + // delete nonexistent namespace when DeletedFinalStateUnknown c.handleNodeDelete(cache.DeletedFinalStateUnknown{Obj: node}) assert.Len(t, c.Nodes, 2) got = c.Nodes["nodeA"] diff --git a/receiver/awscontainerinsightreceiver/internal/ecsInfo/cgroup.go b/receiver/awscontainerinsightreceiver/internal/ecsInfo/cgroup.go index 0f2d69a37585..bf9baa06c183 100644 --- a/receiver/awscontainerinsightreceiver/internal/ecsInfo/cgroup.go +++ b/receiver/awscontainerinsightreceiver/internal/ecsInfo/cgroup.go @@ -172,7 +172,7 @@ func readString(dirpath string, file string) (string, error) { // Read out, err := os.ReadFile(cgroupFile) if err != nil { - // Ignore non-existent files + // Ignore nonexistent files log.Printf("W! readString: Failed to read %q: %s", cgroupFile, err) return "", err } diff --git a/receiver/k8sclusterreceiver/watcher_test.go b/receiver/k8sclusterreceiver/watcher_test.go index 29facfc26f22..309144d281ab 100644 --- a/receiver/k8sclusterreceiver/watcher_test.go +++ b/receiver/k8sclusterreceiver/watcher_test.go @@ -74,7 +74,7 @@ func TestSetupMetadataExporters(t *testing.T) { false, }, { - "Non-existent exporter", + "Nonexistent exporter", fields{ metadataConsumers: []metadataConsumer{}, }, diff --git a/receiver/kafkareceiver/kafka_receiver_test.go b/receiver/kafkareceiver/kafka_receiver_test.go index 097aad6ec6db..5a458d807cb8 100644 --- a/receiver/kafkareceiver/kafka_receiver_test.go +++ b/receiver/kafkareceiver/kafka_receiver_test.go @@ -63,7 +63,7 @@ func TestNewTracesReceiver_err_auth_type(t *testing.T) { Authentication: kafka.Authentication{ TLS: &configtls.ClientConfig{ Config: configtls.Config{ - CAFile: "/doesnotexist", + CAFile: "/nonexistent", }, }, }, @@ -422,7 +422,7 @@ func TestNewMetricsExporter_err_auth_type(t *testing.T) { Authentication: kafka.Authentication{ TLS: &configtls.ClientConfig{ Config: configtls.Config{ - CAFile: "/doesnotexist", + CAFile: "/nonexistent", }, }, }, @@ -767,7 +767,7 @@ func TestNewLogsExporter_err_auth_type(t *testing.T) { Authentication: kafka.Authentication{ TLS: &configtls.ClientConfig{ Config: configtls.Config{ - CAFile: "/doesnotexist", + CAFile: "/nonexistent", }, }, }, diff --git a/receiver/prometheusreceiver/config_test.go b/receiver/prometheusreceiver/config_test.go index 2c0fe018270a..a024d36ee15a 100644 --- a/receiver/prometheusreceiver/config_test.go +++ b/receiver/prometheusreceiver/config_test.go @@ -131,7 +131,7 @@ func TestLoadConfigFailsOnUnknownSection(t *testing.T) { } func TestLoadConfigFailsOnNoPrometheusOrTAConfig(t *testing.T) { - cm, err := confmaptest.LoadConf(filepath.Join("testdata", "invalid-config-prometheus-non-existent-scrape-config.yaml")) + cm, err := confmaptest.LoadConf(filepath.Join("testdata", "invalid-config-prometheus-nonexistent-scrape-config.yaml")) require.NoError(t, err) factory := NewFactory() @@ -220,7 +220,7 @@ func TestRejectUnsupportedPrometheusFeatures(t *testing.T) { } func TestNonExistentAuthCredentialsFile(t *testing.T) { - cm, err := confmaptest.LoadConf(filepath.Join("testdata", "invalid-config-prometheus-non-existent-auth-credentials-file.yaml")) + cm, err := confmaptest.LoadConf(filepath.Join("testdata", "invalid-config-prometheus-nonexistent-auth-credentials-file.yaml")) require.NoError(t, err) factory := NewFactory() cfg := factory.CreateDefaultConfig() @@ -235,7 +235,7 @@ func TestNonExistentAuthCredentialsFile(t *testing.T) { } func TestTLSConfigNonExistentCertFile(t *testing.T) { - cm, err := confmaptest.LoadConf(filepath.Join("testdata", "invalid-config-prometheus-non-existent-cert-file.yaml")) + cm, err := confmaptest.LoadConf(filepath.Join("testdata", "invalid-config-prometheus-nonexistent-cert-file.yaml")) require.NoError(t, err) factory := NewFactory() cfg := factory.CreateDefaultConfig() @@ -250,7 +250,7 @@ func TestTLSConfigNonExistentCertFile(t *testing.T) { } func TestTLSConfigNonExistentKeyFile(t *testing.T) { - cm, err := confmaptest.LoadConf(filepath.Join("testdata", "invalid-config-prometheus-non-existent-key-file.yaml")) + cm, err := confmaptest.LoadConf(filepath.Join("testdata", "invalid-config-prometheus-nonexistent-key-file.yaml")) require.NoError(t, err) factory := NewFactory() cfg := factory.CreateDefaultConfig() @@ -343,7 +343,7 @@ func TestTargetAllocatorInvalidHTTPScrape(t *testing.T) { } func TestFileSDConfigWithoutSDFile(t *testing.T) { - cm, err := confmaptest.LoadConf(filepath.Join("testdata", "non-existent-prometheus-sd-file-config.yaml")) + cm, err := confmaptest.LoadConf(filepath.Join("testdata", "nonexistent-prometheus-sd-file-config.yaml")) require.NoError(t, err) factory := NewFactory() cfg := factory.CreateDefaultConfig() diff --git a/receiver/prometheusreceiver/testdata/invalid-config-prometheus-non-existent-auth-credentials-file.yaml b/receiver/prometheusreceiver/testdata/invalid-config-prometheus-nonexistent-auth-credentials-file.yaml similarity index 100% rename from receiver/prometheusreceiver/testdata/invalid-config-prometheus-non-existent-auth-credentials-file.yaml rename to receiver/prometheusreceiver/testdata/invalid-config-prometheus-nonexistent-auth-credentials-file.yaml diff --git a/receiver/prometheusreceiver/testdata/invalid-config-prometheus-non-existent-cert-file.yaml b/receiver/prometheusreceiver/testdata/invalid-config-prometheus-nonexistent-cert-file.yaml similarity index 100% rename from receiver/prometheusreceiver/testdata/invalid-config-prometheus-non-existent-cert-file.yaml rename to receiver/prometheusreceiver/testdata/invalid-config-prometheus-nonexistent-cert-file.yaml diff --git a/receiver/prometheusreceiver/testdata/invalid-config-prometheus-non-existent-key-file.yaml b/receiver/prometheusreceiver/testdata/invalid-config-prometheus-nonexistent-key-file.yaml similarity index 100% rename from receiver/prometheusreceiver/testdata/invalid-config-prometheus-non-existent-key-file.yaml rename to receiver/prometheusreceiver/testdata/invalid-config-prometheus-nonexistent-key-file.yaml diff --git a/receiver/prometheusreceiver/testdata/invalid-config-prometheus-non-existent-scrape-config.yaml b/receiver/prometheusreceiver/testdata/invalid-config-prometheus-nonexistent-scrape-config.yaml similarity index 100% rename from receiver/prometheusreceiver/testdata/invalid-config-prometheus-non-existent-scrape-config.yaml rename to receiver/prometheusreceiver/testdata/invalid-config-prometheus-nonexistent-scrape-config.yaml diff --git a/receiver/prometheusreceiver/testdata/non-existent-prometheus-sd-file-config.yaml b/receiver/prometheusreceiver/testdata/nonexistent-prometheus-sd-file-config.yaml similarity index 67% rename from receiver/prometheusreceiver/testdata/non-existent-prometheus-sd-file-config.yaml rename to receiver/prometheusreceiver/testdata/nonexistent-prometheus-sd-file-config.yaml index 6c20dd89c010..816a1d6113b3 100644 --- a/receiver/prometheusreceiver/testdata/non-existent-prometheus-sd-file-config.yaml +++ b/receiver/prometheusreceiver/testdata/nonexistent-prometheus-sd-file-config.yaml @@ -4,4 +4,4 @@ prometheus: - job_name: 'test' scrape_interval: 5s file_sd_configs: - - files: ["./testdata/non-existent-sd-file.json"] + - files: ["./testdata/nonexistent-sd-file.json"] diff --git a/receiver/rabbitmqreceiver/client_test.go b/receiver/rabbitmqreceiver/client_test.go index afbc7f69c2e6..9da0bde8d438 100644 --- a/receiver/rabbitmqreceiver/client_test.go +++ b/receiver/rabbitmqreceiver/client_test.go @@ -29,9 +29,9 @@ const ( ) func TestNewClient(t *testing.T) { - clientConfigNonExistandCA := confighttp.NewDefaultClientConfig() - clientConfigNonExistandCA.Endpoint = defaultEndpoint - clientConfigNonExistandCA.TLSSetting = configtls.ClientConfig{ + clientConfigNonexistentCA := confighttp.NewDefaultClientConfig() + clientConfigNonexistentCA.Endpoint = defaultEndpoint + clientConfigNonexistentCA.TLSSetting = configtls.ClientConfig{ Config: configtls.Config{ CAFile: "/non/existent", }, @@ -51,7 +51,7 @@ func TestNewClient(t *testing.T) { { desc: "Invalid HTTP config", cfg: &Config{ - ClientConfig: clientConfigNonExistandCA, + ClientConfig: clientConfigNonexistentCA, }, host: componenttest.NewNopHost(), settings: componenttest.NewNopTelemetrySettings(), diff --git a/receiver/rabbitmqreceiver/scraper_test.go b/receiver/rabbitmqreceiver/scraper_test.go index 112941b136d9..349768bb4e1e 100644 --- a/receiver/rabbitmqreceiver/scraper_test.go +++ b/receiver/rabbitmqreceiver/scraper_test.go @@ -26,9 +26,9 @@ import ( ) func TestScraperStart(t *testing.T) { - clientConfigNonExistandCA := confighttp.NewDefaultClientConfig() - clientConfigNonExistandCA.Endpoint = defaultEndpoint - clientConfigNonExistandCA.TLSSetting = configtls.ClientConfig{ + clientConfigNonexistentCA := confighttp.NewDefaultClientConfig() + clientConfigNonexistentCA.Endpoint = defaultEndpoint + clientConfigNonexistentCA.TLSSetting = configtls.ClientConfig{ Config: configtls.Config{ CAFile: "/non/existent", }, @@ -46,7 +46,7 @@ func TestScraperStart(t *testing.T) { desc: "Bad Config", scraper: &rabbitmqScraper{ cfg: &Config{ - ClientConfig: clientConfigNonExistandCA, + ClientConfig: clientConfigNonexistentCA, }, settings: componenttest.NewNopTelemetrySettings(), }, diff --git a/receiver/riakreceiver/client_test.go b/receiver/riakreceiver/client_test.go index 087816fbcd4e..e2e30d5b12a9 100644 --- a/receiver/riakreceiver/client_test.go +++ b/receiver/riakreceiver/client_test.go @@ -28,9 +28,9 @@ const ( ) func TestNewClient(t *testing.T) { - clientConfigNonExistandCA := confighttp.NewDefaultClientConfig() - clientConfigNonExistandCA.Endpoint = defaultEndpoint - clientConfigNonExistandCA.TLSSetting = configtls.ClientConfig{ + clientConfigNonexistentCA := confighttp.NewDefaultClientConfig() + clientConfigNonexistentCA.Endpoint = defaultEndpoint + clientConfigNonexistentCA.TLSSetting = configtls.ClientConfig{ Config: configtls.Config{ CAFile: "/non/existent", }, @@ -47,7 +47,7 @@ func TestNewClient(t *testing.T) { { desc: "Invalid HTTP config", cfg: &Config{ - ClientConfig: clientConfigNonExistandCA, + ClientConfig: clientConfigNonexistentCA, }, expectError: errors.New("failed to create HTTP Client"), }, diff --git a/receiver/riakreceiver/scraper_test.go b/receiver/riakreceiver/scraper_test.go index 896c478bf39f..40254984798f 100644 --- a/receiver/riakreceiver/scraper_test.go +++ b/receiver/riakreceiver/scraper_test.go @@ -27,9 +27,9 @@ import ( ) func TestScraperStart(t *testing.T) { - clientConfigNonExistandCA := confighttp.NewDefaultClientConfig() - clientConfigNonExistandCA.Endpoint = defaultEndpoint - clientConfigNonExistandCA.TLSSetting = configtls.ClientConfig{ + clientConfigNonexistentCA := confighttp.NewDefaultClientConfig() + clientConfigNonexistentCA.Endpoint = defaultEndpoint + clientConfigNonexistentCA.TLSSetting = configtls.ClientConfig{ Config: configtls.Config{ CAFile: "/non/existent", }, @@ -47,7 +47,7 @@ func TestScraperStart(t *testing.T) { desc: "Bad Config", scraper: &riakScraper{ cfg: &Config{ - ClientConfig: clientConfigNonExistandCA, + ClientConfig: clientConfigNonexistentCA, }, settings: componenttest.NewNopTelemetrySettings(), }, diff --git a/receiver/sshcheckreceiver/internal/configssh/configssh_test.go b/receiver/sshcheckreceiver/internal/configssh/configssh_test.go index 77d418ca48e2..07c7e5c9f4ba 100644 --- a/receiver/sshcheckreceiver/internal/configssh/configssh_test.go +++ b/receiver/sshcheckreceiver/internal/configssh/configssh_test.go @@ -92,7 +92,7 @@ func TestAllSSHClientSettings(t *testing.T) { shouldError: false, }, { - name: "invalid_settings_non-existent_keyfile_path", + name: "invalid_settings_nonexistent_keyfile_path", settings: SSHClientSettings{ Endpoint: endpoint, Timeout: timeout, From 98661561148fb6ace28cc02005f9d273d3186d91 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 6 Jan 2025 20:00:10 -0500 Subject: [PATCH 240/450] spelling: nonexistent_pvc Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/kubeletstatsreceiver/scraper_test.go | 2 +- ... test_scraper_with_pvc_labels_nonexistent_pvc_expected.yaml} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename receiver/kubeletstatsreceiver/testdata/scraper/{test_scraper_with_pvc_labels_pvc_doesnot_exist_expected.yaml => test_scraper_with_pvc_labels_nonexistent_pvc_expected.yaml} (100%) diff --git a/receiver/kubeletstatsreceiver/scraper_test.go b/receiver/kubeletstatsreceiver/scraper_test.go index 45680d17bcba..0b9694378a2e 100644 --- a/receiver/kubeletstatsreceiver/scraper_test.go +++ b/receiver/kubeletstatsreceiver/scraper_test.go @@ -627,7 +627,7 @@ func TestScraperWithPVCDetailedLabels(t *testing.T) { dataLen: numVolumes, }, { - name: "pvc_doesnot_exist", + name: "nonexistent_pvc", k8sAPIClient: fake.NewSimpleClientset(), dataLen: numVolumes - 3, volumeClaimsToMiss: map[string]bool{ diff --git a/receiver/kubeletstatsreceiver/testdata/scraper/test_scraper_with_pvc_labels_pvc_doesnot_exist_expected.yaml b/receiver/kubeletstatsreceiver/testdata/scraper/test_scraper_with_pvc_labels_nonexistent_pvc_expected.yaml similarity index 100% rename from receiver/kubeletstatsreceiver/testdata/scraper/test_scraper_with_pvc_labels_pvc_doesnot_exist_expected.yaml rename to receiver/kubeletstatsreceiver/testdata/scraper/test_scraper_with_pvc_labels_nonexistent_pvc_expected.yaml From c6b92f44b6dcaf8859d2afcc9aedbad68019412d Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 3 Jan 2025 09:56:27 -0500 Subject: [PATCH 241/450] spelling: not Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 18df8065df19..f5c5eaf6dac7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4979,7 +4979,7 @@ This release fixes CVE-2024-42368 on the `bearerauthtokenextension` (#34516) - `chronyreceiver`: When trying to read from socket, the socket type was incorrect (#13862) - `postgresqlreceiver`: Uses the postgres databasename when retrieving database inventory information (#13641) - `prometheusreceiver/prometheusremotewriteexporter`: Leave the sum unset in histograms without sums, and don't produce _sum metric points for histograms without sums (#7546) -- `processor/redaction`: Update redaction attributes in case if data sent through the processor more than once, not not ignore them. (#13854) +- `processor/redaction`: Update redaction attributes in case if data sent through the processor more than once, not ignore them. (#13854) - `chloggen`: changelog generation tool moved to https://github.com/open-telemetry/opentelemetry-go-build-tools (#14022) - `exporter/AlibabaCloudLogServiceExporter`: Fix issue that promethus occuring error when the resource metric labels contains dot (#3429) - `exporter/tanzuobservabilityexporter`: This change causes tanzuobservabilityexporter to depend on 0.10.4 of the From f1d4a95f370f9161dc056f2d6112b61e5b6a7bb2 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:42:24 -0500 Subject: [PATCH 242/450] spelling: number Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/ottl/contexts/ottllog/README.md | 2 +- processor/tailsamplingprocessor/config.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/ottl/contexts/ottllog/README.md b/pkg/ottl/contexts/ottllog/README.md index 33c462531c17..10f087be30fb 100644 --- a/pkg/ottl/contexts/ottllog/README.md +++ b/pkg/ottl/contexts/ottllog/README.md @@ -33,7 +33,7 @@ The following paths are supported. | observed_time_unix_nano | the observed time in unix nano of the log being processed | int64 | | time | the time in `time.Time` of the log being processed | `time.Time` | | observed_time | the observed time in `time.Time` of the log being processed | `time.Time` | -| severity_number | the severity numbner of the log being processed | int64 | +| severity_number | the severity number of the log being processed | int64 | | severity_text | the severity text of the log being processed | string | | body | the body of the log being processed | any | | body\[""\] | a value in a map body of the log being processed. Supports multiple indexes to access nested fields. | string, bool, int64, float64, pcommon.Map, pcommon.Slice, []byte or nil | diff --git a/processor/tailsamplingprocessor/config.go b/processor/tailsamplingprocessor/config.go index 4868f017de1c..9bda384d64b2 100644 --- a/processor/tailsamplingprocessor/config.go +++ b/processor/tailsamplingprocessor/config.go @@ -190,7 +190,7 @@ type StringAttributeCfg struct { // RateLimitingCfg holds the configurable settings to create a rate limiting // sampling policy evaluator. type RateLimitingCfg struct { - // SpansPerSecond sets the limit on the maximum nuber of spans that can be processed each second. + // SpansPerSecond sets the limit on the maximum number of spans that can be processed each second. SpansPerSecond int64 `mapstructure:"spans_per_second"` } From 07e88c5a5f3f9efc8d0412d1455d2f5f16291ada Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:43:43 -0500 Subject: [PATCH 243/450] spelling: occurred Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/snowflakereceiver/scraper_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/receiver/snowflakereceiver/scraper_test.go b/receiver/snowflakereceiver/scraper_test.go index b372c0870e71..4bb297ac380c 100644 --- a/receiver/snowflakereceiver/scraper_test.go +++ b/receiver/snowflakereceiver/scraper_test.go @@ -27,12 +27,12 @@ func TestScraper(t *testing.T) { cfg.Warehouse = "warehouse" err := component.ValidateConfig(cfg) if err != nil { - t.Fatal("an error ocured when validating config", err) + t.Fatal("an error occurred when validating config", err) } db, mock, err := sqlmock.New(sqlmock.QueryMatcherOption(sqlmock.QueryMatcherEqual)) if err != nil { - t.Fatal("an error ocured when opening mock db", err) + t.Fatal("an error occurred when opening mock db", err) } defer db.Close() From c02e45bc187efdc8c5f750238d39bc2233ef7bb5 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:43:33 -0500 Subject: [PATCH 244/450] spelling: occurring Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f5c5eaf6dac7..a0959df8c5cb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4981,7 +4981,7 @@ This release fixes CVE-2024-42368 on the `bearerauthtokenextension` (#34516) - `prometheusreceiver/prometheusremotewriteexporter`: Leave the sum unset in histograms without sums, and don't produce _sum metric points for histograms without sums (#7546) - `processor/redaction`: Update redaction attributes in case if data sent through the processor more than once, not ignore them. (#13854) - `chloggen`: changelog generation tool moved to https://github.com/open-telemetry/opentelemetry-go-build-tools (#14022) -- `exporter/AlibabaCloudLogServiceExporter`: Fix issue that promethus occuring error when the resource metric labels contains dot (#3429) +- `exporter/AlibabaCloudLogServiceExporter`: Fix issue that promethus occurring error when the resource metric labels contains dot (#3429) - `exporter/tanzuobservabilityexporter`: This change causes tanzuobservabilityexporter to depend on 0.10.4 of the wavefront-sdk-go library. (#13417) From 530d21a103cf3440613ae657e3f3b69ff1192c4e Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 08:00:07 -0500 Subject: [PATCH 245/450] spelling: of Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/signalfxexporter/internal/translation/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/signalfxexporter/internal/translation/constants.go b/exporter/signalfxexporter/internal/translation/constants.go index e6f43ecc89b7..ffc02f035edc 100644 --- a/exporter/signalfxexporter/internal/translation/constants.go +++ b/exporter/signalfxexporter/internal/translation/constants.go @@ -295,7 +295,7 @@ translation_rules: without_dimensions: - device -## Calculate an extra disk_ops.total metric as number all all read and write operations happened since the last report. +## Calculate an extra disk_ops.total metric as number of all read and write operations happened since the last report. - action: copy_metrics mapping: system.disk.operations: sf_temp.disk.ops From 7ae8904541b19cd3e60cd1aa1bd4267725371c62 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 09:22:55 -0500 Subject: [PATCH 246/450] spelling: offset Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/stanza/fileconsumer/internal/reader/reader.go | 2 +- pkg/stanza/split/split.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/stanza/fileconsumer/internal/reader/reader.go b/pkg/stanza/fileconsumer/internal/reader/reader.go index 3a591574fbc6..703686324b51 100644 --- a/pkg/stanza/fileconsumer/internal/reader/reader.go +++ b/pkg/stanza/fileconsumer/internal/reader/reader.go @@ -166,7 +166,7 @@ func (r *Reader) readHeader(ctx context.Context) (doneReadingFile bool) { r.HeaderFinalized = true r.initialBufferSize = scanner.DefaultBufferSize - // Reset position in file to r.Offest after the header scanner might have moved it past a content token. + // Reset position in file to r.Offset after the header scanner might have moved it past a content token. if _, err := r.file.Seek(r.Offset, 0); err != nil { r.set.Logger.Error("failed to seek post-header", zap.Error(err)) return true diff --git a/pkg/stanza/split/split.go b/pkg/stanza/split/split.go index c8efdabeced3..934088a7e37c 100644 --- a/pkg/stanza/split/split.go +++ b/pkg/stanza/split/split.go @@ -93,12 +93,12 @@ func LineStartSplitFunc(re *regexp.Regexp, omitPattern bool, flushAtEOF bool) bu return len(data), data, nil } - secondLocOfset := firstMatchEnd + 1 - secondLoc := re.FindIndex(data[secondLocOfset:]) + secondLocOffset := firstMatchEnd + 1 + secondLoc := re.FindIndex(data[secondLocOffset:]) if secondLoc == nil { return 0, nil, nil // read more data and try again } - secondMatchStart := secondLoc[0] + secondLocOfset + secondMatchStart := secondLoc[0] + secondLocOffset if omitPattern { return secondMatchStart, data[firstMatchEnd:secondMatchStart], nil } From b61eee9d928ad414aa46d5822634e455a00cf4c7 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:44:03 -0500 Subject: [PATCH 247/450] spelling: omitted Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/stanza/docs/types/entry.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/stanza/docs/types/entry.md b/pkg/stanza/docs/types/entry.md index b2f6881b7bfb..8067d973fbfa 100644 --- a/pkg/stanza/docs/types/entry.md +++ b/pkg/stanza/docs/types/entry.md @@ -36,4 +36,4 @@ Represented in `json` format, an entry may look like the following: } ``` -Throughout the documentation, `json` format is used to represent entries. Fields are typically ommitted unless relevant to the behavior being described. +Throughout the documentation, `json` format is used to represent entries. Fields are typically omitted unless relevant to the behavior being described. From 424f79dc60060fcd47439a2b5d6060b004958685 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 09:23:40 -0500 Subject: [PATCH 248/450] spelling: oops Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/stanza/adapter/converter_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/stanza/adapter/converter_test.go b/pkg/stanza/adapter/converter_test.go index 2da3c2226a2b..317c3ea568d6 100644 --- a/pkg/stanza/adapter/converter_test.go +++ b/pkg/stanza/adapter/converter_test.go @@ -903,14 +903,14 @@ func TestGetResourceID(t *testing.T) { name: "Empty value/key", input: map[string]any{ "SomeKey": "", - "": "Ooops", + "": "Oops", }, }, { name: "Empty value/key (reversed)", input: map[string]any{ - "": "SomeKey", - "Ooops": "", + "": "SomeKey", + "Oops": "", }, }, { From 7cfe9c8cd4a265865a60b2627d6453c708405f35 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 22:15:34 -0500 Subject: [PATCH 249/450] spelling: openshift Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- internal/metadataproviders/openshift/metadata.go | 2 +- processor/resourcedetectionprocessor/README.md | 4 ++-- processor/resourcedetectionprocessor/config.go | 2 +- .../resourcedetectionprocessor/internal/openshift/config.go | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/metadataproviders/openshift/metadata.go b/internal/metadataproviders/openshift/metadata.go index 92544433a489..30e35956a6ec 100644 --- a/internal/metadataproviders/openshift/metadata.go +++ b/internal/metadataproviders/openshift/metadata.go @@ -13,7 +13,7 @@ import ( "strings" ) -// Provider gets cluster metadata from Openshift. +// Provider gets cluster metadata from OpenShift. type Provider interface { K8SClusterVersion(context.Context) (string, error) OpenShiftClusterVersion(context.Context) (string, error) diff --git a/processor/resourcedetectionprocessor/README.md b/processor/resourcedetectionprocessor/README.md index bd200ef4da43..36fd72617130 100644 --- a/processor/resourcedetectionprocessor/README.md +++ b/processor/resourcedetectionprocessor/README.md @@ -481,11 +481,11 @@ and add this to your workload: fieldPath: spec.nodeName ``` -### Openshift +### OpenShift Queries the OpenShift and Kubernetes API to retrieve related resource attributes. -The list of the populated resource attributes can be found at [Openshift Detector Resource Attributes](./internal/openshift/documentation.md). +The list of the populated resource attributes can be found at [OpenShift Detector Resource Attributes](./internal/openshift/documentation.md). The following permissions are required: ```yaml diff --git a/processor/resourcedetectionprocessor/config.go b/processor/resourcedetectionprocessor/config.go index 78fb07a423ba..ba34649e2c72 100644 --- a/processor/resourcedetectionprocessor/config.go +++ b/processor/resourcedetectionprocessor/config.go @@ -80,7 +80,7 @@ type DetectorConfig struct { // SystemConfig contains user-specified configurations for the System detector SystemConfig system.Config `mapstructure:"system"` - // OpenShift contains user-specified configurations for the Openshift detector + // OpenShift contains user-specified configurations for the OpenShift detector OpenShiftConfig openshift.Config `mapstructure:"openshift"` // K8SNode contains user-specified configurations for the K8SNode detector diff --git a/processor/resourcedetectionprocessor/internal/openshift/config.go b/processor/resourcedetectionprocessor/internal/openshift/config.go index 408bcc760984..bed20f02f493 100644 --- a/processor/resourcedetectionprocessor/internal/openshift/config.go +++ b/processor/resourcedetectionprocessor/internal/openshift/config.go @@ -47,7 +47,7 @@ type Config struct { Token string `mapstructure:"token"` // TLSSettings contains TLS configurations that are specific to client - // connection used to communicate with the Openshift API. + // connection used to communicate with the OpenShift API. TLSSettings configtls.ClientConfig `mapstructure:"tls"` ResourceAttributes metadata.ResourceAttributesConfig `mapstructure:"resource_attributes"` From 4cc13f2cbc8074fc90732023fabb2891c05f5361 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 09:26:15 -0500 Subject: [PATCH 250/450] spelling: opentelemetry Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/azuredataexplorerexporter/README.md | 8 ++++---- exporter/kineticaexporter/README.md | 4 ++-- exporter/sentryexporter/docs/transformation.md | 2 +- extension/storage/storagetest/doc.go | 2 +- receiver/awsfirehosereceiver/README.md | 2 +- receiver/awsfirehosereceiver/doc.go | 2 +- receiver/awss3receiver/doc.go | 2 +- receiver/awsxrayreceiver/doc.go | 2 +- receiver/collectdreceiver/README.md | 2 +- receiver/collectdreceiver/doc.go | 2 +- receiver/huaweicloudcesreceiver/README.md | 2 +- .../mongodbatlasreceiver/internal/mongodb_atlas_client.go | 2 +- receiver/otlpjsonfilereceiver/doc.go | 2 +- receiver/sapmreceiver/doc.go | 2 +- receiver/windowseventlogreceiver/doc.go | 2 +- 15 files changed, 19 insertions(+), 19 deletions(-) diff --git a/exporter/azuredataexplorerexporter/README.md b/exporter/azuredataexplorerexporter/README.md index 105b5009dc36..1e44d96b6ea7 100644 --- a/exporter/azuredataexplorerexporter/README.md +++ b/exporter/azuredataexplorerexporter/README.md @@ -214,16 +214,16 @@ with ( docstring = "Histo sum count processing function", folder = "UpdatePolicy @'[{ "IsEnabled": true, "Source": "RawMetricsData","Query": "ExtractHistoCountColumns()", "IsTransactional": false, "PropagateIngestionProperties": false}]' ``` -### Opentelemetry Exporter Helper Configurations +### OpenTelemetry Exporter Helper Configurations -The ADX exporter now includes support for Opentelemetry exporter helper configurations. This feature allows you to leverage the exporter helper capabilities(retries, timeout etc.) provided natively by Otel. Read more [here](https://github.com/open-telemetry/opentelemetry-collector/blob/main/exporter/exporterhelper/README.md). +The ADX exporter now includes support for OpenTelemetry exporter helper configurations. This feature allows you to leverage the exporter helper capabilities(retries, timeout etc.) provided natively by Otel. Read more [here](https://github.com/open-telemetry/opentelemetry-collector/blob/main/exporter/exporterhelper/README.md). -Please note that this configuration is not enabled by default. To utilize the Opentelemetry exporter helper, you will need to add it manually to the configuration. +Please note that this configuration is not enabled by default. To utilize the OpenTelemetry exporter helper, you will need to add it manually to the configuration. #### Example Configuration ```yaml -# Example Opentelemetry Exporter Configuration +# Example OpenTelemetry Exporter Configuration timeout: 10s sending_queue: enabled: true diff --git a/exporter/kineticaexporter/README.md b/exporter/kineticaexporter/README.md index 7c6e619f3eb3..d12288a90181 100644 --- a/exporter/kineticaexporter/README.md +++ b/exporter/kineticaexporter/README.md @@ -688,9 +688,9 @@ CREATE TABLE "otel"."metric_summary_scope_attribute" ``` -# Kinetica Opentelemetry Exporter +# Kinetica OpenTelemetry Exporter - This exporter could be used to as part of an `Opentelemetry` collector to persist data related to + This exporter could be used to as part of an `OpenTelemetry` collector to persist data related to `logs`, `traces` and `metrics` to the `Kinetica` database. This component is under `development` status. diff --git a/exporter/sentryexporter/docs/transformation.md b/exporter/sentryexporter/docs/transformation.md index c8ba4bb78e3c..3dc0d252ead4 100644 --- a/exporter/sentryexporter/docs/transformation.md +++ b/exporter/sentryexporter/docs/transformation.md @@ -18,7 +18,7 @@ The interface for a Sentry Span can be found [here](https://develop.sentry.dev/s | Span.EndTimestamp | span.EndTime | | | Span.Status | Span.Status | | -As can be seen by the table above, the OpenTelemetry span and Sentry span map fairly reasonably. Currently the OpenTelemtry `Span.Link` and `Span.TraceState` properties are not used when constructing a `SentrySpan` +As can be seen by the table above, the OpenTelemetry span and Sentry span map fairly reasonably. Currently the OpenTelemetry `Span.Link` and `Span.TraceState` properties are not used when constructing a `SentrySpan` ## Transactions diff --git a/extension/storage/storagetest/doc.go b/extension/storage/storagetest/doc.go index 72f340703f84..ed10999b5dc7 100644 --- a/extension/storage/storagetest/doc.go +++ b/extension/storage/storagetest/doc.go @@ -2,5 +2,5 @@ // SPDX-License-Identifier: Apache-2.0 // Package stanzareceiver implements a receiver that can be used by the -// Opentelemetry collector to receive logs using the stanza log agent +// OpenTelemetry collector to receive logs using the stanza log agent package storagetest // import "github.com/open-telemetry/opentelemetry-collector-contrib/extension/storage/storagetest" diff --git a/receiver/awsfirehosereceiver/README.md b/receiver/awsfirehosereceiver/README.md index 64c20f13d7a2..2aaaf88a280d 100644 --- a/receiver/awsfirehosereceiver/README.md +++ b/receiver/awsfirehosereceiver/README.md @@ -28,7 +28,7 @@ receivers: cert_file: server.crt key_file: server.key ``` -The configuration includes the Opentelemetry collector's server [confighttp](https://github.com/open-telemetry/opentelemetry-collector/tree/main/config/confighttp#server-configuration), +The configuration includes the OpenTelemetry collector's server [confighttp](https://github.com/open-telemetry/opentelemetry-collector/tree/main/config/confighttp#server-configuration), which allows for a variety of settings. Only the most relevant ones will be discussed here, but all are available. The AWS Kinesis Data Firehose Delivery Streams currently only support HTTPS endpoints using port 443. This can be potentially circumvented using a Load Balancer. diff --git a/receiver/awsfirehosereceiver/doc.go b/receiver/awsfirehosereceiver/doc.go index 0fbc68261fa9..860bf80ab75e 100644 --- a/receiver/awsfirehosereceiver/doc.go +++ b/receiver/awsfirehosereceiver/doc.go @@ -3,7 +3,7 @@ // Package awsfirehosereceiver implements a receiver that can be used to // receive requests from the AWS Kinesis Data Firehose and transform them -// into formats usable by the Opentelemetry collector. The configuration +// into formats usable by the OpenTelemetry collector. The configuration // determines which unmarshaler to use. Each unmarshaler is responsible for // processing a Firehose record format that can be sent through the delivery // stream. diff --git a/receiver/awss3receiver/doc.go b/receiver/awss3receiver/doc.go index 894229d3a8bf..022abbc07324 100644 --- a/receiver/awss3receiver/doc.go +++ b/receiver/awss3receiver/doc.go @@ -4,6 +4,6 @@ //go:generate mdatagen metadata.yaml // Package awss3receiver implements a receiver that can be used by the -// Opentelemetry collector to retrieve traces previously stored in S3 by the +// OpenTelemetry collector to retrieve traces previously stored in S3 by the // AWS S3 Exporter. package awss3receiver // import "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/awss3receiver" diff --git a/receiver/awsxrayreceiver/doc.go b/receiver/awsxrayreceiver/doc.go index 68f0641b2401..e1c799333d02 100644 --- a/receiver/awsxrayreceiver/doc.go +++ b/receiver/awsxrayreceiver/doc.go @@ -4,7 +4,7 @@ //go:generate mdatagen metadata.yaml // Package awsxrayreceiver implements a receiver that can be used by the -// Opentelemetry collector to receive traces in the AWS X-Ray segment format. +// OpenTelemetry collector to receive traces in the AWS X-Ray segment format. // More details can be found on: // https://docs.aws.amazon.com/xray/latest/devguide/xray-api-segmentdocuments.html package awsxrayreceiver // import "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/awsxrayreceiver" diff --git a/receiver/collectdreceiver/README.md b/receiver/collectdreceiver/README.md index 6b65f19f8617..d94a7bfa7c10 100644 --- a/receiver/collectdreceiver/README.md +++ b/receiver/collectdreceiver/README.md @@ -26,7 +26,7 @@ value `field[a=b, k=v]`, this receiver will extract `a` and `b` as label keys and, `k` and `v` as the respective label values. ## Configuration -The configuration includes the Opentelemetry collector's server [confighttp](https://github.com/open-telemetry/opentelemetry-collector/tree/main/config/confighttp#server-configuration), +The configuration includes the OpenTelemetry collector's server [confighttp](https://github.com/open-telemetry/opentelemetry-collector/tree/main/config/confighttp#server-configuration), which allows for a variety of settings. Only the most relevant ones will be discussed here, but all are available. The following settings are required: diff --git a/receiver/collectdreceiver/doc.go b/receiver/collectdreceiver/doc.go index 52b617a4f61a..359e5c3f6cf7 100644 --- a/receiver/collectdreceiver/doc.go +++ b/receiver/collectdreceiver/doc.go @@ -4,6 +4,6 @@ //go:generate mdatagen metadata.yaml // Package collectdreceiver implements a receiver that can be used by the -// Opentelemetry collector to receive traces from CollectD http_write plugin +// OpenTelemetry collector to receive traces from CollectD http_write plugin // in JSON format. package collectdreceiver // import "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/collectdreceiver" diff --git a/receiver/huaweicloudcesreceiver/README.md b/receiver/huaweicloudcesreceiver/README.md index a874006d42d0..b4ffbd7fc013 100644 --- a/receiver/huaweicloudcesreceiver/README.md +++ b/receiver/huaweicloudcesreceiver/README.md @@ -103,7 +103,7 @@ If you encounter any errors, please refer to: - [Quota management](https://support.huaweicloud.com/intl/en-us/usermanual-ces/en-us_topic_0154940152.html) -## Converting CES metric representation to Open Telementery metric representation +## Converting CES metric representation to OpenTelemetry metric representation | Source Field | Target Field | Description | diff --git a/receiver/mongodbatlasreceiver/internal/mongodb_atlas_client.go b/receiver/mongodbatlasreceiver/internal/mongodb_atlas_client.go index 5f8157a6f26f..95183c3ea384 100644 --- a/receiver/mongodbatlasreceiver/internal/mongodb_atlas_client.go +++ b/receiver/mongodbatlasreceiver/internal/mongodb_atlas_client.go @@ -120,7 +120,7 @@ func (rt *clientRoundTripper) RoundTrip(r *http.Request) (*http.Response, error) } // MongoDBAtlasClient wraps the official MongoDB Atlas client to manage pagination -// and mapping to OpenTelmetry metric and log structures. +// and mapping to OpenTelemetry metric and log structures. type MongoDBAtlasClient struct { log *zap.Logger client *mongodbatlas.Client diff --git a/receiver/otlpjsonfilereceiver/doc.go b/receiver/otlpjsonfilereceiver/doc.go index 3061d8233994..84be8cde0aa6 100644 --- a/receiver/otlpjsonfilereceiver/doc.go +++ b/receiver/otlpjsonfilereceiver/doc.go @@ -4,6 +4,6 @@ //go:generate mdatagen metadata.yaml // Package otlpjsonfilereceiver implements a receiver that can be used by the -// Opentelemetry collector to receive logs, traces and metrics from files +// OpenTelemetry collector to receive logs, traces and metrics from files // See https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/file-exporter.md#json-file-serialization package otlpjsonfilereceiver // import "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/otlpjsonfilereceiver" diff --git a/receiver/sapmreceiver/doc.go b/receiver/sapmreceiver/doc.go index ad940318f555..11caad1e74a0 100644 --- a/receiver/sapmreceiver/doc.go +++ b/receiver/sapmreceiver/doc.go @@ -4,5 +4,5 @@ //go:generate mdatagen metadata.yaml // Package sapmreceiver implements a receiver that can be used by the -// Opentelemetry collector to receive traces in the Splunk SAPM format. +// OpenTelemetry collector to receive traces in the Splunk SAPM format. package sapmreceiver // import "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/sapmreceiver" diff --git a/receiver/windowseventlogreceiver/doc.go b/receiver/windowseventlogreceiver/doc.go index 2b8a7cb749f1..920b6b6aa4a6 100644 --- a/receiver/windowseventlogreceiver/doc.go +++ b/receiver/windowseventlogreceiver/doc.go @@ -4,5 +4,5 @@ //go:generate mdatagen metadata.yaml // Package stanzareceiver implements a receiver that can be used by the -// Opentelemetry collector to receive logs using the stanza log agent +// OpenTelemetry collector to receive logs using the stanza log agent package windowseventlogreceiver // import "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/windowseventlogreceiver" From f2094403abf0a00385b4588fc1ceb7734f49b5de Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:44:48 -0500 Subject: [PATCH 251/450] spelling: operation Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/stanza/operator/output/file/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/stanza/operator/output/file/config.go b/pkg/stanza/operator/output/file/config.go index f27ac156fba8..daeb07365ead 100644 --- a/pkg/stanza/operator/output/file/config.go +++ b/pkg/stanza/operator/output/file/config.go @@ -26,7 +26,7 @@ func NewConfig(operatorID string) *Config { } } -// Config is the configuration of a file output operatorn. +// Config is the configuration of a file output operation. type Config struct { helper.OutputConfig `mapstructure:",squash"` From 5f677938a2082b83ef1916b07f85ded77188b2b8 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:45:19 -0500 Subject: [PATCH 252/450] spelling: operator Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a0959df8c5cb..bcefe922e9ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2276,7 +2276,7 @@ This release fixes CVE-2024-42368 on the `bearerauthtokenextension` (#34516) ### 💡 Enhancements 💡 - `pkg/stanza`: Add a json array parser operator and an assign keys transformer. (#30321) - Json array parser opreator can be used to parse a json array string input into a list of objects. | + Json array parser operator can be used to parse a json array string input into a list of objects. | Assign keys transformer can be used to assigns keys from the configuration to an input list - `splunkhecexporter`: Batch data according to access token and index, if present. (#30404) From 468c75624ed79def1acd9b4d863054b0a335852c Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:45:10 -0500 Subject: [PATCH 253/450] spelling: opportunity Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- processor/schemaprocessor/internal/fixture/parallel.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/processor/schemaprocessor/internal/fixture/parallel.go b/processor/schemaprocessor/internal/fixture/parallel.go index efbcff92de40..c7c0eb5233de 100644 --- a/processor/schemaprocessor/internal/fixture/parallel.go +++ b/processor/schemaprocessor/internal/fixture/parallel.go @@ -14,7 +14,7 @@ import ( ) // ParallelRaceCompute starts `count` number of go routines that calls the provided function `fn` -// at the same to allow the race detector greater oppotunity to capture known race conditions. +// at the same to allow the race detector greater opportunity to capture known race conditions. // This method blocks until each count number of fn has completed, any returned errors is considered // a failing test method. // If the race detector is not enabled, the function then skips with an notice. From 941e022abf237b6cde25df6e67425324fa3ab3f1 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:44:14 -0500 Subject: [PATCH 254/450] spelling: option Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/awsemfexporter/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/awsemfexporter/README.md b/exporter/awsemfexporter/README.md index 97012b52d91a..77a06400341c 100644 --- a/exporter/awsemfexporter/README.md +++ b/exporter/awsemfexporter/README.md @@ -41,7 +41,7 @@ The following exporter configuration parameters are supported. | `role_arn` | IAM role to upload segments to a different account. | | | `max_retries` | Maximum number of retries before abandoning an attempt to post data. | 1 | | `dimension_rollup_option` | DimensionRollupOption is the option for metrics dimension rollup. Three options are available: `NoDimensionRollup`, `SingleDimensionRollupOnly` and `ZeroAndSingleDimensionRollup`. The default value is `ZeroAndSingleDimensionRollup`. Enabling feature gate `awsemf.nodimrollupdefault` will set default to `NoDimensionRollup`. |"ZeroAndSingleDimensionRollup" (Enable both zero dimension rollup and single dimension rollup)| -| `resource_to_telemetry_conversion` | "resource_to_telemetry_conversion" is the option for converting resource attributes to telemetry attributes. It has only one config onption- `enabled`. For metrics, if `enabled=true`, all the resource attributes will be converted to metric labels by default. See `Resource Attributes to Metric Labels` section below for examples. | `enabled=false` | +| `resource_to_telemetry_conversion` | "resource_to_telemetry_conversion" is the option for converting resource attributes to telemetry attributes. It has only one config option- `enabled`. For metrics, if `enabled=true`, all the resource attributes will be converted to metric labels by default. See `Resource Attributes to Metric Labels` section below for examples. | `enabled=false` | | `output_destination` | "output_destination" is an option to specify the EMFExporter output. Currently, two options are available. "cloudwatch" or "stdout" | `cloudwatch` | | `detailed_metrics` | Retain detailed datapoint values in exported metrics (e.g instead of exporting a quantile as a statistical value, preserve the quantile's population) | `false` | | `parse_json_encoded_attr_values` | List of attribute keys whose corresponding values are JSON-encoded strings and will be converted to JSON structures in emf logs. For example, the attribute string value "{\\"x\\":5,\\"y\\":6}" will be converted to a json object: ```{"x": 5, "y": 6}``` | [ ] | From 651ad445cf8c16fa651091620ac23fdb85211411 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:45:33 -0500 Subject: [PATCH 255/450] spelling: original Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/stanza/fileconsumer/rotation_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/stanza/fileconsumer/rotation_test.go b/pkg/stanza/fileconsumer/rotation_test.go index bc8f067f535a..150a4fbd7ef6 100644 --- a/pkg/stanza/fileconsumer/rotation_test.go +++ b/pkg/stanza/fileconsumer/rotation_test.go @@ -223,7 +223,7 @@ func TestTrackRotatedFilesLogOrder(t *testing.T) { operator.set.Logger = logger originalFile := filetest.OpenTemp(t, tempDir) - orginalName := originalFile.Name() + originalName := originalFile.Name() filetest.WriteString(t, originalFile, "testlog1\n") require.NoError(t, operator.Start(testutil.NewUnscopedMockPersister())) @@ -239,9 +239,9 @@ func TestTrackRotatedFilesLogOrder(t *testing.T) { require.NoError(t, os.Mkdir(newDir, 0o777)) movedFileName := fmt.Sprintf("%s%s", newDir, "newfile.log") - require.NoError(t, os.Rename(orginalName, movedFileName)) + require.NoError(t, os.Rename(originalName, movedFileName)) - newFile, err := os.OpenFile(orginalName, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0o644) + newFile, err := os.OpenFile(originalName, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0o644) require.NoError(t, err) filetest.WriteString(t, newFile, "testlog3\n") From 2af01639365207d8d4bdf57398ef0e509141726f Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:48:02 -0500 Subject: [PATCH 256/450] spelling: other Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/solacereceiver/unmarshaller_egress.go | 2 +- receiver/solacereceiver/unmarshaller_move.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/receiver/solacereceiver/unmarshaller_egress.go b/receiver/solacereceiver/unmarshaller_egress.go index c678e5f94e9a..c811682b27cb 100644 --- a/receiver/solacereceiver/unmarshaller_egress.go +++ b/receiver/solacereceiver/unmarshaller_egress.go @@ -24,7 +24,7 @@ import ( type brokerTraceEgressUnmarshallerV1 struct { logger *zap.Logger telemetryBuilder *metadata.TelemetryBuilder - metricAttrs attribute.Set // othere Otel attributes (to add to the metrics) + metricAttrs attribute.Set // other Otel attributes (to add to the metrics) } // unmarshal implements tracesUnmarshaller.unmarshal diff --git a/receiver/solacereceiver/unmarshaller_move.go b/receiver/solacereceiver/unmarshaller_move.go index 41dc73ebe40f..2efb5dfd801d 100644 --- a/receiver/solacereceiver/unmarshaller_move.go +++ b/receiver/solacereceiver/unmarshaller_move.go @@ -21,7 +21,7 @@ import ( type brokerTraceMoveUnmarshallerV1 struct { logger *zap.Logger telemetryBuilder *metadata.TelemetryBuilder - metricAttrs attribute.Set // othere Otel attributes (to add to the metrics) + metricAttrs attribute.Set // other Otel attributes (to add to the metrics) } // unmarshal implements tracesUnmarshaller.unmarshal From 392170da3bf4b39b7b4bb619a81847dabf7a8dce Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:46:42 -0500 Subject: [PATCH 257/450] spelling: otherattribs Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- internal/pdatautil/attributes_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/pdatautil/attributes_test.go b/internal/pdatautil/attributes_test.go index 7fea4472aa0e..b87f0e27b4b5 100644 --- a/internal/pdatautil/attributes_test.go +++ b/internal/pdatautil/attributes_test.go @@ -17,9 +17,9 @@ func TestGetDimensionValue(t *testing.T) { spanattris := pcommon.NewMap() spanattris.PutStr("span.name", "mock-span-name") - otherattris := pcommon.NewMap() - otherattris.PutStr("a", "b") - otherattris.PutStr("foo", "bar") + otherattribs := pcommon.NewMap() + otherattribs.PutStr("a", "b") + otherattribs.PutStr("foo", "bar") defaultFoo := pcommon.NewValueStr("bar") @@ -32,7 +32,7 @@ func TestGetDimensionValue(t *testing.T) { { name: "success get dimension value", dimension: Dimension{Name: "foo"}, - attributes: []pcommon.Map{resourceattris, spanattris, otherattris}, + attributes: []pcommon.Map{resourceattris, spanattris, otherattribs}, wantDimensionVal: "bar", }, { From 0cd2bceceb7efa3faedd2a08334bf5ee7dcfb188 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 09:26:43 -0500 Subject: [PATCH 258/450] spelling: otherwise Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- internal/aws/cwlogs/cwlog_client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/aws/cwlogs/cwlog_client.go b/internal/aws/cwlogs/cwlog_client.go index f9a9c9e1a60b..b4cadf2c5d88 100644 --- a/internal/aws/cwlogs/cwlog_client.go +++ b/internal/aws/cwlogs/cwlog_client.go @@ -167,7 +167,7 @@ func (client *Client) CreateStream(logGroup, streamName *string) error { Tags: client.tags, }) if err == nil { - // For newly created log groups, set the log retention polic if specified or non-zero. Otheriwse, set to Never Expire + // For newly created log groups, set the log retention polic if specified or non-zero. Otherwise, set to Never Expire if client.logRetention != 0 { _, err = client.svc.PutRetentionPolicy(&cloudwatchlogs.PutRetentionPolicyInput{LogGroupName: logGroup, RetentionInDays: &client.logRetention}) if err != nil { From c7d63420dd8e79168a1750be3e7e9448bcdd3d1c Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:50:04 -0500 Subject: [PATCH 259/450] spelling: output Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bcefe922e9ad..fc1d307aac87 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1581,7 +1581,7 @@ This release fixes CVE-2024-42368 on the `bearerauthtokenextension` (#34516) - `filelogreceiver`: Add container operator parser (#31959) - `jsonlogencodingextension`: Move jsonlogencodingextension to alpha (#32697) -- `exceptionsconnector`: Make span name a default dimension for ouput metrics and log records. (#32162) +- `exceptionsconnector`: Make span name a default dimension for output metrics and log records. (#32162) - `azureblobreceiver`: Support service principal authentication for Blob storage (#32705) - `deltatocumulativeprocessor`: exponential histogram accumulation (#31340) accumulates exponential histogram datapoints by adding respective bucket counts. also handles downscaling, changing zero-counts, offset adaptions and optional fields From 988efc874661b2b1e850d03296be3f9cbfff074a Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:50:11 -0500 Subject: [PATCH 260/450] spelling: overwriting Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/stanza/fileconsumer/internal/tracker/tracker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/stanza/fileconsumer/internal/tracker/tracker.go b/pkg/stanza/fileconsumer/internal/tracker/tracker.go index 13b7de6b57e5..cf8dc3133681 100644 --- a/pkg/stanza/fileconsumer/internal/tracker/tracker.go +++ b/pkg/stanza/fileconsumer/internal/tracker/tracker.go @@ -154,7 +154,7 @@ func (t *fileTracker) archive(metadata *fileset.Fileset[*reader.Metadata]) { // index | ▶ │ 0 │ ▶ │ 1 │ ▶ ... ▶ │ polls_to_archive │ | // | ▲ └───┘ └───┘ └──────────────────┘ | // | ▲ ▲ ▼ | - // | ▲ │ Roll over overriting older offsets, if any ◀ | + // | ▲ │ Roll over overwriting older offsets, if any ◀ | // └──────│──────────────────────────────────────────────────────┘ // │ // │ From 2a9af689d8c4e9ec9695d00db16d10773a31e6f2 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:50:30 -0500 Subject: [PATCH 261/450] spelling: package Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG-API.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG-API.md b/CHANGELOG-API.md index 5baa3b9addfc..a80ccf6ac65d 100644 --- a/CHANGELOG-API.md +++ b/CHANGELOG-API.md @@ -492,9 +492,9 @@ If you are looking for user-facing changes, check out [CHANGELOG.md](./CHANGELOG ### 🚩 Deprecations 🚩 - `pkg/stanza`: Deprecate 'helper.EncodingConfig' and 'helper.NewEncodingConfig' (#25846) -- `pkg/stanza`: Deprecate encoding related elements of helper pacakge, in favor of new decoder package (#26019) +- `pkg/stanza`: Deprecate encoding related elements of helper package, in favor of new decoder package (#26019) Includes the following deprecations | - Decoder - NewDecoder - LookupEncoding - IsNop -- `pkg/stanza`: Deprecate tokenization related elements of helper pacakge, in favor of new tokenize package (#25914) +- `pkg/stanza`: Deprecate tokenization related elements of helper package, in favor of new tokenize package (#25914) Includes the following deprecations | - Flusher - FlusherConfig - NewFlusherConfig - Multiline - MultilineConfig - NewMultilineConfig - NewLineStartSplitFunc - NewLineEndSplitFunc - NewNewlineSplitFunc - Splitter - SplitterConfig - NewSplitterConfig - SplitNone ### 💡 Enhancements 💡 From 2d95d223d055bfc31df5c3f2e554cd2b1c982199 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:50:43 -0500 Subject: [PATCH 262/450] spelling: parameter Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/ottl/ottlfuncs/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/ottl/ottlfuncs/README.md b/pkg/ottl/ottlfuncs/README.md index 20fd22801f10..dcb3c6779f01 100644 --- a/pkg/ottl/ottlfuncs/README.md +++ b/pkg/ottl/ottlfuncs/README.md @@ -1294,7 +1294,7 @@ The `ParseCSV` Converter returns a `pcommon.Map` struct that contains the result `headerDelimiter` is an optional string parameter that specified the delimiter used to split `headers` into fields. By default, it is set to the value of `delimiter`. -`mode` is an optional string paramater that specifies the parsing mode. Valid values are `strict`, `lazyQuotes`, and `ignoreQuotes`. By default, it is set to `strict`. +`mode` is an optional string parameter that specifies the parsing mode. Valid values are `strict`, `lazyQuotes`, and `ignoreQuotes`. By default, it is set to `strict`. - The `strict` mode provides typical CSV parsing. - The `lazyQotes` mode provides a relaxed version of CSV parsing where a quote may appear in the middle of a unquoted field. - The `ignoreQuotes` mode completely ignores any quoting rules for CSV and just splits the row on the delimiter. From 3662dda90fee443c1bf6624ae4966986e41d3277 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 21:35:56 -0500 Subject: [PATCH 263/450] spelling: parsable Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/stanza/operator/helper/severity_builder.go | 10 +++++----- receiver/nsxtreceiver/config_test.go | 2 +- receiver/vcenterreceiver/config_test.go | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pkg/stanza/operator/helper/severity_builder.go b/pkg/stanza/operator/helper/severity_builder.go index 7733d0e2f925..1ae58bb96129 100644 --- a/pkg/stanza/operator/helper/severity_builder.go +++ b/pkg/stanza/operator/helper/severity_builder.go @@ -84,8 +84,8 @@ func getBuiltinMapping(name string) severityMap { } } -func (m severityMap) add(severity entry.Severity, parseableValues ...string) { - for _, str := range parseableValues { +func (m severityMap) add(severity entry.Severity, parsableValues ...string) { + for _, str := range parsableValues { m[str] = severity } } @@ -130,14 +130,14 @@ func (c *SeverityConfig) Build(_ component.TelemetrySettings) (SeverityParser, e switch u := unknown.(type) { case []any: // check before any for _, value := range u { - v, err := parseableValues(value) + v, err := parsableValues(value) if err != nil { return SeverityParser{}, err } operatorMapping.add(sev, v...) } case any: - v, err := parseableValues(u) + v, err := parsableValues(u) if err != nil { return SeverityParser{}, err } @@ -196,7 +196,7 @@ func expandRange(minR, maxR int) []string { return rangeOfStrings } -func parseableValues(value any) ([]string, error) { +func parsableValues(value any) ([]string, error) { switch v := value.(type) { case int: return []string{strconv.Itoa(v)}, nil // store as string because we will compare as string diff --git a/receiver/nsxtreceiver/config_test.go b/receiver/nsxtreceiver/config_test.go index aaae7b13847b..99de3af56f02 100644 --- a/receiver/nsxtreceiver/config_test.go +++ b/receiver/nsxtreceiver/config_test.go @@ -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", cfg: &Config{ ClientConfig: confighttp.ClientConfig{ Endpoint: "\x00", diff --git a/receiver/vcenterreceiver/config_test.go b/receiver/vcenterreceiver/config_test.go index 1dd5e8aa2fe6..aa19533d9e9a 100644 --- a/receiver/vcenterreceiver/config_test.go +++ b/receiver/vcenterreceiver/config_test.go @@ -50,7 +50,7 @@ func TestConfigValidation(t *testing.T) { expectedErr: errors.New("url scheme must be http or https"), }, { - desc: "unparseable URL", + desc: "unparsable URL", cfg: Config{ Endpoint: "h" + string(rune(0x7f)), ClientConfig: configtls.ClientConfig{}, From c246ae6d5301c7daf0b713a5931f4efc90388d5f Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:50:57 -0500 Subject: [PATCH 264/450] spelling: particular Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/redisreceiver/redis_scraper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/redisreceiver/redis_scraper.go b/receiver/redisreceiver/redis_scraper.go index 4c7311bfc86e..51eff8ee1777 100644 --- a/receiver/redisreceiver/redis_scraper.go +++ b/receiver/redisreceiver/redis_scraper.go @@ -195,7 +195,7 @@ func (rs *redisScraper) recordCmdMetrics(ts pcommon.Timestamp, inf info) { } } -// recordCmdStatsMetrics records metrics for a particlar Redis command. +// recordCmdStatsMetrics records metrics for a particular Redis command. // Only 'calls' and 'usec' are recorded at the moment. // 'cmd' is the Redis command, 'val' is the values string (e.g. "calls=1685,usec=6032,usec_per_call=3.58,rejected_calls=0,failed_calls=0"). func (rs *redisScraper) recordCmdStatsMetrics(ts pcommon.Timestamp, cmd, val string) { From cf083ebc9cd38a1b25637da375e0347fea20faa7 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:50:49 -0500 Subject: [PATCH 265/450] spelling: partition Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/awss3exporter/internal/upload/partition_test.go | 4 ++-- .../scraper/filesystemscraper/filesystem_scraper_test.go | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/exporter/awss3exporter/internal/upload/partition_test.go b/exporter/awss3exporter/internal/upload/partition_test.go index 293fa58aa8c2..9f316dc8199b 100644 --- a/exporter/awss3exporter/internal/upload/partition_test.go +++ b/exporter/awss3exporter/internal/upload/partition_test.go @@ -82,7 +82,7 @@ func TestPartitionKeyInputsBucketPrefix(t *testing.T) { expect: "/year=2024/month=01/day=24/hour=06", }, { - name: "parition by minutes", + name: "partition by minutes", inputs: &PartitionKeyBuilder{ PartitionTruncation: "minute", }, @@ -180,7 +180,7 @@ func TestPartitionKeyInputsUniqueKey(t *testing.T) { for i := 0; i < 500; i++ { uv := (&PartitionKeyBuilder{}).uniqueKey() _, ok := seen[uv] - assert.False(t, ok, "Must not have repeated parition key %q", uv) + assert.False(t, ok, "Must not have repeated partition key %q", uv) seen[uv] = struct{}{} } } diff --git a/receiver/hostmetricsreceiver/internal/scraper/filesystemscraper/filesystem_scraper_test.go b/receiver/hostmetricsreceiver/internal/scraper/filesystemscraper/filesystem_scraper_test.go index 533c83adfb01..7093345c92cc 100644 --- a/receiver/hostmetricsreceiver/internal/scraper/filesystemscraper/filesystem_scraper_test.go +++ b/receiver/hostmetricsreceiver/internal/scraper/filesystemscraper/filesystem_scraper_test.go @@ -81,12 +81,12 @@ func TestScrape(t *testing.T) { IncludeVirtualFS: true, IncludeFSTypes: FSTypeMatchConfig{Config: filterset.Config{MatchType: filterset.Strict}, FSTypes: []string{"tmpfs"}}, }, - partitionsFunc: func(_ context.Context, includeVirtual bool) (paritions []disk.PartitionStat, err error) { - paritions = append(paritions, disk.PartitionStat{Device: "root-device", Fstype: "ext4"}) + partitionsFunc: func(_ context.Context, includeVirtual bool) (partitions []disk.PartitionStat, err error) { + partitions = append(partitions, disk.PartitionStat{Device: "root-device", Fstype: "ext4"}) if includeVirtual { - paritions = append(paritions, disk.PartitionStat{Device: "shm", Fstype: "tmpfs"}) + partitions = append(partitions, disk.PartitionStat{Device: "shm", Fstype: "tmpfs"}) } - return paritions, err + return partitions, err }, usageFunc: func(context.Context, string) (*disk.UsageStat, error) { return &disk.UsageStat{}, nil From cf9663ec136245663218fe56d8472b0d1b0084fa Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 09:27:04 -0500 Subject: [PATCH 266/450] spelling: passthrough Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- processor/k8sattributesprocessor/processor_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/processor/k8sattributesprocessor/processor_test.go b/processor/k8sattributesprocessor/processor_test.go index ee51cc82d9f0..6e6458ea4c82 100644 --- a/processor/k8sattributesprocessor/processor_test.go +++ b/processor/k8sattributesprocessor/processor_test.go @@ -1296,7 +1296,7 @@ func TestProcessorAddContainerAttributes(t *testing.T) { } } -func TestProcessorPicksUpPassthoughPodIp(t *testing.T) { +func TestProcessorPicksUpPassthroughPodIp(t *testing.T) { m := newMultiTest( t, NewFactory().CreateDefaultConfig(), From 5afbec48c9edb09a7de4c3e81460db381ecf0516 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 09:49:40 -0500 Subject: [PATCH 267/450] spelling: path Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../internal/integrationtestutils/config_helper.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/exporter/splunkhecexporter/internal/integrationtestutils/config_helper.go b/exporter/splunkhecexporter/internal/integrationtestutils/config_helper.go index 86c0685e4c4d..98999663db9a 100644 --- a/exporter/splunkhecexporter/internal/integrationtestutils/config_helper.go +++ b/exporter/splunkhecexporter/internal/integrationtestutils/config_helper.go @@ -10,7 +10,7 @@ import ( "gopkg.in/yaml.v3" ) -var configFilePth = "./testdata/integration_tests_config.yaml" +var configFilePath = "./testdata/integration_tests_config.yaml" type IntegrationTestsConfig struct { Host string `yaml:"HOST"` @@ -28,7 +28,7 @@ type IntegrationTestsConfig struct { func GetConfigVariable(key string) string { // Read YAML file - fileData, err := os.ReadFile(configFilePth) + fileData, err := os.ReadFile(configFilePath) if err != nil { fmt.Println("Error reading file:", err) } @@ -70,7 +70,7 @@ func GetConfigVariable(key string) string { func SetConfigVariable(key string, value string) { // Read YAML file - fileData, err := os.ReadFile(configFilePth) + fileData, err := os.ReadFile(configFilePath) if err != nil { fmt.Println("Error reading file:", err) } @@ -102,7 +102,7 @@ func SetConfigVariable(key string, value string) { } // Write yaml file - err = os.WriteFile(configFilePth, newData, 0o600) + err = os.WriteFile(configFilePath, newData, 0o600) if err != nil { fmt.Printf("Error writing file: %v", err) return From 0a713043a1bb105e227c84c36201d73d23b0b0d4 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:51:10 -0500 Subject: [PATCH 268/450] spelling: pattern Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- extension/observer/ecsobserver/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extension/observer/ecsobserver/README.md b/extension/observer/ecsobserver/README.md index 02e34b42f201..996938c4a4cf 100644 --- a/extension/observer/ecsobserver/README.md +++ b/extension/observer/ecsobserver/README.md @@ -201,7 +201,7 @@ NOTE: name of the service is **added** as label value with key `ServiceName`. name_pattern: ^retail-.*$ --- # Example 2: Matches all container with name java-api in cash-app service -name_pattnern: ^cash-app$ +name_pattern: ^cash-app$ container_name_pattern: ^java-api$ --- # Example 3: Override default metrics_path (i.e. /metrics) From 5fc7fb5df8f990c521abd5d24c1592d3e27f81ea Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:51:52 -0500 Subject: [PATCH 269/450] spelling: patterns Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- extension/observer/ecsobserver/service.go | 2 +- extension/observer/ecsobserver/task_definition.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extension/observer/ecsobserver/service.go b/extension/observer/ecsobserver/service.go index b4b8f8b8cb59..13346b5e70cf 100644 --- a/extension/observer/ecsobserver/service.go +++ b/extension/observer/ecsobserver/service.go @@ -18,7 +18,7 @@ type ServiceConfig struct { // NamePattern is mandatory. NamePattern string `mapstructure:"name_pattern" yaml:"name_pattern"` // ContainerNamePattern is optional, empty string means all containers in that service would be exported. - // Otherwise both service and container name petterns need to match. + // Otherwise both service and container name patterns need to match. ContainerNamePattern string `mapstructure:"container_name_pattern" yaml:"container_name_pattern"` } diff --git a/extension/observer/ecsobserver/task_definition.go b/extension/observer/ecsobserver/task_definition.go index b30a79e7c209..4366fcd73751 100644 --- a/extension/observer/ecsobserver/task_definition.go +++ b/extension/observer/ecsobserver/task_definition.go @@ -18,7 +18,7 @@ type TaskDefinitionConfig struct { // ArnPattern is mandatory, empty string means arn based match is skipped. ArnPattern string `mapstructure:"arn_pattern" yaml:"arn_pattern"` // ContainerNamePattern is optional, empty string means all containers in that task definition would be exported. - // Otherwise both service and container name petterns need to match. + // Otherwise both service and container name patterns need to match. ContainerNamePattern string `mapstructure:"container_name_pattern" yaml:"container_name_pattern"` } From 7204ce017baea0d540370aa86524bcd90d1c9481 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:51:24 -0500 Subject: [PATCH 270/450] spelling: pending Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../signalfxexporter/internal/apm/correlations/dedup.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/exporter/signalfxexporter/internal/apm/correlations/dedup.go b/exporter/signalfxexporter/internal/apm/correlations/dedup.go index 28e26dc483fe..8cc6deb1e63c 100644 --- a/exporter/signalfxexporter/internal/apm/correlations/dedup.go +++ b/exporter/signalfxexporter/internal/apm/correlations/dedup.go @@ -101,8 +101,8 @@ func (d *deduplicator) dedupCorrelate(r *request) bool { d.pendingCreateKeys[*r.Correlation] = elem // cancel any pending delete operations - deleteElem, pendindgDelete := d.pendingDeleteKeys[*r.Correlation] - if pendindgDelete { + deleteElem, pendingDelete := d.pendingDeleteKeys[*r.Correlation] + if pendingDelete { deleteElem.Value.(*request).cancel() d.pendingDeletes.Remove(deleteElem) delete(d.pendingDeleteKeys, *deleteElem.Value.(*request).Correlation) @@ -129,8 +129,8 @@ func (d *deduplicator) dedupDelete(r *request) bool { d.pendingDeleteKeys[*r.Correlation] = elem // cancel any pending create operations - createElem, pendindgCreate := d.pendingCreateKeys[*r.Correlation] - if pendindgCreate { + createElem, pendingCreate := d.pendingCreateKeys[*r.Correlation] + if pendingCreate { createElem.Value.(*request).cancel() d.pendingCreates.Remove(createElem) delete(d.pendingCreateKeys, *createElem.Value.(*request).Correlation) From 7ae0f9281c425c084005f60a31d50d6a240156c7 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 09:27:37 -0500 Subject: [PATCH 271/450] spelling: permanent Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/otelarrowexporter/internal/arrow/stream.go | 2 +- extension/healthcheckv2extension/internal/grpc/grpc_test.go | 4 ++-- receiver/datadogreceiver/receiver_test.go | 4 ++-- receiver/sapmreceiver/trace_receiver_test.go | 4 ++-- testbed/testbed/mock_backend.go | 2 +- testbed/testbed/test_case.go | 2 +- testbed/tests/scenarios.go | 6 +++--- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/exporter/otelarrowexporter/internal/arrow/stream.go b/exporter/otelarrowexporter/internal/arrow/stream.go index 7a99a3d6f51f..f44ebef9abc7 100644 --- a/exporter/otelarrowexporter/internal/arrow/stream.go +++ b/exporter/otelarrowexporter/internal/arrow/stream.go @@ -328,7 +328,7 @@ func (s *Stream) encodeAndSend(wri writeItem, hdrsBuf *bytes.Buffer, hdrsEnc *hp if err != nil { // This case is like the encode-failure case // above, we will restart the stream but consider - // this a permenent error. + // this a permanent error. err = status.Errorf(codes.Internal, "hpack: %v", err) wri.errCh <- err return err diff --git a/extension/healthcheckv2extension/internal/grpc/grpc_test.go b/extension/healthcheckv2extension/internal/grpc/grpc_test.go index 033b4bde8fa0..0ff067190ae8 100644 --- a/extension/healthcheckv2extension/internal/grpc/grpc_test.go +++ b/extension/healthcheckv2extension/internal/grpc/grpc_test.go @@ -310,7 +310,7 @@ func TestCheck(t *testing.T) { }, { step: func() { - // permament error will be ignored + // permanent error will be ignored server.aggregator.RecordStatus( metrics.ExporterID, componentstatus.NewPermanentErrorEvent(assert.AnError), @@ -467,7 +467,7 @@ func TestCheck(t *testing.T) { }, { step: func() { - // permament error included + // permanent error included server.aggregator.RecordStatus( metrics.ExporterID, componentstatus.NewPermanentErrorEvent(assert.AnError), diff --git a/receiver/datadogreceiver/receiver_test.go b/receiver/datadogreceiver/receiver_test.go index 79c1072b7581..6a9144e166e0 100644 --- a/receiver/datadogreceiver/receiver_test.go +++ b/receiver/datadogreceiver/receiver_test.go @@ -141,12 +141,12 @@ func TestDatadogResponse(t *testing.T) { }{ { name: "non-permanent error", - err: errors.New("non-permanenet error"), + err: errors.New("non-permanent error"), expectedStatus: http.StatusServiceUnavailable, }, { name: "permanent error", - err: consumererror.NewPermanent(errors.New("non-permanenet error")), + err: consumererror.NewPermanent(errors.New("non-permanent error")), expectedStatus: http.StatusBadRequest, }, } diff --git a/receiver/sapmreceiver/trace_receiver_test.go b/receiver/sapmreceiver/trace_receiver_test.go index 01aa4adeb910..1a55cc81dd8e 100644 --- a/receiver/sapmreceiver/trace_receiver_test.go +++ b/receiver/sapmreceiver/trace_receiver_test.go @@ -370,12 +370,12 @@ func TestStatusCode(t *testing.T) { }{ { name: "non-permanent error", - err: errors.New("non-permanenet error"), + err: errors.New("non-permanent error"), expectedStatus: http.StatusServiceUnavailable, }, { name: "permanent error", - err: consumererror.NewPermanent(errors.New("non-permanenet error")), + err: consumererror.NewPermanent(errors.New("non-permanent error")), expectedStatus: http.StatusBadRequest, }, } diff --git a/testbed/testbed/mock_backend.go b/testbed/testbed/mock_backend.go index 0c8c22a0fcb9..21e541c2d3a8 100644 --- a/testbed/testbed/mock_backend.go +++ b/testbed/testbed/mock_backend.go @@ -304,7 +304,7 @@ func RandomNonPermanentError() error { return nil } -func GenerateNonPernamentErrorUntil(ch chan bool) error { +func GenerateNonPermanentErrorUntil(ch chan bool) error { code := codes.Unavailable s := status.New(code, errNonPermanent.Error()) defaultReturn := s.Err() diff --git a/testbed/testbed/test_case.go b/testbed/testbed/test_case.go index 632fd00a4c30..fc4f5ade748a 100644 --- a/testbed/testbed/test_case.go +++ b/testbed/testbed/test_case.go @@ -54,7 +54,7 @@ type TestCase struct { errorCause string resultsSummary TestResultsSummary - // decision makes mockbackend return permanent/non-permament errors at random basis + // decision makes mockbackend return permanent/non-permanent errors at random basis decision decisionFunc } diff --git a/testbed/tests/scenarios.go b/testbed/tests/scenarios.go index ed908720f1a9..ff971cebc007 100644 --- a/testbed/tests/scenarios.go +++ b/testbed/tests/scenarios.go @@ -408,7 +408,7 @@ func ScenarioSendingQueuesFull( }, resultsSummary, testbed.WithResourceLimits(resourceSpec), - testbed.WithDecisionFunc(func() error { return testbed.GenerateNonPernamentErrorUntil(dataChannel) }), + testbed.WithDecisionFunc(func() error { return testbed.GenerateNonPermanentErrorUntil(dataChannel) }), ) t.Cleanup(tc.Stop) @@ -421,7 +421,7 @@ func ScenarioSendingQueuesFull( tc.WaitForN(func() bool { return tc.LoadGenerator.DataItemsSent() > 0 }, time.Second*time.Duration(sleepTime), "load generator started") - // searchFunc checks for "sending queue is full" communicate and sends the signal to GenerateNonPernamentErrorUntil + // searchFunc checks for "sending queue is full" communicate and sends the signal to GenerateNonPermanentErrorUntil // to generate only successes from that time on tc.WaitForN(func() bool { logFound := tc.AgentLogsContains("sending queue is full") @@ -583,7 +583,7 @@ func ScenarioMemoryLimiterHit( agentProc, &testbed.CorrectnessLogTestValidator{}, resultsSummary, - testbed.WithDecisionFunc(func() error { return testbed.GenerateNonPernamentErrorUntil(dataChannel) }), + testbed.WithDecisionFunc(func() error { return testbed.GenerateNonPermanentErrorUntil(dataChannel) }), ) t.Cleanup(tc.Stop) tc.MockBackend.EnableRecording() From 907a1b54f171ca94bde92476a9eff079ed8da602 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:52:03 -0500 Subject: [PATCH 272/450] spelling: pipeline Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- extension/healthcheckv2extension/README.md | 2 +- receiver/kafkareceiver/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extension/healthcheckv2extension/README.md b/extension/healthcheckv2extension/README.md index 86192094d093..fdcb8211f509 100644 --- a/extension/healthcheckv2extension/README.md +++ b/extension/healthcheckv2extension/README.md @@ -328,7 +328,7 @@ a response body such as: **Non-detailed Response Example** -If the same request is made without the verbose flag, only the overall pipline status will be +If the same request is made without the verbose flag, only the overall pipeline status will be returned. The component level statuses will be omitted. ```json diff --git a/receiver/kafkareceiver/README.md b/receiver/kafkareceiver/README.md index b7b25c4eadb6..49f3c4c0ce31 100644 --- a/receiver/kafkareceiver/README.md +++ b/receiver/kafkareceiver/README.md @@ -94,7 +94,7 @@ The following settings can be optionally configured: - `on_error`: (default = false) If false, only the successfully processed messages are marked **Note: this can block the entire partition in case a message processing returns a permanent error** - `header_extraction`: - - `extract_headers` (default = false): Allows user to attach header fields to resource attributes in otel piepline + - `extract_headers` (default = false): Allows user to attach header fields to resource attributes in otel pipeline - `headers` (default = []): List of headers they'd like to extract from kafka record. **Note: Matching pattern will be `exact`. Regexes are not supported as of now.** From a6b3b8d4170b306330d0a2b148db1fd43a2fb1fa Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:52:28 -0500 Subject: [PATCH 273/450] spelling: populate Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- internal/coreinternal/goldendataset/pict_tracing_input_defs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/coreinternal/goldendataset/pict_tracing_input_defs.go b/internal/coreinternal/goldendataset/pict_tracing_input_defs.go index 6c7f5b79bb35..c7296b0a8f86 100644 --- a/internal/coreinternal/goldendataset/pict_tracing_input_defs.go +++ b/internal/coreinternal/goldendataset/pict_tracing_input_defs.go @@ -48,7 +48,7 @@ const ( type PICTTracingInputs struct { // Specifies the category of attributes to populate the Resource field with Resource PICTInputResource - // Specifies the number and library categories to populte the ScopeSpans field with + // Specifies the number and library categories to populate the ScopeSpans field with InstrumentationLibrary PICTInputInstrumentationLibrary // Specifies the relative number of spans to populate the ScopeSpans' Spans field with Spans PICTInputSpans From 0752e47613ba3a75603e31819c66bdd461146737 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 3 Jan 2025 09:52:57 -0500 Subject: [PATCH 274/450] spelling: preemptively Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- processor/tailsamplingprocessor/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/processor/tailsamplingprocessor/README.md b/processor/tailsamplingprocessor/README.md index 98ac624d014a..a6df70b6566a 100644 --- a/processor/tailsamplingprocessor/README.md +++ b/processor/tailsamplingprocessor/README.md @@ -469,7 +469,7 @@ A circular buffer is used to ensure the number of traces in-memory doesn't excee otelcol_processor_tail_sampling_sampling_trace_dropped_too_early ``` -**Pre-emptively Preventing Dropped Traces** +**Preemptively Preventing Dropped Traces** A trace is dropped without sampling if it's removed from the circular buffer before `decision_wait`. From 131ae428bfed14124340087e8286b9b722c554ff Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 3 Jan 2025 09:52:33 -0500 Subject: [PATCH 275/450] spelling: preexisting Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- pkg/stanza/fileconsumer/file_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fc1d307aac87..188c0fb6c01f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -296,7 +296,7 @@ If you are looking for developer-facing changes, check out [CHANGELOG-API.md](./ - `exporter/loadbalancing`: Shutdown exporters during collector shutdown. This fixes a memory leak. (#36024) - `pkg/ottl`: Respect the `depth` option when flattening slices using `flatten` (#36161) The `depth` option is also now required to be at least `1`. -- `prometheusexporter`: reject metrics whose types have changed, use pre-existing descriptions when help strings change (#28617) +- `prometheusexporter`: reject metrics whose types have changed, use preexisting descriptions when help strings change (#28617) - `pkg/stanza`: Synchronous handling of entries passed from the log emitter to the receiver adapter (#35453) - `prometheusreceiver`: Fix prometheus receiver to support static scrape config with Target Allocator (#36062) diff --git a/pkg/stanza/fileconsumer/file_test.go b/pkg/stanza/fileconsumer/file_test.go index 84c72044ef47..453bd7c1e989 100644 --- a/pkg/stanza/fileconsumer/file_test.go +++ b/pkg/stanza/fileconsumer/file_test.go @@ -50,7 +50,7 @@ func TestDefaultBehaviors(t *testing.T) { require.NoError(t, operator.Stop()) }() - // Should not emit the pre-existing token, even after flush period + // Should not emit the preexisting token, even after flush period sink.ExpectNoCallsUntil(t, reader.DefaultFlushPeriod) // Complete token should be emitted quickly From 066349be517b4b096a10e7b82043f2d604122919 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 09:28:56 -0500 Subject: [PATCH 276/450] spelling: prefix Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/k8sclusterreceiver/internal/pod/pods_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/receiver/k8sclusterreceiver/internal/pod/pods_test.go b/receiver/k8sclusterreceiver/internal/pod/pods_test.go index 805eb66d325e..07e8e00e5ecf 100644 --- a/receiver/k8sclusterreceiver/internal/pod/pods_test.go +++ b/receiver/k8sclusterreceiver/internal/pod/pods_test.go @@ -40,7 +40,7 @@ func TestPodAndContainerMetricsReportCPUMetrics(t *testing.T) { pod := testutils.NewPodWithContainer( "1", testutils.NewPodSpecWithContainer("container-name"), - testutils.NewPodStatusWithContainer("container-name", containerIDWithPreifx("container-id")), + testutils.NewPodStatusWithContainer("container-name", containerIDWithPrefix("container-id")), ) ts := pcommon.Timestamp(time.Now().UnixNano()) @@ -63,7 +63,7 @@ func TestPodStatusReasonAndContainerMetricsReportCPUMetrics(t *testing.T) { pod := testutils.NewPodWithContainer( "1", testutils.NewPodSpecWithContainer("container-name"), - testutils.NewEvictedTerminatedPodStatusWithContainer("container-name", containerIDWithPreifx("container-id")), + testutils.NewEvictedTerminatedPodStatusWithContainer("container-name", containerIDWithPrefix("container-id")), ) mbc := metadata.DefaultMetricsBuilderConfig() @@ -87,7 +87,7 @@ func TestPodStatusReasonAndContainerMetricsReportCPUMetrics(t *testing.T) { ) } -var containerIDWithPreifx = func(containerID string) string { +var containerIDWithPrefix = func(containerID string) string { return "docker://" + containerID } From e3de7c940fd25d64e3628560be635458b8ef220b Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 09:29:07 -0500 Subject: [PATCH 277/450] spelling: prerequisites Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- confmap/provider/s3provider/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confmap/provider/s3provider/README.md b/confmap/provider/s3provider/README.md index d61a968b557e..53cd8b44cd73 100644 --- a/confmap/provider/s3provider/README.md +++ b/confmap/provider/s3provider/README.md @@ -7,6 +7,6 @@ This package provides a `ConfigMapProvider` implementation for Amazon S3 (`s3pro Expected URI format: - s3://[BUCKET].s3.[REGION].amazonaws.com/[KEY] -Prerequistes: +Prerequisites: - Need to setup access keys from IAM console (aws_access_key_id and aws_secret_access_key) with permission to access Amazon S3 - For details, can take a look at https://aws.github.io/aws-sdk-go-v2/docs/configuring-sdk/ \ No newline at end of file From a65417f8fe447c1827525dbd0a577f2ca7ba28f2 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:53:00 -0500 Subject: [PATCH 278/450] spelling: privileges Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/kafkametricsreceiver/topic_scraper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/kafkametricsreceiver/topic_scraper.go b/receiver/kafkametricsreceiver/topic_scraper.go index e569137f254b..904d42c933b5 100644 --- a/receiver/kafkametricsreceiver/topic_scraper.go +++ b/receiver/kafkametricsreceiver/topic_scraper.go @@ -125,7 +125,7 @@ func (s *topicScraper) scrapeTopicConfigs(now pcommon.Timestamp, errors scrapere if s.clusterAdmin == nil { admin, err := newClusterAdmin(s.config.Brokers, s.saramaConfig) if err != nil { - s.settings.Logger.Error("Error creating kafka client with admin priviledges", zap.Error(err)) + s.settings.Logger.Error("Error creating kafka client with admin privileges", zap.Error(err)) return } s.clusterAdmin = admin From 2427f10a753ffe732e7b37bbbd73f1869dccbc94 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:53:23 -0500 Subject: [PATCH 279/450] spelling: probabilies Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- processor/probabilisticsamplerprocessor/sampler_mode.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/processor/probabilisticsamplerprocessor/sampler_mode.go b/processor/probabilisticsamplerprocessor/sampler_mode.go index 3fe15612280c..ec1b252ad4b8 100644 --- a/processor/probabilisticsamplerprocessor/sampler_mode.go +++ b/processor/probabilisticsamplerprocessor/sampler_mode.go @@ -63,7 +63,7 @@ const ( // Proportional uses OpenTelemetry consistent probability // sampling information (OTEP 235), multiplies incoming - // sampling probaiblities. + // sampling probabilies. Proportional SamplerMode = "proportional" // defaultHashSeed is applied when the mode is unset. From 92609d1b552e14d19f7e208b4f090cc111cab1d8 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 09:29:21 -0500 Subject: [PATCH 280/450] spelling: probabilities Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/sampling/probability_test.go | 6 +++--- processor/probabilisticsamplerprocessor/sampler_mode.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/sampling/probability_test.go b/pkg/sampling/probability_test.go index 1d843753af69..83f99846a965 100644 --- a/pkg/sampling/probability_test.go +++ b/pkg/sampling/probability_test.go @@ -75,10 +75,10 @@ func ExampleProbabilityToThreshold_limitedprecision() { // In the range 1/4 to 1/2: 52 bits of precision are available; 3 trailing zero bits; // In the range 1/8 to 1/4: 52 bits of precision are available; 2 trailing zero bits; // In the range 1/16 to 1/8: 52 bits of precision are available; 1 trailing zero bits; - // Probabilties less than 1/16: 51 bits of precision are available - // Probabilties less than 1/32: 50 bits of precision are available. + // Probabilities less than 1/16: 51 bits of precision are available + // Probabilities less than 1/32: 50 bits of precision are available. // ... - // Probabilties less than 0x1p-N: 55-N bits of precision are available. + // Probabilities less than 0x1p-N: 55-N bits of precision are available. // ... // Probabilities less than 0x1p-55: 0 bits of precision. const large = 15.0 / 16 diff --git a/processor/probabilisticsamplerprocessor/sampler_mode.go b/processor/probabilisticsamplerprocessor/sampler_mode.go index ec1b252ad4b8..47b74e520b6d 100644 --- a/processor/probabilisticsamplerprocessor/sampler_mode.go +++ b/processor/probabilisticsamplerprocessor/sampler_mode.go @@ -63,7 +63,7 @@ const ( // Proportional uses OpenTelemetry consistent probability // sampling information (OTEP 235), multiplies incoming - // sampling probabilies. + // sampling probabilities. Proportional SamplerMode = "proportional" // defaultHashSeed is applied when the mode is unset. From 0ed2d43d60c5f8edb3421747f57eb51fb8fa5d51 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 10:06:23 -0500 Subject: [PATCH 281/450] spelling: process Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 188c0fb6c01f..e4c9cfd3073d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1200,7 +1200,7 @@ This release fixes CVE-2024-42368 on the `bearerauthtokenextension` (#34516) which fields should be redacted. As a result, fields that are not sensitive are no longer redacted. - `azuremonitorreceiver`: Upgrade stability to alpha (#33689) -- `windowsperfcountersreceiver`: `windowsperfcountersreceiver` now appends an index number to additional instance names that share a name. An example of this is when scraping `
rocess(*)` counters with multiple running instances of the same executable. (#32319) +- `windowsperfcountersreceiver`: `windowsperfcountersreceiver` now appends an index number to additional instance names that share a name. An example of this is when scraping `\Process(*)` counters with multiple running instances of the same executable. (#32319) **NOTES** - This change can expose cardinality issues where the counters were previously collapsed under the non-indexed instance name. - The change mimics Windows Performance Monitor behavior: The first instance name remains unchanged, additional instances are suffixed with `#` where `N=1` and is increased for each duplicate. From 98bee85deda18827e4c6e8bc7a4e256960ce0d3f Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 09:29:37 -0500 Subject: [PATCH 282/450] spelling: processor Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- processor/attributesprocessor/testdata/config.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e4c9cfd3073d..344e35763658 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4186,7 +4186,7 @@ This release fixes CVE-2024-42368 on the `bearerauthtokenextension` (#34516) - `receiver/splunkhec`: Return 400 status code when nested indextime fields are present (#17308) - `exporter/loki`: Do not retry on 4xx status code (excluding 429), as these are permanent errors (#18059) - `mezmoexporter`: No longer require a specific path. This will allow for compatibility with both log analysis and pipeline. (#18011) -- `servicegraphprocessor`: Fix cache cleanup in servicegraph proccesor to also purge stale series (#16262) +- `servicegraphprocessor`: Fix cache cleanup in servicegraph processor to also purge stale series (#16262) - `snmpreceiver`: Set StartTimestamp to scraper start time. (#17984) - `snowflakereceiver`: added doc.go containing pragma for mdatagen (#17978) - `spanmetricsprocessor`: Fix a flaky test caused by a race condition between WaitGroup completion and observed logs being written and flushed. (#18014) diff --git a/processor/attributesprocessor/testdata/config.yaml b/processor/attributesprocessor/testdata/config.yaml index ec78f3b09c96..8f0f7dbb09a8 100644 --- a/processor/attributesprocessor/testdata/config.yaml +++ b/processor/attributesprocessor/testdata/config.yaml @@ -33,7 +33,7 @@ attributes/regex_insert: # http_path: path # http_query_params=queryParam1=value1,queryParam2=value2 # http.url value does NOT change. - # Note: Similar to the Span Procesor, if a target key already exists, + # Note: Similar to the Span Processor, if a target key already exists, # it will be updated. - key: "http.url" pattern: ^(?P.*):\/\/(?P.*)\/(?P.*)(\?|\&)(?P.*) From 8e13dce16d190c25e10a42cd8673c756f4ec16a8 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:53:42 -0500 Subject: [PATCH 283/450] spelling: profiles Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/fileexporter/encoding_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/exporter/fileexporter/encoding_test.go b/exporter/fileexporter/encoding_test.go index afc62a0a3784..9410d4b029be 100644 --- a/exporter/fileexporter/encoding_test.go +++ b/exporter/fileexporter/encoding_test.go @@ -94,14 +94,14 @@ func generateLogs() plog.Logs { } func generateProfiles() pprofile.Profiles { - proflies := pprofile.NewProfiles() - rp := proflies.ResourceProfiles().AppendEmpty() + profiles := pprofile.NewProfiles() + rp := profiles.ResourceProfiles().AppendEmpty() rp.Resource().Attributes().PutStr("resource", "R1") p := rp.ScopeProfiles().AppendEmpty().Profiles().AppendEmpty() p.SetProfileID(pprofile.NewProfileIDEmpty()) p.SetStartTime(pcommon.NewTimestampFromTime(time.Now().Add(-1 * time.Second))) p.SetDuration(pcommon.Timestamp(1 * time.Second / time.Nanosecond)) - return proflies + return profiles } func generateMetrics() pmetric.Metrics { From 46708f8995b82f931aaa0740e7d82a399a9814ed Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 09:29:52 -0500 Subject: [PATCH 284/450] spelling: prometheus Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- exporter/googlemanagedprometheusexporter/README.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 344e35763658..c9addf360eab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4981,7 +4981,7 @@ This release fixes CVE-2024-42368 on the `bearerauthtokenextension` (#34516) - `prometheusreceiver/prometheusremotewriteexporter`: Leave the sum unset in histograms without sums, and don't produce _sum metric points for histograms without sums (#7546) - `processor/redaction`: Update redaction attributes in case if data sent through the processor more than once, not ignore them. (#13854) - `chloggen`: changelog generation tool moved to https://github.com/open-telemetry/opentelemetry-go-build-tools (#14022) -- `exporter/AlibabaCloudLogServiceExporter`: Fix issue that promethus occurring error when the resource metric labels contains dot (#3429) +- `exporter/AlibabaCloudLogServiceExporter`: Fix issue that prometheus occurring error when the resource metric labels contains dot (#3429) - `exporter/tanzuobservabilityexporter`: This change causes tanzuobservabilityexporter to depend on 0.10.4 of the wavefront-sdk-go library. (#13417) diff --git a/exporter/googlemanagedprometheusexporter/README.md b/exporter/googlemanagedprometheusexporter/README.md index 81e6aabec2fe..a1713be970ad 100644 --- a/exporter/googlemanagedprometheusexporter/README.md +++ b/exporter/googlemanagedprometheusexporter/README.md @@ -202,7 +202,7 @@ processors: Error: `Value type for metric conflicts with the existing value type` -Google Managed Service for Promethueus (and Google Cloud Monitoring) have fixed +Google Managed Service for Prometheus (and Google Cloud Monitoring) have fixed value types (INT and DOUBLE) for metrics. Once a metric has been written as an INT or DOUBLE, attempting to write the other type will fail with the error above. This commonly occurs when a metric's value type has changed, or when a @@ -224,7 +224,7 @@ written as a double going forward. The simplest way to do this is by using the Error: `One or more points were written more frequently than the maximum sampling period configured for the metric.` -Google Managed Service for Promethueus (and Google Cloud Monitoring) +Google Managed Service for Prometheus (and Google Cloud Monitoring) [limit](https://cloud.google.com/monitoring/quotas#custom_metrics_quotas) the rate at which points can be written to one point every 5 seconds. If you try to write points more frequently, you will encounter the error above. If you know From c104721ca430180ea62f4a29434c661cfc080ce5 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:54:05 -0500 Subject: [PATCH 285/450] spelling: propagated Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- receiver/solacereceiver/messaging_service_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c9addf360eab..4072788834d1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1969,7 +1969,7 @@ This release fixes CVE-2024-42368 on the `bearerauthtokenextension` (#34516) - `prometheusreceiver`: Use confighttp for target allocator client (#31449) - `spanmetricsconnector`: Add `metrics_expiration` option to enable expiration of metrics if spans are not received within a certain time frame. (#30559) The feature can be configured by specifiying the desired duration in the `metrics_expiration` option. By default, the expiration is disabled (set to 0). -- `splunkentreceiver`: Updated the config.go and propogated these changes to other receiver components. Change was necessary to differentiate different configurable endpoints. (#30254) +- `splunkentreceiver`: Updated the config.go and propagated these changes to other receiver components. Change was necessary to differentiate different configurable endpoints. (#30254) - `exporter/datadogexporter`: Do not drop traces when payload channel is full. (#31893) - `connector/datadogconnector`: Do not resolve container tags if payload already has tags associated with it. (#31893) diff --git a/receiver/solacereceiver/messaging_service_test.go b/receiver/solacereceiver/messaging_service_test.go index ed10de7c02a6..fafc8c99631d 100644 --- a/receiver/solacereceiver/messaging_service_test.go +++ b/receiver/solacereceiver/messaging_service_test.go @@ -654,7 +654,7 @@ func (c *connMock) Read(b []byte) (n int, err error) { d := <-c.nextData // the way this test fixture is designed, there is a race condition // between write and read where data may be written to nextData on - // a call to Write and may be propogated prior to the return of Write. + // a call to Write and may be propagated prior to the return of Write. time.Sleep(10 * time.Millisecond) c.remaining = bytes.NewReader(d) } From dc5bf85e0c34b9f165fb40f2225975db926e72b3 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:54:10 -0500 Subject: [PATCH 286/450] spelling: proportional Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- processor/probabilisticsamplerprocessor/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/processor/probabilisticsamplerprocessor/README.md b/processor/probabilisticsamplerprocessor/README.md index dc304b49a5a4..a9427c40af31 100644 --- a/processor/probabilisticsamplerprocessor/README.md +++ b/processor/probabilisticsamplerprocessor/README.md @@ -183,7 +183,7 @@ for every 4 items input. ### Equalizing -This mode uses the same randomness mechanism as the propotional +This mode uses the same randomness mechanism as the proportional sampling mode, in this case considering how much each item was already sampled by preceding samplers. This mode can be used to lower sampling probability to a minimum value across a whole pipeline, From 941b18d9a017c75399b20f64e52299556a20c33b Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 09:31:43 -0500 Subject: [PATCH 287/450] spelling: provider Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../internal/k8sapiserver/k8sapiserver_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/receiver/awscontainerinsightreceiver/internal/k8sapiserver/k8sapiserver_test.go b/receiver/awscontainerinsightreceiver/internal/k8sapiserver/k8sapiserver_test.go index ac56d265107f..fcacd2dd33fb 100644 --- a/receiver/awscontainerinsightreceiver/internal/k8sapiserver/k8sapiserver_test.go +++ b/receiver/awscontainerinsightreceiver/internal/k8sapiserver/k8sapiserver_test.go @@ -140,9 +140,9 @@ func assertMetricValueEqual(t *testing.T, m pmetric.Metrics, metricName string, assert.Fail(t, msg) } -type MockClusterNameProvicer struct{} +type MockClusterNameProvider struct{} -func (m MockClusterNameProvicer) GetClusterName() string { +func (m MockClusterNameProvider) GetClusterName() string { return "cluster-name" } @@ -150,7 +150,7 @@ func TestK8sAPIServer_New(t *testing.T) { k8sClientOption := func(k *K8sAPIServer) { k.k8sClient = nil } - k8sAPIServer, err := New(MockClusterNameProvicer{}, zap.NewNop(), k8sClientOption) + k8sAPIServer, err := New(MockClusterNameProvider{}, zap.NewNop(), k8sClientOption) assert.Nil(t, k8sAPIServer) assert.Error(t, err) } @@ -173,7 +173,7 @@ func TestK8sAPIServer_GetMetrics(t *testing.T) { t.Setenv("HOST_NAME", hostName) t.Setenv("K8S_NAMESPACE", "namespace") - k8sAPIServer, err := New(MockClusterNameProvicer{}, zap.NewNop(), k8sClientOption, + k8sAPIServer, err := New(MockClusterNameProvider{}, zap.NewNop(), k8sClientOption, leadingOption, broadcasterOption, isLeadingCOption) assert.NotNil(t, k8sAPIServer) From cdaffd5685f51ab7fee8855ef670e5439d868b6b Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 09:51:28 -0500 Subject: [PATCH 288/450] spelling: querier Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../internal/handlecount/handles_windows.go | 12 ++++++------ .../internal/handlecount/handles_windows_test.go | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/receiver/hostmetricsreceiver/internal/scraper/processscraper/internal/handlecount/handles_windows.go b/receiver/hostmetricsreceiver/internal/scraper/processscraper/internal/handlecount/handles_windows.go index 2025d6059707..ff2e0bc79a69 100644 --- a/receiver/hostmetricsreceiver/internal/scraper/processscraper/internal/handlecount/handles_windows.go +++ b/receiver/hostmetricsreceiver/internal/scraper/processscraper/internal/handlecount/handles_windows.go @@ -13,7 +13,7 @@ import ( ) func NewManager() Manager { - return &handleCountManager{queryer: wmiHandleCountQueryer{}} + return &handleCountManager{querier: wmiHandleCountQuerier{}} } var ( @@ -21,17 +21,17 @@ var ( ErrNoHandleCountForProcess = errors.New("no handle count for process") ) -type handleCountQueryer interface { +type handleCountQuerier interface { queryProcessHandleCounts() (map[int64]uint32, error) } type handleCountManager struct { - queryer handleCountQueryer + querier handleCountQuerier handleCounts map[int64]uint32 } func (m *handleCountManager) Refresh() error { - handleCounts, err := m.queryer.queryProcessHandleCounts() + handleCounts, err := m.querier.queryProcessHandleCounts() if err != nil { return err } @@ -50,7 +50,7 @@ func (m *handleCountManager) GetProcessHandleCount(pid int64) (uint32, error) { return handleCount, nil } -type wmiHandleCountQueryer struct{} +type wmiHandleCountQuerier struct{} //revive:disable-next-line:var-naming type Win32_Process struct { @@ -58,7 +58,7 @@ type Win32_Process struct { HandleCount uint32 } -func (wmiHandleCountQueryer) queryProcessHandleCounts() (map[int64]uint32, error) { +func (wmiHandleCountQuerier) queryProcessHandleCounts() (map[int64]uint32, error) { handleCounts := []Win32_Process{} // Creates query `get-wmiobject -query "select ProcessId, HandleCount from Win32_Process"` // based on reflection of Win32_Process type. diff --git a/receiver/hostmetricsreceiver/internal/scraper/processscraper/internal/handlecount/handles_windows_test.go b/receiver/hostmetricsreceiver/internal/scraper/processscraper/internal/handlecount/handles_windows_test.go index b757c83404bb..6cfc3f509f84 100644 --- a/receiver/hostmetricsreceiver/internal/scraper/processscraper/internal/handlecount/handles_windows_test.go +++ b/receiver/hostmetricsreceiver/internal/scraper/processscraper/internal/handlecount/handles_windows_test.go @@ -35,16 +35,16 @@ func TestHandleCountManager(t *testing.T) { assert.Contains(t, err.Error(), "3") } -type mockQueryer struct { +type mockQuerier struct { info map[int64]uint32 } -func (s mockQueryer) queryProcessHandleCounts() (map[int64]uint32, error) { +func (s mockQuerier) queryProcessHandleCounts() (map[int64]uint32, error) { return s.info, nil } func deterministicManagerWithInfo(info map[int64]uint32) *handleCountManager { return &handleCountManager{ - queryer: mockQueryer{info: info}, + querier: mockQuerier{info: info}, } } From 9c8121d4f79a3044d854864b8857b8ccb755892b Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 09:50:42 -0500 Subject: [PATCH 289/450] spelling: quotes Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/ottl/ottlfuncs/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/ottl/ottlfuncs/README.md b/pkg/ottl/ottlfuncs/README.md index dcb3c6779f01..3c9deb4a999a 100644 --- a/pkg/ottl/ottlfuncs/README.md +++ b/pkg/ottl/ottlfuncs/README.md @@ -1296,7 +1296,7 @@ The `ParseCSV` Converter returns a `pcommon.Map` struct that contains the result `mode` is an optional string parameter that specifies the parsing mode. Valid values are `strict`, `lazyQuotes`, and `ignoreQuotes`. By default, it is set to `strict`. - The `strict` mode provides typical CSV parsing. -- The `lazyQotes` mode provides a relaxed version of CSV parsing where a quote may appear in the middle of a unquoted field. +- The `lazyQuotes` mode provides a relaxed version of CSV parsing where a quote may appear in the middle of a unquoted field. - The `ignoreQuotes` mode completely ignores any quoting rules for CSV and just splits the row on the delimiter. Examples: From 6c7617926e4b0f17d7f3714a9cef979f2be1bcb9 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 09:51:57 -0500 Subject: [PATCH 290/450] spelling: randomness Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/sampling/randomness.go | 2 +- processor/probabilisticsamplerprocessor/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/sampling/randomness.go b/pkg/sampling/randomness.go index 8e1cac2f0fcb..8cdc7efe75e4 100644 --- a/pkg/sampling/randomness.go +++ b/pkg/sampling/randomness.go @@ -17,7 +17,7 @@ import ( // ("ffffffffffffff", i.e., "100000000000000"). const numRandomnessValues = MaxAdjustedCount -// ErrRValueSize is returned by RValueToRandomess in case of +// ErrRValueSize is returned by RValueToRandomness in case of // unexpected size. var ErrRValueSize = errors.New("r-value must have 14 hex digits") diff --git a/processor/probabilisticsamplerprocessor/README.md b/processor/probabilisticsamplerprocessor/README.md index a9427c40af31..e4409897b0dd 100644 --- a/processor/probabilisticsamplerprocessor/README.md +++ b/processor/probabilisticsamplerprocessor/README.md @@ -241,7 +241,7 @@ tracestate: ot=th:0;rv:9b8233f7e3a151 This component, using either proportional or equalizing modes, could apply 50% sampling the Span. This span with randomness value `9b8233f7e3a151` is consistently sampled at 50% because the threshold, -when zero padded (i.e., `80000000000000`), is less than the randomess +when zero padded (i.e., `80000000000000`), is less than the randomness value. The resulting span will have the following tracestate: ``` From 77eed3fe894e77f42db79d31b007c75d60f38f07 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 09:52:14 -0500 Subject: [PATCH 291/450] spelling: reachable Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- extension/oidcauthextension/extension_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extension/oidcauthextension/extension_test.go b/extension/oidcauthextension/extension_test.go index 92b72d15fa14..4a7be98fea0a 100644 --- a/extension/oidcauthextension/extension_test.go +++ b/extension/oidcauthextension/extension_test.go @@ -228,7 +228,7 @@ func TestOIDCNotAuthenticated(t *testing.T) { assert.NotNil(t, ctx) } -func TestProviderNotReacheable(t *testing.T) { +func TestProviderNotReachable(t *testing.T) { // prepare p := newExtension(&Config{ Audience: "some-audience", From f609a30e702fad0778c7aaa5e35a9f082bf2ab25 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 3 Jan 2025 09:56:47 -0500 Subject: [PATCH 292/450] spelling: really, really, Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/stanza/docs/operators/recombine.md | 4 ++-- pkg/stanza/operator/transformer/recombine/transformer_test.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/stanza/docs/operators/recombine.md b/pkg/stanza/docs/operators/recombine.md index 891b1af079fe..d6c81e515d04 100644 --- a/pkg/stanza/docs/operators/recombine.md +++ b/pkg/stanza/docs/operators/recombine.md @@ -51,7 +51,7 @@ Input file: ``` 2016-10-06T00:17:09.669794202Z stdout F Single entry log 1 2016-10-06T00:17:10.113242941Z stdout P This is a very very long line th -2016-10-06T00:17:10.113242941Z stdout P at is really really long and spa +2016-10-06T00:17:10.113242941Z stdout P at is really, really, long and spa 2016-10-06T00:17:10.113242941Z stdout F ns across multiple log entries ``` @@ -73,7 +73,7 @@ Output logs: "timestamp": "2020-12-04T13:03:38.411664-05:00", "severity": 0, "body": { - "message": "This is a very very long line that is really really long and spans across multiple log entries", + "message": "This is a very very long line that is really, really, long and spans across multiple log entries", "logtag": "F", "stream": "stdout", "timestamp": "2016-10-06T00:17:10.113242941Z" diff --git a/pkg/stanza/operator/transformer/recombine/transformer_test.go b/pkg/stanza/operator/transformer/recombine/transformer_test.go index 9858c1a3f1d1..929f72c87f41 100644 --- a/pkg/stanza/operator/transformer/recombine/transformer_test.go +++ b/pkg/stanza/operator/transformer/recombine/transformer_test.go @@ -306,7 +306,7 @@ func TestTransformer(t *testing.T) { "timestamp": "2016-10-06T00:17:10.113242941Z", }), entryWithBody(t1, map[string]any{ - "message": "at is really really long and spa", + "message": "at is really, really, long and spa", "logtag": "P", "stream": "stdout", "timestamp": "2016-10-06T00:17:10.113242941Z", @@ -326,7 +326,7 @@ func TestTransformer(t *testing.T) { "timestamp": "2016-10-06T00:17:09.669794202Z", }), entryWithBody(t1, map[string]any{ - "message": "This is a very very long line that is really really long and spans across multiple log entries", + "message": "This is a very very long line that is really, really, long and spans across multiple log entries", "logtag": "F", "stream": "stdout", "timestamp": "2016-10-06T00:17:10.113242941Z", From 32b2f5368fbf37e7ed9abf9c22cf9f64e123d4ad Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 09:52:59 -0500 Subject: [PATCH 293/450] spelling: received Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- cmd/opampsupervisor/e2e_test.go | 6 +++--- .../internal/trace/tracing_report_service.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/opampsupervisor/e2e_test.go b/cmd/opampsupervisor/e2e_test.go index 00aa8ca25b31..c12a9afe4393 100644 --- a/cmd/opampsupervisor/e2e_test.go +++ b/cmd/opampsupervisor/e2e_test.go @@ -1225,14 +1225,14 @@ func TestSupervisorPersistsNewInstanceID(t *testing.T) { t.Logf("Supervisor connected") - var newRecievedAgentID []byte + var newReceivedAgentID []byte select { - case newRecievedAgentID = <-agentIDChan: + case newReceivedAgentID = <-agentIDChan: case <-time.After(1 * time.Second): t.Fatalf("failed to get second agent ID") } - require.Equal(t, newID, uuid.UUID(newRecievedAgentID)) + require.Equal(t, newID, uuid.UUID(newReceivedAgentID)) } func TestSupervisorWritesAgentFilesToStorageDir(t *testing.T) { diff --git a/receiver/skywalkingreceiver/internal/trace/tracing_report_service.go b/receiver/skywalkingreceiver/internal/trace/tracing_report_service.go index 2018cd022bc5..a9024dfdd583 100644 --- a/receiver/skywalkingreceiver/internal/trace/tracing_report_service.go +++ b/receiver/skywalkingreceiver/internal/trace/tracing_report_service.go @@ -89,7 +89,7 @@ func (r *Receiver) CollectInSync(ctx context.Context, segments *agent.SegmentCol if err != nil { fmt.Printf("cannot consume traces, %v", err) } - fmt.Printf("receivec data:%s", marshaledSegment) + fmt.Printf("received data:%s", marshaledSegment) } return &common.Commands{}, nil } From 1d47c1981876bc4f07ab5e83f095cfa6083083d7 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 09:53:06 -0500 Subject: [PATCH 294/450] spelling: receiver Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 14 +++++++------- pkg/stanza/docs/types/operators.md | 2 +- receiver/githubreceiver/traces_receiver_test.go | 2 +- receiver/libhoneyreceiver/receiver.go | 2 +- receiver/osqueryreceiver/doc.go | 2 +- .../otelarrowreceiver/internal/arrow/arrow.go | 2 +- receiver/simpleprometheusreceiver/receiver.go | 16 ++++++++-------- receiver/webhookeventreceiver/receiver_test.go | 2 +- testbed/correctnesstests/utils.go | 2 +- 9 files changed, 22 insertions(+), 22 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4072788834d1..74e0afc84221 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2297,7 +2297,7 @@ This release fixes CVE-2024-42368 on the `bearerauthtokenextension` (#34516) - `opensearchexporter`: added opensearch exporter to the contrib distribution metadata (#30183) - `pkg/ottl`: Add `flatten` function for flattening maps (#30455) -- `redisreciever`: adds metric for slave_repl_offset (#6942) +- `redisreceiver`: adds metric for slave_repl_offset (#6942) also adds a shell script to set up docker-compose integration test - `exporter/datadogexporter`: Add kafka metrics mapping. This allows users of the JMX Receiver/JMX Metrics Gatherer and kafka metrics receiver to have access to the OOTB kafka Dashboard. (#30731) - `receiver/sqlquery`: Add debug log when running SQL query (#29672) @@ -3121,7 +3121,7 @@ This release fixes CVE-2024-42368 on the `bearerauthtokenextension` (#34516) - `receiver/nsxt`: Change the type of `Config.Password` to be `configopaque.String` (#17273) - `receiver/podman`: Change the type of `Config.SSHPassphrase` to be `configopaque.String` (#17273) - `receiver/postgresql`: Change the type of `Config.Password` to be `configopaque.String` (#17273) -- `prometheusreciever`: Remove unused buffer_period and buffer_count configuration options (#24258) +- `prometheusreceiver`: Remove unused buffer_period and buffer_count configuration options (#24258) - `prometheusreceiver`: Add the `trim_metric_suffixes` configuration option to allow enable metric suffix trimming. (#21743, #8950) When enabled, suffixes for unit and type are trimmed from metric names. If you previously enabled the `pkg.translator.prometheus.NormalizeName` @@ -3904,7 +3904,7 @@ This release fixes CVE-2024-42368 on the `bearerauthtokenextension` (#34516) - `splunkhecreceiver`: Appends query param (index, source, sourcetype, and host) for raw path (#19632) - `splunkhecreceiver`: align error message with splunk enterprise to include No Data, Invalid Data Format, Event field is required, and Event field cannot be blank (#19219) -- `reciver/statsdreceiver`: Metrics emitted by the statsd receiver are batched by source IP address, available in context. (#15290) +- `receiver/statsdreceiver`: Metrics emitted by the statsd receiver are batched by source IP address, available in context. (#15290) ### 🧰 Bug fixes 🧰 @@ -4026,7 +4026,7 @@ This release fixes CVE-2024-42368 on the `bearerauthtokenextension` (#34516) They are now being removed. You should use the following metrics instead: `process.memory.usage`, `process.memory.virtual`. For details, see the [docs](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/v0.71.0/receiver/hostmetricsreceiver#transition-to-process-memory-metric-names-aligned-with-opentelemetry-specification). -- `promtailreceiver`: Promtail recevier is completely removed from the repository (#18474, #18493) +- `promtailreceiver`: Promtail receiver is completely removed from the repository (#18474, #18493) Promtail receiver in its current implementation has a dependency on Loki that leads to a huge amount of | dependencies. It is getting difficult to maintain those dependencies. That's why the decision to | remove promtail receiver was made @@ -4711,7 +4711,7 @@ This release fixes CVE-2024-42368 on the `bearerauthtokenextension` (#34516) ### 🚀 New components 🚀 -- `azureblobreciver`: Add a new component `azureblobreciver` (#8834) +- `azureblobreceiver`: Add a new component `azureblobreceiver` (#8834) Add a new component `azureblobreceiver` that reads logs and traces from Azure Blob Storage - `k8sobjectsreceiver`: Add a new k8sobjects receiver to collect(pull/watch) Kubernetes Objects (#14185) - `httpcheckreceiver`: New HTTP Check receiver allows users to run synthethic checks from the collector (#10607) @@ -5130,7 +5130,7 @@ in outgoing logs data. - `dotnetdiagnosticsreceiver`: Change status to unmaintained (#12757) ### 🚀 New components 🚀 -- `azureblobreceiver`: Add a new component `azureblobreciver` (#8834) +- `azureblobreceiver`: Add a new component `azureblobreceiver` (#8834) Add a new component `azureblobreceiver` that reads logs and traces from Azure Blob Storage - `azureeventhubreceiver`: New component to receive logs from Azure Event Hubs (#12786) - `headers_setter`: Add support for setting exporter headers from the upstream requests context (#5733, #7945, #4814) @@ -5533,7 +5533,7 @@ This version has been skipped. - `resourcedetectionprocessor`: 'gke' and 'gce' resource detectors are replaced with a single 'gcp' detector (#10347) - `pkg/stanza`: Removed reference to deprecated `ClusterName` (#10426) - `couchbasereceiver`: Fully removed unimplemented Couchbase receiver (#10482) -- `hostmetricsreciever`: Fix Load Scraper to normalize 1m, 5m, and 15m averages independently (#8267) +- `hostmetricsreceiver`: Fix Load Scraper to normalize 1m, 5m, and 15m averages independently (#8267) ### 🚀 New components 🚀 diff --git a/pkg/stanza/docs/types/operators.md b/pkg/stanza/docs/types/operators.md index 7aa54a7321fb..778c45a67672 100644 --- a/pkg/stanza/docs/types/operators.md +++ b/pkg/stanza/docs/types/operators.md @@ -104,7 +104,7 @@ receivers: value: baz ``` -### Emitting from a reciever +### Emitting from a receiver By default, the last operator in a sequence will emit logs from the receiver. diff --git a/receiver/githubreceiver/traces_receiver_test.go b/receiver/githubreceiver/traces_receiver_test.go index e9880d40f3ba..01c9b9ac0106 100644 --- a/receiver/githubreceiver/traces_receiver_test.go +++ b/receiver/githubreceiver/traces_receiver_test.go @@ -25,7 +25,7 @@ func TestHealthCheck(t *testing.T) { r := receiver require.NoError(t, r.Start(context.Background(), componenttest.NewNopHost()), "failed to start receiver") defer func() { - require.NoError(t, r.Shutdown(context.Background()), "failed to shutdown revceiver") + require.NoError(t, r.Shutdown(context.Background()), "failed to shutdown receiver") }() w := httptest.NewRecorder() diff --git a/receiver/libhoneyreceiver/receiver.go b/receiver/libhoneyreceiver/receiver.go index 09d2e73d63af..cf0120de60d6 100644 --- a/receiver/libhoneyreceiver/receiver.go +++ b/receiver/libhoneyreceiver/receiver.go @@ -86,7 +86,7 @@ func (r *libhoneyReceiver) startHTTPServer(ctx context.Context, host component.H httpMux := http.NewServeMux() - r.settings.Logger.Info("r.nextTraces is not null so httpTracesReciever was added", zap.Int("paths", len(r.cfg.HTTP.TracesURLPaths))) + r.settings.Logger.Info("r.nextTraces is not null so httpTracesReceiver was added", zap.Int("paths", len(r.cfg.HTTP.TracesURLPaths))) for _, path := range r.cfg.HTTP.TracesURLPaths { httpMux.HandleFunc(path, func(resp http.ResponseWriter, req *http.Request) { r.handleEvent(resp, req) diff --git a/receiver/osqueryreceiver/doc.go b/receiver/osqueryreceiver/doc.go index ed625c151df1..c48d860df699 100644 --- a/receiver/osqueryreceiver/doc.go +++ b/receiver/osqueryreceiver/doc.go @@ -3,5 +3,5 @@ //go:generate mdatagen metadata.yaml -// Package osqueryreciever emits osquery results as logs +// Package osqueryreceiver emits osquery results as logs package osqueryreceiver // import "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/osqueryreceiver" diff --git a/receiver/otelarrowreceiver/internal/arrow/arrow.go b/receiver/otelarrowreceiver/internal/arrow/arrow.go index 65b041068068..a7f7563544ec 100644 --- a/receiver/otelarrowreceiver/internal/arrow/arrow.go +++ b/receiver/otelarrowreceiver/internal/arrow/arrow.go @@ -354,7 +354,7 @@ func (r *Receiver) anyStream(serverStream anyStreamServer, method string) (retEr pendingCh := make(chan batchResp, runtime.NumCPU()) // wg is used to ensure this thread returns after both - // sender and recevier threads return. + // sender and receiver threads return. var sendWG sync.WaitGroup var recvWG sync.WaitGroup sendWG.Add(1) diff --git a/receiver/simpleprometheusreceiver/receiver.go b/receiver/simpleprometheusreceiver/receiver.go index d46eb1005719..7c3f71d5d6a1 100644 --- a/receiver/simpleprometheusreceiver/receiver.go +++ b/receiver/simpleprometheusreceiver/receiver.go @@ -23,10 +23,10 @@ import ( ) type prometheusReceiverWrapper struct { - params receiver.Settings - config *Config - consumer consumer.Metrics - prometheusRecever receiver.Metrics + params receiver.Settings + config *Config + consumer consumer.Metrics + prometheusReceiver receiver.Metrics } // newPrometheusReceiverWrapper returns a prometheusReceiverWrapper @@ -48,8 +48,8 @@ func (prw *prometheusReceiverWrapper) Start(ctx context.Context, host component. return fmt.Errorf("failed to create prometheus receiver: %w", err) } - prw.prometheusRecever = pr - return prw.prometheusRecever.Start(ctx, host) + prw.prometheusReceiver = pr + return prw.prometheusReceiver.Start(ctx, host) } // Deprecated: [v0.55.0] Use getPrometheusConfig instead. @@ -145,8 +145,8 @@ func getPrometheusConfig(cfg *Config) (*prometheusreceiver.Config, error) { // Shutdown stops the underlying Prometheus receiver. func (prw *prometheusReceiverWrapper) Shutdown(ctx context.Context) error { - if prw.prometheusRecever == nil { + if prw.prometheusReceiver == nil { return nil } - return prw.prometheusRecever.Shutdown(ctx) + return prw.prometheusReceiver.Shutdown(ctx) } diff --git a/receiver/webhookeventreceiver/receiver_test.go b/receiver/webhookeventreceiver/receiver_test.go index c86946dc466d..be8a62e2fb3d 100644 --- a/receiver/webhookeventreceiver/receiver_test.go +++ b/receiver/webhookeventreceiver/receiver_test.go @@ -231,7 +231,7 @@ func TestHealthCheck(t *testing.T) { r := receiver.(*eventReceiver) require.NoError(t, r.Start(context.Background(), componenttest.NewNopHost()), "failed to start receiver") defer func() { - require.NoError(t, r.Shutdown(context.Background()), "failed to shutdown revceiver") + require.NoError(t, r.Shutdown(context.Background()), "failed to shutdown receiver") }() w := httptest.NewRecorder() diff --git a/testbed/correctnesstests/utils.go b/testbed/correctnesstests/utils.go index 97a88f074c1e..4c05f47e96fe 100644 --- a/testbed/correctnesstests/utils.go +++ b/testbed/correctnesstests/utils.go @@ -214,7 +214,7 @@ func ConstructMetricsSender(t *testing.T, receiver string) testbed.MetricDataSen return sender } -// ConstructReceiver creates a testbed receiver from the passed-in recevier identifier. +// ConstructReceiver creates a testbed receiver from the passed-in receiver identifier. func ConstructReceiver(t *testing.T, exporter string) testbed.DataReceiver { var receiver testbed.DataReceiver switch exporter { From 4c3ef343cb01bb33b56953faa00b675345de7ddc Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 09:52:32 -0500 Subject: [PATCH 295/450] spelling: receiving Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/awscloudwatchmetricsreceiver/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/awscloudwatchmetricsreceiver/README.md b/receiver/awscloudwatchmetricsreceiver/README.md index 5833904fa86f..36c84e5eea95 100644 --- a/receiver/awscloudwatchmetricsreceiver/README.md +++ b/receiver/awscloudwatchmetricsreceiver/README.md @@ -123,7 +123,7 @@ This receiver uses the [GetMetricData](https://docs.aws.amazon.com/AmazonCloudWa ## Troubleshooting / Debugging -## My metrics are intermittent / not receing any metrics +## My metrics are intermittent / not receiving any metrics Try a bigger `poll_interval`. CloudWatch returns no data if the period of the metric, by default for AWS supplied metrics, it's 300 seconds (5 minutes). Try out a period of 600 seconds and a poll interval of 600 seconds. From e1ff6b2ab8f69b7008ccd45012050f482513fb68 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 09:53:35 -0500 Subject: [PATCH 296/450] spelling: recombination Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 74e0afc84221..d05606b2b097 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2237,7 +2237,7 @@ This release fixes CVE-2024-42368 on the `bearerauthtokenextension` (#34516) - `pkg/ottl`: Fix parsing of string escapes in OTTL (#23238) - `pkg/stanza`: Recombine operator should always recombine partial logs (#30797) Previously, certain circumstances could result in partial logs being emitted without any - recombiniation. This could occur when using `is_first_entry`, if the first partial log from + recombination. This could occur when using `is_first_entry`, if the first partial log from a source was emitted before a matching "start of log" indicator was found. This could also occur when the collector was shutting down. From e12cad71df8a56cd3da7c362e9b6481d6f0c84f1 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 09:53:46 -0500 Subject: [PATCH 297/450] spelling: recommended Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/stanza/docs/types/severity.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/stanza/docs/types/severity.md b/pkg/stanza/docs/types/severity.md index 5a9872066133..dbd3a0e3337c 100644 --- a/pkg/stanza/docs/types/severity.md +++ b/pkg/stanza/docs/types/severity.md @@ -13,7 +13,7 @@ Parser operators can parse a severity and attach the resulting value to a log en | `parse_from` | required | The [field](../types/field.md) from which the value will be parsed. | | `preset` | `default` | A predefined set of values that should be interpreted at specific severity levels. | | `mapping` | | A custom set of values that should be interpreted at designated severity levels. | -| `overwrite_text` | `false` | If `true`, the severity text will be set to the [recommeneded short name](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/logs/data-model.md#displaying-severity) corresponding to the severity number. | +| `overwrite_text` | `false` | If `true`, the severity text will be set to the [recommended short name](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/logs/data-model.md#displaying-severity) corresponding to the severity number. | Note that by default the severity _text_ will be set to the original value which was interpreted into a severity number. In order to set the severity text to a standard short name (e.g. `ERROR`, `INFO3`, etc.), set `overwrite_text` to `true`. From b5f96ff4e36a5467a3c71ef5e464474c181657d2 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 09:54:08 -0500 Subject: [PATCH 298/450] spelling: record Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../k8sobjectsreceiver/unstructured_to_logdata_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/receiver/k8sobjectsreceiver/unstructured_to_logdata_test.go b/receiver/k8sobjectsreceiver/unstructured_to_logdata_test.go index bca2ba2554fb..300dc0813c39 100644 --- a/receiver/k8sobjectsreceiver/unstructured_to_logdata_test.go +++ b/receiver/k8sobjectsreceiver/unstructured_to_logdata_test.go @@ -177,8 +177,8 @@ func TestUnstructuredListToLogData(t *testing.T) { k8sNamespace.Str(), ) - watchEvenLogRecordtAttrs := logEntryFromWatchEvent.ResourceLogs().At(0).ScopeLogs().At(0).LogRecords().At(0).Attributes() - eventType, ok := watchEvenLogRecordtAttrs.Get("event.name") + watchEvenLogRecordAttrs := logEntryFromWatchEvent.ResourceLogs().At(0).ScopeLogs().At(0).LogRecords().At(0).Attributes() + eventType, ok := watchEvenLogRecordAttrs.Get("event.name") assert.True(t, ok) assert.Equal( t, @@ -186,7 +186,7 @@ func TestUnstructuredListToLogData(t *testing.T) { eventType.AsString(), ) - eventDomain, ok := watchEvenLogRecordtAttrs.Get("event.domain") + eventDomain, ok := watchEvenLogRecordAttrs.Get("event.domain") assert.True(t, ok) assert.Equal( t, @@ -194,7 +194,7 @@ func TestUnstructuredListToLogData(t *testing.T) { eventDomain.AsString(), ) - k8sResourceName, ok := watchEvenLogRecordtAttrs.Get("k8s.resource.name") + k8sResourceName, ok := watchEvenLogRecordAttrs.Get("k8s.resource.name") assert.True(t, ok) assert.Equal( t, From bbbcac152e170efb3392b9d20e0dee1b4908873a Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 09:55:40 -0500 Subject: [PATCH 299/450] spelling: release Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../resourcedetectionprocessor/internal/heroku/documentation.md | 2 +- .../resourcedetectionprocessor/internal/heroku/metadata.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/processor/resourcedetectionprocessor/internal/heroku/documentation.md b/processor/resourcedetectionprocessor/internal/heroku/documentation.md index 674a47c4bade..ac927afa7c53 100644 --- a/processor/resourcedetectionprocessor/internal/heroku/documentation.md +++ b/processor/resourcedetectionprocessor/internal/heroku/documentation.md @@ -15,4 +15,4 @@ | heroku.release.creation_timestamp | The heroku.release.creation_timestamp | Any Str | true | | service.instance.id | The service.instance.id | Any Str | true | | service.name | Heroku app name recorded as service.name. | Any Str | true | -| service.version | Heroku relese version set as service.version. | Any Str | true | +| service.version | Heroku release version set as service.version. | Any Str | true | diff --git a/processor/resourcedetectionprocessor/internal/heroku/metadata.yaml b/processor/resourcedetectionprocessor/internal/heroku/metadata.yaml index 275932d67fb7..3deaa872d0fa 100644 --- a/processor/resourcedetectionprocessor/internal/heroku/metadata.yaml +++ b/processor/resourcedetectionprocessor/internal/heroku/metadata.yaml @@ -32,6 +32,6 @@ resource_attributes: enabled: true type: string service.version: - description: Heroku relese version set as service.version. + description: Heroku release version set as service.version. enabled: true type: string From 56a075470e85f2c78589235450b35df6975d5021 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 09:55:59 -0500 Subject: [PATCH 300/450] spelling: replaces Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/wavefrontreceiver/wavefront_parser.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/wavefrontreceiver/wavefront_parser.go b/receiver/wavefrontreceiver/wavefront_parser.go index 825afed488a2..2c696e00ab71 100644 --- a/receiver/wavefrontreceiver/wavefront_parser.go +++ b/receiver/wavefrontreceiver/wavefront_parser.go @@ -33,7 +33,7 @@ var ( // 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. From 22eba48c48157a932861efd9bc89b83f7c0528e5 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 09:55:46 -0500 Subject: [PATCH 301/450] spelling: replicas Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/kafkametricsreceiver/scraper_test_helper.go | 6 +++--- receiver/kafkametricsreceiver/topic_scraper.go | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/receiver/kafkametricsreceiver/scraper_test_helper.go b/receiver/kafkametricsreceiver/scraper_test_helper.go index 776b25352b55..161caa5120d9 100644 --- a/receiver/kafkametricsreceiver/scraper_test_helper.go +++ b/receiver/kafkametricsreceiver/scraper_test_helper.go @@ -203,9 +203,9 @@ func newMockClusterAdmin() *mockClusterAdmin { td[testTopic] = sarama.TopicDetail{ ReplicationFactor: testReplicationFactor, ConfigEntries: map[string]*string{ - minInsyncRelicas: &strMinInsyncReplicas, - retentionMs: &strLogRetentionMs, - retentionBytes: &strLogRetentionBytes, + minInsyncReplicas: &strMinInsyncReplicas, + retentionMs: &strLogRetentionMs, + retentionBytes: &strLogRetentionBytes, }, } clusterAdmin.topics = td diff --git a/receiver/kafkametricsreceiver/topic_scraper.go b/receiver/kafkametricsreceiver/topic_scraper.go index 904d42c933b5..eadf7f567a46 100644 --- a/receiver/kafkametricsreceiver/topic_scraper.go +++ b/receiver/kafkametricsreceiver/topic_scraper.go @@ -33,9 +33,9 @@ type topicScraper struct { } const ( - minInsyncRelicas = "min.insync.replicas" - retentionMs = "retention.ms" - retentionBytes = "retention.bytes" + minInsyncReplicas = "min.insync.replicas" + retentionMs = "retention.ms" + retentionBytes = "retention.bytes" ) func (s *topicScraper) shutdown(context.Context) error { @@ -141,12 +141,12 @@ func (s *topicScraper) scrapeTopicConfigs(now pcommon.Timestamp, errors scrapere configEntries, _ := s.clusterAdmin.DescribeConfig(sarama.ConfigResource{ Type: sarama.TopicResource, Name: name, - ConfigNames: []string{minInsyncRelicas, retentionMs, retentionBytes}, + ConfigNames: []string{minInsyncReplicas, retentionMs, retentionBytes}, }) for _, config := range configEntries { switch config.Name { - case minInsyncRelicas: + case minInsyncReplicas: if val, err := strconv.Atoi(config.Value); err == nil { s.mb.RecordKafkaTopicMinInsyncReplicasDataPoint(now, int64(val), name) } else { From ef26a10b6386b62446be5474ac5bcc10fabc2940 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 09:56:51 -0500 Subject: [PATCH 302/450] spelling: request Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/signalfxexporter/internal/apm/correlations/client.go | 2 +- receiver/libhoneyreceiver/receiver.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/exporter/signalfxexporter/internal/apm/correlations/client.go b/exporter/signalfxexporter/internal/apm/correlations/client.go index e9e592afe46a..e3ff158964fc 100644 --- a/exporter/signalfxexporter/internal/apm/correlations/client.go +++ b/exporter/signalfxexporter/internal/apm/correlations/client.go @@ -176,7 +176,7 @@ func (cc *Client) putRequestOnRetryChan(r *request) error { } // CorrelateCB is a call back invoked with Correlate requests -// it is not invoked if the reqeust is deduplicated, cancelled, or the client context is cancelled +// it is not invoked if the request is deduplicated, cancelled, or the client context is cancelled type CorrelateCB func(cor *Correlation, err error) // Correlate diff --git a/receiver/libhoneyreceiver/receiver.go b/receiver/libhoneyreceiver/receiver.go index cf0120de60d6..0db48b5e5f79 100644 --- a/receiver/libhoneyreceiver/receiver.go +++ b/receiver/libhoneyreceiver/receiver.go @@ -193,7 +193,7 @@ func (r *libhoneyReceiver) handleEvent(resp http.ResponseWriter, req *http.Reque dataset, err := parser.GetDatasetFromRequest(req.RequestURI) if err != nil { - r.settings.Logger.Info("No dataset found in URL", zap.String("req.RequstURI", req.RequestURI)) + r.settings.Logger.Info("No dataset found in URL", zap.String("req.RequestURI", req.RequestURI)) } for _, p := range r.cfg.HTTP.TracesURLPaths { From d0281ddc64b640ea60dec66fc775e1ed7d6654f7 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 09:56:59 -0500 Subject: [PATCH 303/450] spelling: requests Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/sumologicexporter/sender_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/sumologicexporter/sender_test.go b/exporter/sumologicexporter/sender_test.go index ea7ada4f09d2..5032b323fe42 100644 --- a/exporter/sumologicexporter/sender_test.go +++ b/exporter/sumologicexporter/sender_test.go @@ -1284,7 +1284,7 @@ func TestSendMetricsSplitFailedAll(t *testing.T) { } func TestSendMetricsUnexpectedFormat(t *testing.T) { - // Expect no requestes + // Expect no requests test := prepareSenderTest(t, NoCompression, nil) test.s.config.MetricFormat = "invalid" From 7e69ce3d2a066f4aebe96d7c18d5f47be21b02f5 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 09:52:21 -0500 Subject: [PATCH 304/450] spelling: resource Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- .../internal/ptraceutil/traces.go | 6 +++--- .../logsdata_to_logservice_test.go | 2 +- .../testdata/logservice_log_data.json | 18 +++++++++--------- .../googlemanagedprometheusexporter/README.md | 2 +- .../logsdata_to_logservice_test.go | 2 +- .../testdata/logservice_log_data.json | 18 +++++++++--------- .../observer/k8sobserver/ingress_endpoint.go | 2 +- internal/exp/metrics/metrics.go | 2 +- pkg/ottl/contexts/ottlspanevent/span_events.go | 6 +++--- processor/metricstransformprocessor/README.md | 4 ++-- processor/metricstransformprocessor/config.go | 2 +- .../translate_docker_metrics_processor.go | 4 ++-- 13 files changed, 35 insertions(+), 35 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d05606b2b097..e4071675f4ea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3567,7 +3567,7 @@ This release fixes CVE-2024-42368 on the `bearerauthtokenextension` (#34516) - `receivers`: Updating receivers that run intervals to use standard interval by default (#22138) - `datadog receiver`: Updating datadog translations to align more closely to semantic convention (#21210, #21525) - `service.name` is moved from assigned from span attributes to resource attributes - - Moved from using datadog's `span.Resouce` to `span.Name` to set span name + - Moved from using datadog's `span.Resource` to `span.Name` to set span name - Exported traces are now grouped by `service.name` by default - `nginxreceiver`: Add featuregate to emit 'nginx.connections_current' as a non-monotonic sum (#4326) diff --git a/connector/routingconnector/internal/ptraceutil/traces.go b/connector/routingconnector/internal/ptraceutil/traces.go index e47bb7529dce..6204df2b3216 100644 --- a/connector/routingconnector/internal/ptraceutil/traces.go +++ b/connector/routingconnector/internal/ptraceutil/traces.go @@ -8,11 +8,11 @@ import "go.opentelemetry.io/collector/pdata/ptrace" // MoveResourcesIf calls f sequentially for each ResourceSpans present in the first ptrace.Traces. // If f returns true, the element is removed from the first ptrace.Traces and added to the second ptrace.Traces. func MoveResourcesIf(from, to ptrace.Traces, f func(ptrace.ResourceSpans) bool) { - from.ResourceSpans().RemoveIf(func(resoruceSpans ptrace.ResourceSpans) bool { - if !f(resoruceSpans) { + from.ResourceSpans().RemoveIf(func(resourceSpans ptrace.ResourceSpans) bool { + if !f(resourceSpans) { return false } - resoruceSpans.CopyTo(to.ResourceSpans().AppendEmpty()) + resourceSpans.CopyTo(to.ResourceSpans().AppendEmpty()) return true }) } diff --git a/exporter/alibabacloudlogserviceexporter/logsdata_to_logservice_test.go b/exporter/alibabacloudlogserviceexporter/logsdata_to_logservice_test.go index 9a1b4ab37d40..1247c6e399fa 100644 --- a/exporter/alibabacloudlogserviceexporter/logsdata_to_logservice_test.go +++ b/exporter/alibabacloudlogserviceexporter/logsdata_to_logservice_test.go @@ -29,7 +29,7 @@ func createLogData(numberOfLogs int) plog.Logs { logs := plog.NewLogs() logs.ResourceLogs().AppendEmpty() // Add an empty ResourceLogs rl := logs.ResourceLogs().AppendEmpty() - rl.Resource().Attributes().PutStr("resouceKey", "resourceValue") + rl.Resource().Attributes().PutStr("resourceKey", "resourceValue") rl.Resource().Attributes().PutStr(conventions.AttributeServiceName, "test-log-service-exporter") rl.Resource().Attributes().PutStr(conventions.AttributeHostName, "test-host") sl := rl.ScopeLogs().AppendEmpty() diff --git a/exporter/alibabacloudlogserviceexporter/testdata/logservice_log_data.json b/exporter/alibabacloudlogserviceexporter/testdata/logservice_log_data.json index 41e91951965e..305d527733e0 100644 --- a/exporter/alibabacloudlogserviceexporter/testdata/logservice_log_data.json +++ b/exporter/alibabacloudlogserviceexporter/testdata/logservice_log_data.json @@ -10,7 +10,7 @@ }, { "Key": "resource", - "Value": "{\"resouceKey\":\"resourceValue\"}" + "Value": "{\"resourceKey\":\"resourceValue\"}" }, { "Key": "otlp.name", @@ -64,7 +64,7 @@ }, { "Key": "resource", - "Value": "{\"resouceKey\":\"resourceValue\"}" + "Value": "{\"resourceKey\":\"resourceValue\"}" }, { "Key": "otlp.name", @@ -118,7 +118,7 @@ }, { "Key": "resource", - "Value": "{\"resouceKey\":\"resourceValue\"}" + "Value": "{\"resourceKey\":\"resourceValue\"}" }, { "Key": "otlp.name", @@ -172,7 +172,7 @@ }, { "Key": "resource", - "Value": "{\"resouceKey\":\"resourceValue\"}" + "Value": "{\"resourceKey\":\"resourceValue\"}" }, { "Key": "otlp.name", @@ -226,7 +226,7 @@ }, { "Key": "resource", - "Value": "{\"resouceKey\":\"resourceValue\"}" + "Value": "{\"resourceKey\":\"resourceValue\"}" }, { "Key": "otlp.name", @@ -280,7 +280,7 @@ }, { "Key": "resource", - "Value": "{\"resouceKey\":\"resourceValue\"}" + "Value": "{\"resourceKey\":\"resourceValue\"}" }, { "Key": "otlp.name", @@ -334,7 +334,7 @@ }, { "Key": "resource", - "Value": "{\"resouceKey\":\"resourceValue\"}" + "Value": "{\"resourceKey\":\"resourceValue\"}" }, { "Key": "otlp.name", @@ -388,7 +388,7 @@ }, { "Key": "resource", - "Value": "{\"resouceKey\":\"resourceValue\"}" + "Value": "{\"resourceKey\":\"resourceValue\"}" }, { "Key": "otlp.name", @@ -442,7 +442,7 @@ }, { "Key": "resource", - "Value": "{\"resouceKey\":\"resourceValue\"}" + "Value": "{\"resourceKey\":\"resourceValue\"}" }, { "Key": "otlp.name", diff --git a/exporter/googlemanagedprometheusexporter/README.md b/exporter/googlemanagedprometheusexporter/README.md index a1713be970ad..b98a34b865fa 100644 --- a/exporter/googlemanagedprometheusexporter/README.md +++ b/exporter/googlemanagedprometheusexporter/README.md @@ -281,7 +281,7 @@ by applications in a way that uniquely identifies each instance. The next most common reason is (2), which means that the exporter's mapping logic from OpenTelemetry resource to Google Cloud's `prometheus_target` -monitored resouce didn't preserve a resource attribute that was needed to +monitored resource didn't preserve a resource attribute that was needed to distinguish timeseries. This can be mitigated by adding resource attributes as metric labels using `resource_filters` configuration in the exporter. The following example adds common identifying resource attributes. diff --git a/exporter/tencentcloudlogserviceexporter/logsdata_to_logservice_test.go b/exporter/tencentcloudlogserviceexporter/logsdata_to_logservice_test.go index d8e57c495527..aa66674d5c21 100644 --- a/exporter/tencentcloudlogserviceexporter/logsdata_to_logservice_test.go +++ b/exporter/tencentcloudlogserviceexporter/logsdata_to_logservice_test.go @@ -43,7 +43,7 @@ func createLogData(numberOfLogs int) plog.Logs { logs := plog.NewLogs() logs.ResourceLogs().AppendEmpty() // Add an empty ResourceLogs rl := logs.ResourceLogs().AppendEmpty() - rl.Resource().Attributes().PutStr("resouceKey", "resourceValue") + rl.Resource().Attributes().PutStr("resourceKey", "resourceValue") rl.Resource().Attributes().PutStr(conventions.AttributeServiceName, "test-log-service-exporter") rl.Resource().Attributes().PutStr(conventions.AttributeHostName, "test-host") sl := rl.ScopeLogs().AppendEmpty() diff --git a/exporter/tencentcloudlogserviceexporter/testdata/logservice_log_data.json b/exporter/tencentcloudlogserviceexporter/testdata/logservice_log_data.json index 6063ea49fc43..33e09a47c161 100644 --- a/exporter/tencentcloudlogserviceexporter/testdata/logservice_log_data.json +++ b/exporter/tencentcloudlogserviceexporter/testdata/logservice_log_data.json @@ -10,7 +10,7 @@ }, { "Key": "resource", - "Value": "{\"resouceKey\":\"resourceValue\"}" + "Value": "{\"resourceKey\":\"resourceValue\"}" }, { "Key": "otlp.name", @@ -64,7 +64,7 @@ }, { "Key": "resource", - "Value": "{\"resouceKey\":\"resourceValue\"}" + "Value": "{\"resourceKey\":\"resourceValue\"}" }, { "Key": "otlp.name", @@ -118,7 +118,7 @@ }, { "Key": "resource", - "Value": "{\"resouceKey\":\"resourceValue\"}" + "Value": "{\"resourceKey\":\"resourceValue\"}" }, { "Key": "otlp.name", @@ -172,7 +172,7 @@ }, { "Key": "resource", - "Value": "{\"resouceKey\":\"resourceValue\"}" + "Value": "{\"resourceKey\":\"resourceValue\"}" }, { "Key": "otlp.name", @@ -226,7 +226,7 @@ }, { "Key": "resource", - "Value": "{\"resouceKey\":\"resourceValue\"}" + "Value": "{\"resourceKey\":\"resourceValue\"}" }, { "Key": "otlp.name", @@ -280,7 +280,7 @@ }, { "Key": "resource", - "Value": "{\"resouceKey\":\"resourceValue\"}" + "Value": "{\"resourceKey\":\"resourceValue\"}" }, { "Key": "otlp.name", @@ -334,7 +334,7 @@ }, { "Key": "resource", - "Value": "{\"resouceKey\":\"resourceValue\"}" + "Value": "{\"resourceKey\":\"resourceValue\"}" }, { "Key": "otlp.name", @@ -388,7 +388,7 @@ }, { "Key": "resource", - "Value": "{\"resouceKey\":\"resourceValue\"}" + "Value": "{\"resourceKey\":\"resourceValue\"}" }, { "Key": "otlp.name", @@ -442,7 +442,7 @@ }, { "Key": "resource", - "Value": "{\"resouceKey\":\"resourceValue\"}" + "Value": "{\"resourceKey\":\"resourceValue\"}" }, { "Key": "otlp.name", diff --git a/extension/observer/k8sobserver/ingress_endpoint.go b/extension/observer/k8sobserver/ingress_endpoint.go index 622a7fe1ba4d..13d886202b81 100644 --- a/extension/observer/k8sobserver/ingress_endpoint.go +++ b/extension/observer/k8sobserver/ingress_endpoint.go @@ -51,7 +51,7 @@ func convertIngressToEndpoints(idNamespace string, ingress *v1.Ingress) []observ return endpoints } -// getTLSHosts return a list of tls hosts for an ingress ressource. +// getTLSHosts return a list of tls hosts for an ingress resource. func getTLSHosts(i *v1.Ingress) []string { var hosts []string diff --git a/internal/exp/metrics/metrics.go b/internal/exp/metrics/metrics.go index affdf76fa77f..4eb1e2f7e797 100644 --- a/internal/exp/metrics/metrics.go +++ b/internal/exp/metrics/metrics.go @@ -16,7 +16,7 @@ import ( // exist, new entries will be created as needed. // // NOTE: Any "unnecessary" duplicate entries in mdA will *not* be combined. For example if -// mdA contains two ResourcMetric entries with identical Resource values, they will not be +// mdA contains two ResourceMetric entries with identical Resource values, they will not be // combined. If you wish to have this behavior, you could call this function twice: // // cleanedMetrics := Merge(pmetric.NewMetrics(), mdA) diff --git a/pkg/ottl/contexts/ottlspanevent/span_events.go b/pkg/ottl/contexts/ottlspanevent/span_events.go index 6d654b058004..f5c8ff786724 100644 --- a/pkg/ottl/contexts/ottlspanevent/span_events.go +++ b/pkg/ottl/contexts/ottlspanevent/span_events.go @@ -38,7 +38,7 @@ type TransformContext struct { resource pcommon.Resource cache pcommon.Map scopeSpans ptrace.ScopeSpans - resouceSpans ptrace.ResourceSpans + resourceSpans ptrace.ResourceSpans } func (tCtx TransformContext) MarshalLogObject(encoder zapcore.ObjectEncoder) error { @@ -60,7 +60,7 @@ func NewTransformContext(spanEvent ptrace.SpanEvent, span ptrace.Span, instrumen resource: resource, cache: pcommon.NewMap(), scopeSpans: scopeSpans, - resouceSpans: resourceSpans, + resourceSpans: resourceSpans, } } @@ -89,7 +89,7 @@ func (tCtx TransformContext) GetScopeSchemaURLItem() internal.SchemaURLItem { } func (tCtx TransformContext) GetResourceSchemaURLItem() internal.SchemaURLItem { - return tCtx.resouceSpans + return tCtx.resourceSpans } func NewParser(functions map[string]ottl.Factory[TransformContext], telemetrySettings component.TelemetrySettings, options ...Option) (ottl.Parser[TransformContext], error) { diff --git a/processor/metricstransformprocessor/README.md b/processor/metricstransformprocessor/README.md index 34b3d25b59e5..767e0b1b45df 100644 --- a/processor/metricstransformprocessor/README.md +++ b/processor/metricstransformprocessor/README.md @@ -320,11 +320,11 @@ operations: - include: ^k8s\.pod\.(.*)$$ match_type: regexp action: group - group_resource_labels: {"resouce.type": "k8s.pod", "source": "kubelet"} + group_resource_labels: {"resource.type": "k8s.pod", "source": "kubelet"} - include: ^container\.(.*)$$ match_type: regexp action: group - group_resource_labels: {"resouce.type": "container", "source": "kubelet"} + group_resource_labels: {"resource.type": "container", "source": "kubelet"} ``` ### Metric Transform Processor vs. [Attributes Processor for Metrics](../attributesprocessor) diff --git a/processor/metricstransformprocessor/config.go b/processor/metricstransformprocessor/config.go index 878f0560f5df..fe95795979df 100644 --- a/processor/metricstransformprocessor/config.go +++ b/processor/metricstransformprocessor/config.go @@ -18,7 +18,7 @@ const ( // newNameFieldName is the mapstructure field name for NewName field newNameFieldName = "new_name" - // groupResourceLabelsFieldName is the mapstructure field name for GroupResouceLabels field + // groupResourceLabelsFieldName is the mapstructure field name for GroupResourceLabels field groupResourceLabelsFieldName = "group_resource_labels" // aggregationTypeFieldName is the mapstructure field name for aggregationType field diff --git a/processor/sumologicprocessor/translate_docker_metrics_processor.go b/processor/sumologicprocessor/translate_docker_metrics_processor.go index 9e103bd8bcaa..2e8ee41ee29d 100644 --- a/processor/sumologicprocessor/translate_docker_metrics_processor.go +++ b/processor/sumologicprocessor/translate_docker_metrics_processor.go @@ -68,7 +68,7 @@ var dockerMetricsTranslations = map[string]string{ "container.blockio.sectors_recursive": "sectors_recursive", } -var dockerReasourceAttributeTranslations = map[string]string{ +var dockerResourceAttributeTranslations = map[string]string{ "container.id": "container.FullID", "container.image.name": "container.ImageName", "container.name": "container.Name", @@ -132,7 +132,7 @@ func translateDockerResourceAttributes(attributes pcommon.Map) { result.EnsureCapacity(attributes.Len()) attributes.Range(func(otKey string, value pcommon.Value) bool { - if sumoKey, ok := dockerReasourceAttributeTranslations[otKey]; ok { + if sumoKey, ok := dockerResourceAttributeTranslations[otKey]; ok { // Only insert if it doesn't exist yet to prevent overwriting. // We have to do it this way since the final return value is not // ready yet to rely on .Insert() not overwriting. From 78ffc65dc12ad3ebef010309e5dc382a8c94dcb8 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 09:59:43 -0500 Subject: [PATCH 305/450] spelling: resourceattribs Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- internal/pdatautil/attributes_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/pdatautil/attributes_test.go b/internal/pdatautil/attributes_test.go index b87f0e27b4b5..6b3ef31d6dda 100644 --- a/internal/pdatautil/attributes_test.go +++ b/internal/pdatautil/attributes_test.go @@ -11,8 +11,8 @@ import ( ) func TestGetDimensionValue(t *testing.T) { - resourceattris := pcommon.NewMap() - resourceattris.PutStr("service.name", "mock-service-name") + resourceattribs := pcommon.NewMap() + resourceattribs.PutStr("service.name", "mock-service-name") spanattris := pcommon.NewMap() spanattris.PutStr("span.name", "mock-span-name") @@ -32,7 +32,7 @@ func TestGetDimensionValue(t *testing.T) { { name: "success get dimension value", dimension: Dimension{Name: "foo"}, - attributes: []pcommon.Map{resourceattris, spanattris, otherattribs}, + attributes: []pcommon.Map{resourceattribs, spanattris, otherattribs}, wantDimensionVal: "bar", }, { @@ -41,7 +41,7 @@ func TestGetDimensionValue(t *testing.T) { Name: "foo", Value: &defaultFoo, }, - attributes: []pcommon.Map{resourceattris, spanattris}, + attributes: []pcommon.Map{resourceattribs, spanattris}, wantDimensionVal: "bar", }, { @@ -49,7 +49,7 @@ func TestGetDimensionValue(t *testing.T) { dimension: Dimension{ Name: "foo", }, - attributes: []pcommon.Map{resourceattris, spanattris}, + attributes: []pcommon.Map{resourceattribs, spanattris}, wantDimensionVal: "", }, } From 8a9a70ec50cb2dfe4b47de38d58cb4f6aa5c4741 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 09:55:05 -0500 Subject: [PATCH 306/450] spelling: response Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- exporter/kineticaexporter/exporter_metric_test.go | 6 +++--- internal/kafka/awsmsk/iam_scram_client.go | 2 +- .../integration/mock_server/record_big_ip_responses.sh | 2 +- receiver/couchdbreceiver/metrics.go | 6 +++--- .../testdata/integration/integration_test_v2c_config.yaml | 2 +- .../testdata/integration/integration_test_v3_config.yaml | 2 +- .../testdata/integration/v2c_config_expected_metrics.yaml | 6 +++--- .../testdata/integration/v3_config_expected_metrics.yaml | 6 +++--- 9 files changed, 17 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e4071675f4ea..6d2a27364821 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -360,7 +360,7 @@ If you are looking for developer-facing changes, check out [CHANGELOG-API.md](./ ### 🧰 Bug fixes 🧰 - `awsfirehosereceiver`: make otlp_v1 a valid record type (#35750, #36125) -- `datadogreceiver`: Return a json reponse instead of "OK" when a trace is received with a newer protocol version. (#35705) +- `datadogreceiver`: Return a json response instead of "OK" when a trace is received with a newer protocol version. (#35705) - `datadogreceiver`: Changes response message for `/api/v1/check_run` 202 response to be JSON and on par with Datadog API spec (#36027) - `receiver/windowseventlog`: Fix panic when rendering long event messages. (#36179) - `hostmetricsreceiver`: Do not set the default value of HOST_PROC_MOUNTINFO to respect root_path (#35990) diff --git a/exporter/kineticaexporter/exporter_metric_test.go b/exporter/kineticaexporter/exporter_metric_test.go index cca7713a38a3..bc796a97a70a 100644 --- a/exporter/kineticaexporter/exporter_metric_test.go +++ b/exporter/kineticaexporter/exporter_metric_test.go @@ -424,7 +424,7 @@ func handleInsertRecords(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusOK) _, err := w.Write([]byte("\x04OK\x00.insert_records_response\x08\x00\x06\x00\x00\x00")) if err != nil { - http.Error(w, "Error wrting reesponse", http.StatusInternalServerError) + http.Error(w, "Error wrting response", http.StatusInternalServerError) return } } @@ -439,7 +439,7 @@ func handleExecuteSQL(w http.ResponseWriter, r *http.Request) { responseBytes := []byte("\x04OK\x00(execute_sql_response\xd4\x05\x02\xf6\x03{\"type\":\"record\",\"name\":\"generic_response\",\"fields\":[{\"name\":\"column_1\",\"type\":{\"type\":\"array\",\"items\":\"string\"}},{\"name\":\"column_headers\",\"type\":{\"type\":\"array\",\"items\":\"string\"}},{\"name\":\"column_datatypes\",\"type\":{\"type\":\"array\",\"items\":\"string\"}}]}$\x00\x02\ndummy\x00\x02\fstring\x00\x00\x01\x00\x00\b X-Kinetica-Group\x06DDL\ncount\x020\x1alast_endpoint\x1a/create/table.total_number_of_records\x020\x00\x00") _, err := w.Write(responseBytes) if err != nil { - http.Error(w, "Error wrting reesponse", http.StatusInternalServerError) + http.Error(w, "Error wrting response", http.StatusInternalServerError) return } } @@ -467,7 +467,7 @@ func handleShowTable(w http.ResponseWriter, r *http.Request) { _, err = w.Write(finalResponseBytes) if err != nil { - http.Error(w, "Error wrting reesponse", http.StatusInternalServerError) + http.Error(w, "Error wrting response", http.StatusInternalServerError) return } } diff --git a/internal/kafka/awsmsk/iam_scram_client.go b/internal/kafka/awsmsk/iam_scram_client.go index b7098a322c9f..ea78c09b4e6c 100644 --- a/internal/kafka/awsmsk/iam_scram_client.go +++ b/internal/kafka/awsmsk/iam_scram_client.go @@ -130,7 +130,7 @@ func (sc *IAMSASLClient) Step(challenge string) (string, error) { case serverResponse: if challenge == "" { sc.state = failed - return "", fmt.Errorf("challenge must not be empty for server resposne: %w", ErrBadChallenge) + return "", fmt.Errorf("challenge must not be empty for server response: %w", ErrBadChallenge) } var resp response diff --git a/receiver/bigipreceiver/testdata/integration/mock_server/record_big_ip_responses.sh b/receiver/bigipreceiver/testdata/integration/mock_server/record_big_ip_responses.sh index 8fa9b9f2b745..c8df573609c3 100755 --- a/receiver/bigipreceiver/testdata/integration/mock_server/record_big_ip_responses.sh +++ b/receiver/bigipreceiver/testdata/integration/mock_server/record_big_ip_responses.sh @@ -21,7 +21,7 @@ MEMBERS_STATS_RESPONSE_FILE_SUFFIX='_pool_members_stats_response.json' LOGIN_RESPONSE=$(curl -sk POST $ENDPOINT/mgmt/shared/authn/login -H $JSON_HEADER -d '{"username":"'$USER'","password":"'$PASSWORD'"}') echo $LOGIN_RESPONSE | jq . > $LOGIN_RESPONSE_FILE -# Retrieve token from the respons and create header with it +# Retrieve token from the response and create header with it TOKEN=$(echo $LOGIN_RESPONSE | jq -r '.token.token') TOKEN_HEADER='X-F5-Auth-Token:'$TOKEN'' diff --git a/receiver/couchdbreceiver/metrics.go b/receiver/couchdbreceiver/metrics.go index 6066562a60db..f66bf8e9a954 100644 --- a/receiver/couchdbreceiver/metrics.go +++ b/receiver/couchdbreceiver/metrics.go @@ -65,14 +65,14 @@ func (c *couchdbScraper) recordCouchdbHttpdRequestsDataPoint(now pcommon.Timesta func (c *couchdbScraper) recordCouchdbHttpdResponsesDataPoint(now pcommon.Timestamp, stats map[string]any, errs *scrapererror.ScrapeErrors) { codes := []string{"200", "201", "202", "204", "206", "301", "302", "304", "400", "401", "403", "404", "405", "406", "409", "412", "413", "414", "415", "416", "417", "500", "501", "503"} for _, code := range codes { - httpdResponsetCodeKey := []string{"httpd_status_codes", code, "value"} - httpdResponsetCodeValue, err := getValueFromBody(httpdResponsetCodeKey, stats) + httpdResponseCodeKey := []string{"httpd_status_codes", code, "value"} + httpdResponseCodeValue, err := getValueFromBody(httpdResponseCodeKey, stats) if err != nil { errs.AddPartial(1, err) continue } - parsedValue, err := c.parseInt(httpdResponsetCodeValue) + parsedValue, err := c.parseInt(httpdResponseCodeValue) if err != nil { errs.AddPartial(1, err) continue diff --git a/receiver/snmpreceiver/testdata/integration/integration_test_v2c_config.yaml b/receiver/snmpreceiver/testdata/integration/integration_test_v2c_config.yaml index 4f2feedc0282..6545aaee052d 100644 --- a/receiver/snmpreceiver/testdata/integration/integration_test_v2c_config.yaml +++ b/receiver/snmpreceiver/testdata/integration/integration_test_v2c_config.yaml @@ -31,7 +31,7 @@ receivers: attributes: - name: snmp.test.attribute.two.enum value: out - snmp.test.column.out.get.reponses: + snmp.test.column.out.get.responses: description: SNMP get responses unit: "By" sum: diff --git a/receiver/snmpreceiver/testdata/integration/integration_test_v3_config.yaml b/receiver/snmpreceiver/testdata/integration/integration_test_v3_config.yaml index 4a9da0c00286..c25db5411851 100644 --- a/receiver/snmpreceiver/testdata/integration/integration_test_v3_config.yaml +++ b/receiver/snmpreceiver/testdata/integration/integration_test_v3_config.yaml @@ -37,7 +37,7 @@ receivers: attributes: - name: snmp.test.attribute.two.enum value: out - snmp.test.column.out.get.reponses: + snmp.test.column.out.get.responses: description: SNMP get responses unit: "By" sum: diff --git a/receiver/snmpreceiver/testdata/integration/v2c_config_expected_metrics.yaml b/receiver/snmpreceiver/testdata/integration/v2c_config_expected_metrics.yaml index 7b1f58a8cc17..49df4d6e7593 100644 --- a/receiver/snmpreceiver/testdata/integration/v2c_config_expected_metrics.yaml +++ b/receiver/snmpreceiver/testdata/integration/v2c_config_expected_metrics.yaml @@ -40,7 +40,7 @@ resourceMetrics: scopeMetrics: - metrics: - description: SNMP get responses - name: snmp.test.column.out.get.reponses + name: snmp.test.column.out.get.responses sum: aggregationTemporality: 2 dataPoints: @@ -66,7 +66,7 @@ resourceMetrics: scopeMetrics: - metrics: - description: SNMP get responses - name: snmp.test.column.out.get.reponses + name: snmp.test.column.out.get.responses sum: aggregationTemporality: 2 dataPoints: @@ -92,7 +92,7 @@ resourceMetrics: scopeMetrics: - metrics: - description: SNMP get responses - name: snmp.test.column.out.get.reponses + name: snmp.test.column.out.get.responses sum: aggregationTemporality: 2 dataPoints: diff --git a/receiver/snmpreceiver/testdata/integration/v3_config_expected_metrics.yaml b/receiver/snmpreceiver/testdata/integration/v3_config_expected_metrics.yaml index cc1337c8cfe0..668848eb056f 100644 --- a/receiver/snmpreceiver/testdata/integration/v3_config_expected_metrics.yaml +++ b/receiver/snmpreceiver/testdata/integration/v3_config_expected_metrics.yaml @@ -40,7 +40,7 @@ resourceMetrics: scopeMetrics: - metrics: - description: SNMP get responses - name: snmp.test.column.out.get.reponses + name: snmp.test.column.out.get.responses sum: aggregationTemporality: 2 dataPoints: @@ -66,7 +66,7 @@ resourceMetrics: scopeMetrics: - metrics: - description: SNMP get responses - name: snmp.test.column.out.get.reponses + name: snmp.test.column.out.get.responses sum: aggregationTemporality: 2 dataPoints: @@ -92,7 +92,7 @@ resourceMetrics: scopeMetrics: - metrics: - description: SNMP get responses - name: snmp.test.column.out.get.reponses + name: snmp.test.column.out.get.responses sum: aggregationTemporality: 2 dataPoints: From 9073b56b5d23f16f5b2faf31cdfe0ed7abe3d55c Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 10:03:31 -0500 Subject: [PATCH 307/450] spelling: retrieval Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- connector/signaltometricsconnector/internal/customottl/get.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6d2a27364821..7f11ff7706e5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3612,7 +3612,7 @@ This release fixes CVE-2024-42368 on the `bearerauthtokenextension` (#34516) - `cmd/mdatagen`: Allow setting resource_attributes without introducing the metrics builder. (#21516) - `receiver/mongodbatlasreceiver`: Allow collection of MongoDB Atlas Access Logs as a new feature of the MongoDBAtlas receiver. (#21182) - `sshcheckreceiver`: Promote sshcheckreceiver to alpha (#21488) -- `pkg/ottl`: Add `FloatLikeGetter` and `FloatGetter` to facilitate float retrival for functions. (#21896) +- `pkg/ottl`: Add `FloatLikeGetter` and `FloatGetter` to facilitate float retrieval for functions. (#21896) - `pkg/ottl`: Add access to get and set span kind using a string (#21773) - `processor/routingprocessor`: Instrument the routing processor with non-routed spans/metricpoints/logrecords counters (OTel SDK). (#21476) - `skywalkingreceiver`: Refactoring the code structure/directory for the following metrics receiver implementation (#20315) diff --git a/connector/signaltometricsconnector/internal/customottl/get.go b/connector/signaltometricsconnector/internal/customottl/get.go index 811196b7ba0d..53d916745f33 100644 --- a/connector/signaltometricsconnector/internal/customottl/get.go +++ b/connector/signaltometricsconnector/internal/customottl/get.go @@ -11,7 +11,7 @@ import ( ) // Get is a temporary OTTL editor to allow statements to return values. This -// will be removed after OTTL can parse data retrival expressions: +// will be removed after OTTL can parse data retrieval expressions: // See: https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/35621 type GetArguments[K any] struct { From ede7b84ee17e75a8690523e7449084ebc836b25c Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 10:03:13 -0500 Subject: [PATCH 308/450] spelling: retrieve Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/vcenterreceiver/internal/mockserver/client_mock.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) From 1d2177f46043627518ae457f65b3fa535834a0f5 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 10:02:52 -0500 Subject: [PATCH 309/450] spelling: returns Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/stanza/operator/helper/ip_resolver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/stanza/operator/helper/ip_resolver.go b/pkg/stanza/operator/helper/ip_resolver.go index 3e63fd3534fe..82af9175a49a 100644 --- a/pkg/stanza/operator/helper/ip_resolver.go +++ b/pkg/stanza/operator/helper/ip_resolver.go @@ -105,7 +105,7 @@ func (r *IPResolver) GetHostFromIP(ip string) (host string) { return host } -// lookupIPAddr resturns hostname based on ip address +// lookupIPAddr returns hostname based on ip address func (r *IPResolver) lookupIPAddr(ip string) (host string) { res, err := net.LookupAddr(ip) if err != nil || len(res) == 0 { From 8d810780483a9141be4daeb68cbede6af4faaeb2 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 10:07:48 -0500 Subject: [PATCH 310/450] spelling: running Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/datadogexporter/traces_exporter.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exporter/datadogexporter/traces_exporter.go b/exporter/datadogexporter/traces_exporter.go index a510c7e88ae4..b1f3e6cd5359 100644 --- a/exporter/datadogexporter/traces_exporter.go +++ b/exporter/datadogexporter/traces_exporter.go @@ -45,8 +45,8 @@ type traceExporter struct { params exporter.Settings cfg *Config ctx context.Context // ctx triggers shutdown upon cancellation - client *zorkian.Client // client sends runnimg metrics to backend & performs API validation - metricsAPI *datadogV2.MetricsApi // client sends runnimg metrics to backend + client *zorkian.Client // client sends running metrics to backend & performs API validation + metricsAPI *datadogV2.MetricsApi // client sends running metrics to backend scrubber scrub.Scrubber // scrubber scrubs sensitive information from error messages onceMetadata *sync.Once // onceMetadata ensures that metadata is sent only once across all exporters agent *agent.Agent // agent processes incoming traces From 405b4b81d4e6e26e91238c9a7a3b5327bba5c408 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 17:58:59 -0500 Subject: [PATCH 311/450] spelling: sarama Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- internal/kafka/awsmsk/doc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/kafka/awsmsk/doc.go b/internal/kafka/awsmsk/doc.go index 94ac3cee7d7a..9682d03ca2d6 100644 --- a/internal/kafka/awsmsk/doc.go +++ b/internal/kafka/awsmsk/doc.go @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 // Package msk implements the required IAM auth used by AWS' managed Kafka platform -// to be used with the Surama kafka producer. +// to be used with the Sarama kafka producer. // // Further details on how the SASL connector works can be viewed here: // From ea76fbbcacb4ae1bc9649d40dffcf0a31020c5b8 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:56:41 -0500 Subject: [PATCH 312/450] spelling: scaling Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/translator/prometheusremotewrite/histograms_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/translator/prometheusremotewrite/histograms_test.go b/pkg/translator/prometheusremotewrite/histograms_test.go index d2b3cba24ae2..5ce11732fddb 100644 --- a/pkg/translator/prometheusremotewrite/histograms_test.go +++ b/pkg/translator/prometheusremotewrite/histograms_test.go @@ -157,7 +157,7 @@ func TestConvertBucketsLayout(t *testing.T) { }, // Downscale: // 4+2+0+2, 0+0+0+0, 0+0+0+0, 0+0+0+0, 1+0+0+0 = 8, 0, 0, 0, 1 - // Check from sclaing from previous: 6+2, 0+0, 0+0, 0+0, 1+0 = 8, 0, 0, 0, 1 + // Check from scaling from previous: 6+2, 0+0, 0+0, 0+0, 1+0 = 8, 0, 0, 0, 1 wantDeltas: []int64{8, -7}, }, }, @@ -208,7 +208,7 @@ func TestConvertBucketsLayout(t *testing.T) { }, // Downscale: // 4+2+0+2, 0+0+0+0, 0+0+0+0, 1+0+0+0 = 8, 0, 0, 1 - // Check from sclaing from previous: 6+2, 0+0, 0+0, 1+0 = 8, 0, 0, 1 + // Check from scaling from previous: 6+2, 0+0, 0+0, 1+0 = 8, 0, 0, 1 wantDeltas: []int64{8, -8, 0, 1}, }, }, From a2cfc3e8d0c3a1197d1b8d2d062a4ee988985675 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 10:08:42 -0500 Subject: [PATCH 313/450] spelling: schema Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/datasetexporter/traces_exporter.go | 2 +- .../datasetexporter/traces_exporter_test.go | 54 +++++++++---------- 2 files changed, 28 insertions(+), 28 deletions(-) diff --git a/exporter/datasetexporter/traces_exporter.go b/exporter/datasetexporter/traces_exporter.go index c1fde0ae0935..78674249dd9a 100644 --- a/exporter/datasetexporter/traces_exporter.go +++ b/exporter/datasetexporter/traces_exporter.go @@ -53,7 +53,7 @@ func buildEventFromSpan( } attrs["sca:schema"] = "tracing" - attrs["sca:schemVer"] = 1 + attrs["sca:schemaVer"] = 1 attrs["sca:type"] = "span" attrs["name"] = span.Name() diff --git a/exporter/datasetexporter/traces_exporter_test.go b/exporter/datasetexporter/traces_exporter_test.go index 0c905ce021cf..0eb7ec3fae6d 100644 --- a/exporter/datasetexporter/traces_exporter_test.go +++ b/exporter/datasetexporter/traces_exporter_test.go @@ -25,9 +25,9 @@ func generateTEvent1Raw() *add_events.Event { Ts: "1581452772000000321", ServerHost: "foo", Attrs: map[string]any{ - "sca:schemVer": 1, - "sca:schema": "tracing", - "sca:type": "span", + "sca:schemaVer": 1, + "sca:schema": "tracing", + "sca:type": "span", "name": "operationA", "kind": "unspecified", @@ -54,9 +54,9 @@ func generateTEvent2Raw() *add_events.Event { Ts: "1581452772000000321", ServerHost: "foo", Attrs: map[string]any{ - "sca:schemVer": 1, - "sca:schema": "tracing", - "sca:type": "span", + "sca:schemaVer": 1, + "sca:schema": "tracing", + "sca:type": "span", "name": "operationB", "kind": "unspecified", @@ -84,9 +84,9 @@ func generateTEvent3Raw() *add_events.Event { Ts: "1581452772000000321", ServerHost: "valServerHost", Attrs: map[string]any{ - "sca:schemVer": 1, - "sca:schema": "tracing", - "sca:type": "span", + "sca:schemaVer": 1, + "sca:schema": "tracing", + "sca:type": "span", "name": "operationC", "kind": "unspecified", @@ -152,9 +152,9 @@ func TestBuildEventsFromSpanAttributesCollision(t *testing.T) { Sev: 9, Ts: "0", Attrs: map[string]any{ - "sca:schemVer": 1, - "sca:schema": "tracing", - "sca:type": "span", + "sca:schemaVer": 1, + "sca:schema": "tracing", + "sca:type": "span", "name": "", "kind": "unspecified", @@ -208,9 +208,9 @@ func TestBuildEventsFromSpanAttributesDifferentTypes(t *testing.T) { Sev: 9, Ts: "0", Attrs: map[string]any{ - "sca:schemVer": 1, - "sca:schema": "tracing", - "sca:type": "span", + "sca:schemaVer": 1, + "sca:schema": "tracing", + "sca:type": "span", "name": "", "kind": "unspecified", @@ -268,9 +268,9 @@ func TestBuildEventFromSpan(t *testing.T) { name: "Default", settings: newDefaultTracesSettings(), expected: add_events.EventAttrs{ - "sca:schemVer": 1, - "sca:schema": "tracing", - "sca:type": "span", + "sca:schemaVer": 1, + "sca:schema": "tracing", + "sca:type": "span", "name": "", "kind": "unspecified", @@ -304,9 +304,9 @@ func TestBuildEventFromSpan(t *testing.T) { }, }, expected: add_events.EventAttrs{ - "sca:schemVer": 1, - "sca:schema": "tracing", - "sca:type": "span", + "sca:schemaVer": 1, + "sca:schema": "tracing", + "sca:type": "span", "name": "", "kind": "unspecified", @@ -340,9 +340,9 @@ func TestBuildEventFromSpan(t *testing.T) { }, }, expected: add_events.EventAttrs{ - "sca:schemVer": 1, - "sca:schema": "tracing", - "sca:type": "span", + "sca:schemaVer": 1, + "sca:schema": "tracing", + "sca:type": "span", "name": "filled_nameA", "kind": "unspecified", @@ -608,9 +608,9 @@ func generateSimpleEvent( serverHost string, ) *add_events.Event { attrs := map[string]any{ - "sca:schemVer": 1, - "sca:schema": "tracing", - "sca:type": "span", + "sca:schemaVer": 1, + "sca:schema": "tracing", + "sca:type": "span", "name": "", "kind": "unspecified", From e53fef3c0a45d93e9bdbd891f4411396ab686650 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 10:10:44 -0500 Subject: [PATCH 314/450] spelling: scheme Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- internal/coreinternal/parseutils/uri_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/coreinternal/parseutils/uri_test.go b/internal/coreinternal/parseutils/uri_test.go index 6fdb5612ce74..7c2fe775d58b 100644 --- a/internal/coreinternal/parseutils/uri_test.go +++ b/internal/coreinternal/parseutils/uri_test.go @@ -71,7 +71,7 @@ func TestParseURI(t *testing.T) { true, }, { - "sheme-port", + "scheme-port", "http://:8080", map[string]any{ "scheme": "http", From 46fa062d4a2b3adb6a92ccdd5dc9c6552d66b345 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 16:47:44 -0500 Subject: [PATCH 315/450] spelling: schemes Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/nsxtreceiver/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/nsxtreceiver/README.md b/receiver/nsxtreceiver/README.md index d6825a3d4fbd..18f716e34ca9 100644 --- a/receiver/nsxtreceiver/README.md +++ b/receiver/nsxtreceiver/README.md @@ -34,7 +34,7 @@ This receiver supports NSX-T Datacenter versions: ## Configuration -- `endpoint`: Endpoint of the NSX Manager. Must be formatted as `{scheme}://{host}:{port}`. Schems supported are `http` and `https` +- `endpoint`: Endpoint of the NSX Manager. Must be formatted as `{scheme}://{host}:{port}`. Schemes supported are `http` and `https` - `username`: Username of the `Auditor` user From 51eb00b1d97cf7b54165570b16a3c30e484d83e4 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 10:08:13 -0500 Subject: [PATCH 316/450] spelling: scraper Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/bigipreceiver/scraper_test.go | 2 +- receiver/githubreceiver/internal/scraper.go | 2 +- receiver/httpcheckreceiver/scraper_test.go | 2 +- receiver/mongodbatlasreceiver/factory.go | 2 +- receiver/rabbitmqreceiver/scraper_test.go | 2 +- receiver/riakreceiver/scraper_test.go | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/receiver/bigipreceiver/scraper_test.go b/receiver/bigipreceiver/scraper_test.go index 423e08aa6b9b..2483e1c47540 100644 --- a/receiver/bigipreceiver/scraper_test.go +++ b/receiver/bigipreceiver/scraper_test.go @@ -78,7 +78,7 @@ func TestScraperStart(t *testing.T) { } } -func TestScaperScrape(t *testing.T) { +func TestScraperScrape(t *testing.T) { testCases := []struct { desc string setupMockClient func(t *testing.T) client diff --git a/receiver/githubreceiver/internal/scraper.go b/receiver/githubreceiver/internal/scraper.go index 9789999fc7b8..e41e40635ac1 100644 --- a/receiver/githubreceiver/internal/scraper.go +++ b/receiver/githubreceiver/internal/scraper.go @@ -11,7 +11,7 @@ import ( ) type ScraperFactory interface { - // Create the default configuration for the sub sccraper. + // Create the default configuration for the sub scraper. CreateDefaultConfig() Config // Create a scraper based on the configuration passed or return an error if not valid. CreateMetricsScraper(ctx context.Context, params receiver.Settings, cfg Config) (scraper.Metrics, error) diff --git a/receiver/httpcheckreceiver/scraper_test.go b/receiver/httpcheckreceiver/scraper_test.go index 6ade4a815a9c..f24b6e340687 100644 --- a/receiver/httpcheckreceiver/scraper_test.go +++ b/receiver/httpcheckreceiver/scraper_test.go @@ -90,7 +90,7 @@ func TestScraperStart(t *testing.T) { } } -func TestScaperScrape(t *testing.T) { +func TestScraperScrape(t *testing.T) { testCases := []struct { desc string expectedResponse int diff --git a/receiver/mongodbatlasreceiver/factory.go b/receiver/mongodbatlasreceiver/factory.go index d4ed4b123599..383b069b51e0 100644 --- a/receiver/mongodbatlasreceiver/factory.go +++ b/receiver/mongodbatlasreceiver/factory.go @@ -43,7 +43,7 @@ func createMetricsReceiver( recv := newMongoDBAtlasReceiver(params, cfg) ms, err := newMongoDBAtlasScraper(recv) if err != nil { - return nil, fmt.Errorf("unable to create a MongoDB Atlas Scaper instance: %w", err) + return nil, fmt.Errorf("unable to create a MongoDB Atlas Scraper instance: %w", err) } return scraperhelper.NewScraperControllerReceiver(&cfg.ControllerConfig, params, consumer, scraperhelper.AddScraper(metadata.Type, ms)) diff --git a/receiver/rabbitmqreceiver/scraper_test.go b/receiver/rabbitmqreceiver/scraper_test.go index 349768bb4e1e..3ebf5f824933 100644 --- a/receiver/rabbitmqreceiver/scraper_test.go +++ b/receiver/rabbitmqreceiver/scraper_test.go @@ -76,7 +76,7 @@ func TestScraperStart(t *testing.T) { } } -func TestScaperScrape(t *testing.T) { +func TestScraperScrape(t *testing.T) { testCases := []struct { desc string setupMockClient func(t *testing.T) client diff --git a/receiver/riakreceiver/scraper_test.go b/receiver/riakreceiver/scraper_test.go index 40254984798f..356788aa3847 100644 --- a/receiver/riakreceiver/scraper_test.go +++ b/receiver/riakreceiver/scraper_test.go @@ -78,7 +78,7 @@ func TestScraperStart(t *testing.T) { } } -func TestScaperScrape(t *testing.T) { +func TestScraperScrape(t *testing.T) { testCases := []struct { desc string setupMockClient func(t *testing.T) client From 83c5b3b20c8b0ccd009c4b4e44595198f9ec73cc Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 10:09:04 -0500 Subject: [PATCH 317/450] spelling: second Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/ottl/expression_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/ottl/expression_test.go b/pkg/ottl/expression_test.go index 1af541d946e5..9b360c9bd6fd 100644 --- a/pkg/ottl/expression_test.go +++ b/pkg/ottl/expression_test.go @@ -2275,7 +2275,7 @@ func Test_StandardDurationGetter(t *testing.T) { valid: true, }, { - name: "complex duration values less than 1 seconc", + name: "complex duration values less than 1 second", getter: StandardDurationGetter[any]{ Getter: func(_ context.Context, _ any) (any, error) { return time.ParseDuration("10ms66us7000ns") From fee0447bcb15a27e8f030170c643c3f23b23b178 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 9 Jan 2025 20:57:14 -0500 Subject: [PATCH 318/450] spelling: see below for the Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/receivercreator/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/receivercreator/README.md b/receiver/receivercreator/README.md index f7ece3ca8926..8cee77686306 100644 --- a/receiver/receivercreator/README.md +++ b/receiver/receivercreator/README.md @@ -458,7 +458,7 @@ receiver_creator/metrics: # ignore_receivers: [] ``` -Find below the supported annotations that user can define to automatically enable receivers to start +See below for the supported annotations that user can define to automatically enable receivers to start collecting metrics and logs signals from the target Pods/containers. ### Supported metrics annotations From 19a44778ca9deea03c5f4506fcf9ddbd5a6df3e0 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 10:09:20 -0500 Subject: [PATCH 319/450] spelling: segment Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../skywalkingreceiver/internal/trace/tracing_report_service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/skywalkingreceiver/internal/trace/tracing_report_service.go b/receiver/skywalkingreceiver/internal/trace/tracing_report_service.go index a9024dfdd583..afbbed8ca192 100644 --- a/receiver/skywalkingreceiver/internal/trace/tracing_report_service.go +++ b/receiver/skywalkingreceiver/internal/trace/tracing_report_service.go @@ -83,7 +83,7 @@ func (r *Receiver) CollectInSync(ctx context.Context, segments *agent.SegmentCol for _, segment := range segments.Segments { marshaledSegment, err := proto.Marshal(segment) if err != nil { - fmt.Printf("cannot marshal segemnt from sync, %v", err) + fmt.Printf("cannot marshal segment from sync, %v", err) } err = consumeTraces(ctx, segment, r.nextConsumer) if err != nil { From 4f022775996747f5a2591121dc370381784cd084 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 10:09:14 -0500 Subject: [PATCH 320/450] spelling: segments Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../internal/cadvisor/container_info_processor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/awscontainerinsightreceiver/internal/cadvisor/container_info_processor.go b/receiver/awscontainerinsightreceiver/internal/cadvisor/container_info_processor.go index 0c714e583ad0..a1e745b7ec86 100644 --- a/receiver/awscontainerinsightreceiver/internal/cadvisor/container_info_processor.go +++ b/receiver/awscontainerinsightreceiver/internal/cadvisor/container_info_processor.go @@ -203,7 +203,7 @@ func processPod(info *cInfo.ContainerInfo, mInfo extractors.CPUMemInfoProvider, // - Guaranteed /kubepods.slice/kubepods-podc8f7bb69_65f2_4b61_ae5a_9b19ac47a239.slice/docker-523b624a86a2a74c2bedf586d8448c86887ef7858a8dec037d6559e5ad3fccb5.scope // - Burstable /kubepods.slice/kubepods-besteffort.slice/kubepods-besteffort-podab0e310c_0bdb_48e8_ac87_81a701514645.slice/docker-caa8a5e51cd6610f8f0110b491e8187d23488b9635acccf0355a7975fd3ff158.scope // - Docker in Docker /kubepods.slice/kubepods-burstable.slice/kubepods-burstable-podc9adcee4_c874_4dad_8bc8_accdbd67ac3a.slice/docker-e58cfbc8b67f6e1af458efdd31cb2a8abdbf9f95db64f4c852b701285a09d40e.scope/docker/fb651068cfbd4bf3d45fb092ec9451f8d1a36b3753687bbaa0a9920617eae5b9 -// So we check the number of segements within the cgroup path to determine if it's a container running in container. +// So we check the number of segments within the cgroup path to determine if it's a container running in container. func isContainerInContainer(p string) bool { segs := strings.Split(strings.TrimLeft(p, "/"), "/") // Without nested container, the number of segments (regardless of cgroupfs/systemd) are either 3 or 4 (depends on QoS) From ac654595c153c81d21b255ccffd88cd23049d310 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 10:09:41 -0500 Subject: [PATCH 321/450] spelling: sensible Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/sumologicexporter/sender_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/sumologicexporter/sender_test.go b/exporter/sumologicexporter/sender_test.go index 5032b323fe42..6b2ce1820e19 100644 --- a/exporter/sumologicexporter/sender_test.go +++ b/exporter/sumologicexporter/sender_test.go @@ -41,7 +41,7 @@ type senderTest struct { } // prepareSenderTest prepares sender test environment. -// Provided cfgOpts additionally configure the sender after the sendible default +// Provided cfgOpts additionally configure the sender after the sensible default // for tests have been applied. // The enclosed httptest.Server is closed automatically using test.Cleanup. func prepareSenderTest(t *testing.T, compression configcompression.Type, cb []func(w http.ResponseWriter, req *http.Request), cfgOpts ...func(*Config)) *senderTest { From 7a15fc6c743acf929a3fcff41723c3ea8664eed2 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 10:09:49 -0500 Subject: [PATCH 322/450] spelling: separate Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7f11ff7706e5..e07a82362179 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2160,7 +2160,7 @@ This release fixes CVE-2024-42368 on the `bearerauthtokenextension` (#34516) ### 🚀 New components 🚀 - `sumologicextension`: add configuration and readme (#29601) -- `failoverconnector`: Refactor of connector to seperate concerns between managing indexes and core failover component (#20766) +- `failoverconnector`: Refactor of connector to separate concerns between managing indexes and core failover component (#20766) - `otelarrow`: Skeleton of new OpenTelemetry Protocol with Apache Arrow Receiver (#26491) - `processor/interval`: Adds the initial structure for a new processor that aggregates metrics and periodically forwards the latest values to the next component in the pipeline. (#29461) As per the CONTRIBUTING.md recommendations, this PR only creates the basic structure of the processor. The concrete implementation will come as a separate followup PR From 939062154778732d69d58d535c59cff6a68e2cd2 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 10:09:52 -0500 Subject: [PATCH 323/450] spelling: separating Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/stanza/docs/operators/key_value_parser.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/stanza/docs/operators/key_value_parser.md b/pkg/stanza/docs/operators/key_value_parser.md index 70c45360b0d5..f2daf0500f49 100644 --- a/pkg/stanza/docs/operators/key_value_parser.md +++ b/pkg/stanza/docs/operators/key_value_parser.md @@ -8,7 +8,7 @@ The `key_value_parser` operator parses the string-type field selected by `parse_ | --- | --- | --- | | `id` | `key_value_parser` | A unique identifier for the operator. | | `delimiter` | `=` | The delimiter used for splitting a value into a key value pair. | -| `pair_delimiter` | | The delimiter used for seperating key value pairs, defaults to whitespace. | +| `pair_delimiter` | | The delimiter used for separating key value pairs, defaults to whitespace. | | `output` | Next in pipeline | The connected operator(s) that will receive all outbound entries. | | `parse_from` | `body` | A [field](../types/field.md) that indicates the field to be parsed into key value pairs. | | `parse_to` | `attributes` | A [field](../types/field.md) that indicates the field to be parsed as into key value pairs. | From 60d83470104e3849270466eb5dd008ac0ea6d812 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 10:10:04 -0500 Subject: [PATCH 324/450] spelling: service Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/alibabacloudlogserviceexporter/metrics_exporter.go | 2 +- exporter/alibabacloudlogserviceexporter/trace_exporter.go | 2 +- exporter/prometheusremotewriteexporter/exporter.go | 2 +- exporter/prometheusremotewriteexporter/helper.go | 2 +- exporter/prometheusremotewriteexporter/helper_test.go | 6 +++--- extension/observer/ecsobserver/fetcher.go | 2 +- receiver/zipkinreceiver/trace_receiver_test.go | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/exporter/alibabacloudlogserviceexporter/metrics_exporter.go b/exporter/alibabacloudlogserviceexporter/metrics_exporter.go index cf1dbb241c59..3abe96b6d532 100644 --- a/exporter/alibabacloudlogserviceexporter/metrics_exporter.go +++ b/exporter/alibabacloudlogserviceexporter/metrics_exporter.go @@ -13,7 +13,7 @@ import ( "go.uber.org/zap" ) -// newMetricsExporter return a new LogSerice metrics exporter. +// newMetricsExporter return a new LogService metrics exporter. func newMetricsExporter(set exporter.Settings, cfg component.Config) (exporter.Metrics, error) { l := &logServiceMetricsSender{ logger: set.Logger, diff --git a/exporter/alibabacloudlogserviceexporter/trace_exporter.go b/exporter/alibabacloudlogserviceexporter/trace_exporter.go index cfc685561ac7..90d8f7f9b69d 100644 --- a/exporter/alibabacloudlogserviceexporter/trace_exporter.go +++ b/exporter/alibabacloudlogserviceexporter/trace_exporter.go @@ -13,7 +13,7 @@ import ( "go.uber.org/zap" ) -// newTracesExporter return a new LogSerice trace exporter. +// newTracesExporter return a new LogService trace exporter. func newTracesExporter(set exporter.Settings, cfg component.Config) (exporter.Traces, error) { l := &logServiceTraceSender{ logger: set.Logger, diff --git a/exporter/prometheusremotewriteexporter/exporter.go b/exporter/prometheusremotewriteexporter/exporter.go index cb3b88986930..13cf3b252cc3 100644 --- a/exporter/prometheusremotewriteexporter/exporter.go +++ b/exporter/prometheusremotewriteexporter/exporter.go @@ -144,7 +144,7 @@ func newPRWExporter(cfg *Config, set exporter.Settings) (*prwExporter, error) { SendMetadata: cfg.SendMetadata, }, telemetry: prwTelemetry, - batchStatePool: sync.Pool{New: func() any { return newBatchTimeSericesState() }}, + batchStatePool: sync.Pool{New: func() any { return newBatchTimeServicesState() }}, } if prwe.exporterSettings.ExportCreatedMetric { diff --git a/exporter/prometheusremotewriteexporter/helper.go b/exporter/prometheusremotewriteexporter/helper.go index 265864aade15..e073099b98e0 100644 --- a/exporter/prometheusremotewriteexporter/helper.go +++ b/exporter/prometheusremotewriteexporter/helper.go @@ -19,7 +19,7 @@ type batchTimeSeriesState struct { nextRequestBufferSize int } -func newBatchTimeSericesState() *batchTimeSeriesState { +func newBatchTimeServicesState() *batchTimeSeriesState { return &batchTimeSeriesState{ nextTimeSeriesBufferSize: math.MaxInt, nextMetricMetadataBufferSize: math.MaxInt, diff --git a/exporter/prometheusremotewriteexporter/helper_test.go b/exporter/prometheusremotewriteexporter/helper_test.go index d45704d43b1c..46a61735a1c7 100644 --- a/exporter/prometheusremotewriteexporter/helper_test.go +++ b/exporter/prometheusremotewriteexporter/helper_test.go @@ -58,7 +58,7 @@ func Test_batchTimeSeries(t *testing.T) { // run tests for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - state := newBatchTimeSericesState() + state := newBatchTimeServicesState() requests, err := batchTimeSeries(tt.tsMap, tt.maxBatchByteSize, nil, state) if tt.returnErr { assert.Error(t, err) @@ -96,7 +96,7 @@ func Test_batchTimeSeriesUpdatesStateForLargeBatches(t *testing.T) { tsMap1 := getTimeseriesMap(tsArray) - state := newBatchTimeSericesState() + state := newBatchTimeServicesState() requests, err := batchTimeSeries(tsMap1, 1000000, nil, state) assert.NoError(t, err) @@ -129,7 +129,7 @@ func Benchmark_batchTimeSeries(b *testing.B) { b.ReportAllocs() b.ResetTimer() - state := newBatchTimeSericesState() + state := newBatchTimeServicesState() // Run batchTimeSeries 100 times with a 1mb max request size for i := 0; i < b.N; i++ { requests, err := batchTimeSeries(tsMap1, 1000000, nil, state) diff --git a/extension/observer/ecsobserver/fetcher.go b/extension/observer/ecsobserver/fetcher.go index e10fb314266b..a20d3ee269a3 100644 --- a/extension/observer/ecsobserver/fetcher.go +++ b/extension/observer/ecsobserver/fetcher.go @@ -69,7 +69,7 @@ type taskFetcherOptions struct { func newTaskFetcherFromConfig(cfg Config, logger *zap.Logger) (*taskFetcher, error) { svcNameFilter, err := serviceConfigsToFilter(cfg.Services) if err != nil { - return nil, fmt.Errorf("init serivce name filter failed: %w", err) + return nil, fmt.Errorf("init service name filter failed: %w", err) } return newTaskFetcher(taskFetcherOptions{ Logger: logger, 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() From f2576f8ced52dc3201d9373f60d2efe5343785dc Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 17:50:06 -0500 Subject: [PATCH 325/450] spelling: session Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- extension/observer/ecsobserver/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extension/observer/ecsobserver/README.md b/extension/observer/ecsobserver/README.md index 996938c4a4cf..78233bdabaec 100644 --- a/extension/observer/ecsobserver/README.md +++ b/extension/observer/ecsobserver/README.md @@ -392,7 +392,7 @@ The pseudocode showing the overall flow. ``` NewECSSD() { - session := awsconfig.NewSssion() + session := awsconfig.NewSession() ecsClient := awsecs.NewClient(session) filters := config.NewFilters() decorator := awsec2.NewClient(session) From 3c0e52f583423d1263dbfebf795482c47a42ebc8 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 10:10:24 -0500 Subject: [PATCH 326/450] spelling: severity Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- internal/filter/filterlog/severity_matcher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/filter/filterlog/severity_matcher.go b/internal/filter/filterlog/severity_matcher.go index 3277416cad28..5c000f573900 100644 --- a/internal/filter/filterlog/severity_matcher.go +++ b/internal/filter/filterlog/severity_matcher.go @@ -7,7 +7,7 @@ import ( "go.opentelemetry.io/collector/pdata/plog" ) -// severtiyNumberMatcher is a Matcher that matches if the input log record has a severity greater than +// severityNumberMatcher is a Matcher that matches if the input log record has a severity greater than // the minSeverityNumber. type severityNumberMatcher struct { matchUndefined bool From e6500e73baa44df3f52ad8a9d6be592df85ccc2e Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 10:11:04 -0500 Subject: [PATCH 327/450] spelling: shuts down Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/mongodbatlasreceiver/combined_logs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/mongodbatlasreceiver/combined_logs.go b/receiver/mongodbatlasreceiver/combined_logs.go index 7daa47beab1a..97b4d8a72645 100644 --- a/receiver/mongodbatlasreceiver/combined_logs.go +++ b/receiver/mongodbatlasreceiver/combined_logs.go @@ -59,7 +59,7 @@ func (c *combinedLogsReceiver) Start(ctx context.Context, host component.Host) e return errs } -// Shutsdown the combined MongoDB Atlas Logs and Alert Receiver +// Shuts down the combined MongoDB Atlas Logs and Alert Receiver func (c *combinedLogsReceiver) Shutdown(ctx context.Context) error { var errs error From d367c5effe4f9a89fe541b6bf7fa9cd5ae6fec3d Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 10:11:17 -0500 Subject: [PATCH 328/450] spelling: sigterm Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- testbed/testbed/child_process_collector.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testbed/testbed/child_process_collector.go b/testbed/testbed/child_process_collector.go index 6661f35595dd..419481edeb84 100644 --- a/testbed/testbed/child_process_collector.go +++ b/testbed/testbed/child_process_collector.go @@ -255,14 +255,14 @@ func (cp *childProcessCollector) Stop() (stopped bool, err error) { cp.isStopped = true - log.Printf("Gracefully terminating %s pid=%d, sending SIGTEM...", cp.name, cp.cmd.Process.Pid) + log.Printf("Gracefully terminating %s pid=%d, sending SIGTERM...", cp.name, cp.cmd.Process.Pid) // Notify resource monitor to stop. close(cp.doneSignal) // Gracefully signal process to stop. if err = cp.cmd.Process.Signal(syscall.SIGTERM); err != nil { - log.Printf("Cannot send SIGTEM: %s", err.Error()) + log.Printf("Cannot send SIGTERM: %s", err.Error()) } finished := make(chan struct{}) From 36fab85439e87742709fa602d3c55564a1c0f82c Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:57:29 -0500 Subject: [PATCH 329/450] spelling: similar Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/awsecscontainermetricsreceiver/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/awsecscontainermetricsreceiver/README.md b/receiver/awsecscontainermetricsreceiver/README.md index 6bc9cf1d4280..c74300415147 100644 --- a/receiver/awsecscontainermetricsreceiver/README.md +++ b/receiver/awsecscontainermetricsreceiver/README.md @@ -177,7 +177,7 @@ This receiver emits 52 unique metrics. Customer may not want to send all of them ### 1. Full configuration for task level metrics The following example shows a full configuration to get most useful task level metrics. It uses `awsecscontainermetrics` receiver to collect all the resource usage metrics from ECS task metadata endpoint. It applies `filter` processor to select only 8 task-level metrics and update metric names using `metricstransform` processor. It also renames the resource attributes using `resource` processor which will be used as metric dimensions in the Amazon CloudWatch `awsemf` exporter. Finally, it sends the metrics to CloudWatch using `awsemf` exporter under the `/aws/ecs/containerinsights/{ClusterName}/performance` namespace where the `{ClusterName}` placeholder will be replaced with actual cluster name. Check the [AWS EMF Exporter](https://aws-otel.github.io/docs/getting-started/cloudwatch-metrics) documentation to see and explore the metrics in Amazon CloudWatch. -**Note:** AWS OpenTelemetry Collector has a [default configuration](https://github.com/aws-observability/aws-otel-collector/blob/main/config/ecs/container-insights/otel-task-metrics-config.yaml) backed into it for Container Insights experience which is smiliar to this one. Follow our [setup](https://aws-otel.github.io/docs/setup/ecs) doc to check how to use that default config. +**Note:** AWS OpenTelemetry Collector has a [default configuration](https://github.com/aws-observability/aws-otel-collector/blob/main/config/ecs/container-insights/otel-task-metrics-config.yaml) backed into it for Container Insights experience which is similar to this one. Follow our [setup](https://aws-otel.github.io/docs/setup/ecs) doc to check how to use that default config. ```yaml receivers: From 2905cf384b481c32843b3fd186965e02413ecb16 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 10:12:10 -0500 Subject: [PATCH 330/450] spelling: skywalking Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- receiver/skywalkingreceiver/skywalking_receiver.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e07a82362179..a9d8f6ff1528 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2820,7 +2820,7 @@ This release fixes CVE-2024-42368 on the `bearerauthtokenextension` (#34516) In Linux and Darwin all fields are populated. In Windows only family, vendor.id and model.name are populated. - `pkg/stanza`: Add 'omit_pattern' setting to `split.Config`. (#26381) This can be used omit the start or end pattern from a log entry. -- `skywaklingreceiver`: implement receiver for JVM metrics in Skywalking and adapted it to the OpenTelemetry protocol. (#20315) +- `skywalkingreceiver`: implement receiver for JVM metrics in Skywalking and adapted it to the OpenTelemetry protocol. (#20315) - `statsdreceiver`: Add TCP support to statsdreceiver (#23327) - `azuredataexplorerexporter`: Added an optional column in the exported trace data to store the status code and message as a dynamic field. (#26496) - `statsdreceiver`: Allow for empty tag sets (#27011) diff --git a/receiver/skywalkingreceiver/skywalking_receiver.go b/receiver/skywalkingreceiver/skywalking_receiver.go index 2e9cd490ef95..8af7caec8b01 100644 --- a/receiver/skywalkingreceiver/skywalking_receiver.go +++ b/receiver/skywalkingreceiver/skywalking_receiver.go @@ -39,7 +39,7 @@ type configuration struct { CollectorGRPCServerSettings configgrpc.ServerConfig } -// Receiver type is used to receive spans that were originally intended to be sent to Skywaking. +// Receiver type is used to receive spans that were originally intended to be sent to Skywalking. // This receiver is basically a Skywalking collector. type swReceiver struct { config *configuration From a5995a902a280c21a4a6208b2005829035efc950 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:57:49 -0500 Subject: [PATCH 331/450] spelling: sources Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../metrics/func_convert_exponential_hist_to_explicit_hist.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/processor/transformprocessor/internal/metrics/func_convert_exponential_hist_to_explicit_hist.go b/processor/transformprocessor/internal/metrics/func_convert_exponential_hist_to_explicit_hist.go index f23136ac5d66..167d5293461d 100644 --- a/processor/transformprocessor/internal/metrics/func_convert_exponential_hist_to_explicit_hist.go +++ b/processor/transformprocessor/internal/metrics/func_convert_exponential_hist_to_explicit_hist.go @@ -199,7 +199,7 @@ var midpointAlgorithm distAlgorithm = func(count uint64, (*bucketCountsDst)[len(boundaries)-1] += count // Overflow bucket } -// uniformAlgorithm distributes counts from a given set of bucket sounrces into a set of linear boundaries using uniform distribution +// uniformAlgorithm distributes counts from a given set of bucket sources into a set of linear boundaries using uniform distribution var uniformAlgorithm distAlgorithm = func(count uint64, upper, lower float64, boundaries []float64, bucketCountsDst *[]uint64, From 8d73e8879b2b7e412ae91026dbf88fb0a335d85f Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:58:07 -0500 Subject: [PATCH 332/450] spelling: specifies Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- processor/metricstransformprocessor/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/processor/metricstransformprocessor/config.go b/processor/metricstransformprocessor/config.go index fe95795979df..c4f54f03d433 100644 --- a/processor/metricstransformprocessor/config.go +++ b/processor/metricstransformprocessor/config.go @@ -69,7 +69,7 @@ type transform struct { // REQUIRED only if Action is INSERT. NewName string `mapstructure:"new_name"` - // GroupResourceLabels specifes resource labels that will be appended to this group's new ResourceMetrics message + // GroupResourceLabels specifies resource labels that will be appended to this group's new ResourceMetrics message // REQUIRED only if Action is GROUP GroupResourceLabels map[string]string `mapstructure:"group_resource_labels"` From 52a29c9cc2a4f51e487ae8da91c414126cd4b5e7 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:58:15 -0500 Subject: [PATCH 333/450] spelling: specifying Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a9d8f6ff1528..5aa7b41ebfb3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1968,7 +1968,7 @@ This release fixes CVE-2024-42368 on the `bearerauthtokenextension` (#34516) - `prometheusremotewriteexporter`: Publish telemetry about translation of metrics from Otel to Prometheus. Don't drop all data points if some fail translation. (#29729) - `prometheusreceiver`: Use confighttp for target allocator client (#31449) - `spanmetricsconnector`: Add `metrics_expiration` option to enable expiration of metrics if spans are not received within a certain time frame. (#30559) - The feature can be configured by specifiying the desired duration in the `metrics_expiration` option. By default, the expiration is disabled (set to 0). + The feature can be configured by specifying the desired duration in the `metrics_expiration` option. By default, the expiration is disabled (set to 0). - `splunkentreceiver`: Updated the config.go and propagated these changes to other receiver components. Change was necessary to differentiate different configurable endpoints. (#30254) - `exporter/datadogexporter`: Do not drop traces when payload channel is full. (#31893) - `connector/datadogconnector`: Do not resolve container tags if payload already has tags associated with it. (#31893) From 23ff06a930bb37bba31e6f6f0581a391359b6b83 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:59:07 -0500 Subject: [PATCH 334/450] spelling: splitlist Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../awscontainerinsightreceiver/internal/ecsInfo/utils.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/receiver/awscontainerinsightreceiver/internal/ecsInfo/utils.go b/receiver/awscontainerinsightreceiver/internal/ecsInfo/utils.go index 0e579a3c76e8..4a34eee0b2f3 100644 --- a/receiver/awscontainerinsightreceiver/internal/ecsInfo/utils.go +++ b/receiver/awscontainerinsightreceiver/internal/ecsInfo/utils.go @@ -29,10 +29,10 @@ func GetContainerInstanceIDFromArn(arn string) (containerInstanceID string, err // container-instance/47c0ab6e-2c2c-475e-9c30-b878fa7a8c3d or // container-instance/cluster-name/47c0ab6e-2c2c-475e-9c30-b878fa7a8c3d err = nil - if splitedList := strings.Split(arn, ":"); len(splitedList) >= 6 { + if splitList := strings.Split(arn, ":"); len(splitList) >= 6 { // Further splitting tmpResult with "/", it could be splitted into either 2 or 3 // Characters of "cluster-name" is only allowed to be letters, numbers and hyphens - tmpResult := strings.Split(splitedList[5], "/") + tmpResult := strings.Split(splitList[5], "/") if len(tmpResult) == 2 { containerInstanceID = tmpResult[1] return From aa781528f7fb4789b471ed4ad2f8bfb2f4b1d35b Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:59:28 -0500 Subject: [PATCH 335/450] spelling: stability Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5aa7b41ebfb3..c6a5551fd187 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3804,7 +3804,7 @@ This release fixes CVE-2024-42368 on the `bearerauthtokenextension` (#34516) - `clickhouseexporter`: Insert instrumentation scope name and version to SpanAttributes column in traces table (#17408) - `stanza`: Enhancement pkg/stanza/flatten to support resource and attributes (#20448) -- `azuredataexplorerexporter`: Migrate stablity to beta. All the dependent libraries have moved to beta. (#19161) +- `azuredataexplorerexporter`: Migrate stability to beta. All the dependent libraries have moved to beta. (#19161) - `awsecscontainermetricsreceiver`: Add ServiceName from task metadata endpoint (#19728) - `mdatagen`: Warnings can now be specified in metadata.yaml to be included in the generated status table. (#20242) - `coralogixexporter`: Change coralogixexporter to default to gzip compression for logs and traces (#20337) From aceea7ae9e99b6b39bc1bd1daf9a16d81e7603ad Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 17:51:02 -0500 Subject: [PATCH 336/450] spelling: stacktrace Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/awsxrayexporter/internal/translator/cause_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/awsxrayexporter/internal/translator/cause_test.go b/exporter/awsxrayexporter/internal/translator/cause_test.go index f6511d835aee..a24ad9f66056 100644 --- a/exporter/awsxrayexporter/internal/translator/cause_test.go +++ b/exporter/awsxrayexporter/internal/translator/cause_test.go @@ -1072,7 +1072,7 @@ func TestParseExceptionWithStacktraceNotJavaScript(t *testing.T) { assert.Equal(t, isRemote, *exceptions[0].Remote) } -func TestParseExceptionWithJavaScriptStactracekMalformedLines(t *testing.T) { +func TestParseExceptionWithJavaScriptStacktraceMalformedLines(t *testing.T) { exceptionType := "TypeError" message := "Cannot read property 'value' of null" // We ignore the exception type / message from the stacktrace From 35ce97bdb831baabc9089546cd318440addbf498 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:59:45 -0500 Subject: [PATCH 337/450] spelling: statement Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/awss3exporter/internal/upload/writer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/awss3exporter/internal/upload/writer.go b/exporter/awss3exporter/internal/upload/writer.go index 282b1e96b881..d65544e5b4f4 100644 --- a/exporter/awss3exporter/internal/upload/writer.go +++ b/exporter/awss3exporter/internal/upload/writer.go @@ -63,7 +63,7 @@ func (sw *s3manager) Upload(ctx context.Context, data []byte) error { } func (sw *s3manager) contentBuffer(raw []byte) (*bytes.Buffer, error) { - //nolint: gocritic // Leaving this as a switch statemenet to make it easier to add more later compressions + //nolint: gocritic // Leaving this as a switch statement to make it easier to add more later compressions switch sw.builder.Compression { case configcompression.TypeGzip: content := bytes.NewBuffer(nil) From ff9a14b888af7d0216aa119c2ae69a8c6efeb844 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 17:51:28 -0500 Subject: [PATCH 338/450] spelling: statements Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/ottl/parser_collection.go | 2 +- .../internal/logs/processor_test.go | 16 ++++++++-------- .../internal/metrics/processor_test.go | 16 ++++++++-------- .../internal/traces/processor_test.go | 16 ++++++++-------- 4 files changed, 25 insertions(+), 25 deletions(-) diff --git a/pkg/ottl/parser_collection.go b/pkg/ottl/parser_collection.go index c257e8eb198c..18e9d67fdcb3 100644 --- a/pkg/ottl/parser_collection.go +++ b/pkg/ottl/parser_collection.go @@ -307,7 +307,7 @@ func (pc *ParserCollection[R]) ParseStatements(statements StatementsGetter) (R, func (pc *ParserCollection[R]) ParseStatementsWithContext(context string, statements StatementsGetter, prependPathsContext bool) (R, error) { contextParser, ok := pc.contextParsers[context] if !ok { - return *new(R), fmt.Errorf(`unknown context "%s" for stataments: %v`, context, statements.GetStatements()) + return *new(R), fmt.Errorf(`unknown context "%s" for statements: %v`, context, statements.GetStatements()) } var err error diff --git a/processor/transformprocessor/internal/logs/processor_test.go b/processor/transformprocessor/internal/logs/processor_test.go index d3e06f65ac01..448328138c21 100644 --- a/processor/transformprocessor/internal/logs/processor_test.go +++ b/processor/transformprocessor/internal/logs/processor_test.go @@ -366,13 +366,13 @@ func Test_ProcessLogs_LogContext(t *testing.T) { func Test_ProcessLogs_MixContext(t *testing.T) { tests := []struct { - name string - contextStatments []common.ContextStatements - want func(td plog.Logs) + name string + contextStatements []common.ContextStatements + want func(td plog.Logs) }{ { name: "set resource and then use", - contextStatments: []common.ContextStatements{ + contextStatements: []common.ContextStatements{ { Context: "resource", Statements: []string{ @@ -394,7 +394,7 @@ func Test_ProcessLogs_MixContext(t *testing.T) { }, { name: "set scope and then use", - contextStatments: []common.ContextStatements{ + contextStatements: []common.ContextStatements{ { Context: "scope", Statements: []string{ @@ -416,7 +416,7 @@ func Test_ProcessLogs_MixContext(t *testing.T) { }, { name: "order matters", - contextStatments: []common.ContextStatements{ + contextStatements: []common.ContextStatements{ { Context: "log", Statements: []string{ @@ -436,7 +436,7 @@ func Test_ProcessLogs_MixContext(t *testing.T) { }, { name: "reuse context", - contextStatments: []common.ContextStatements{ + contextStatements: []common.ContextStatements{ { Context: "scope", Statements: []string{ @@ -467,7 +467,7 @@ func Test_ProcessLogs_MixContext(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { td := constructLogs() - processor, err := NewProcessor(tt.contextStatments, ottl.IgnoreError, false, componenttest.NewNopTelemetrySettings()) + processor, err := NewProcessor(tt.contextStatements, ottl.IgnoreError, false, componenttest.NewNopTelemetrySettings()) assert.NoError(t, err) _, err = processor.ProcessLogs(context.Background(), td) diff --git a/processor/transformprocessor/internal/metrics/processor_test.go b/processor/transformprocessor/internal/metrics/processor_test.go index 6087fcd70d74..128a9d00ced0 100644 --- a/processor/transformprocessor/internal/metrics/processor_test.go +++ b/processor/transformprocessor/internal/metrics/processor_test.go @@ -726,13 +726,13 @@ func Test_ProcessMetrics_DataPointContext(t *testing.T) { func Test_ProcessMetrics_MixContext(t *testing.T) { tests := []struct { - name string - contextStatments []common.ContextStatements - want func(td pmetric.Metrics) + name string + contextStatements []common.ContextStatements + want func(td pmetric.Metrics) }{ { name: "set resource and then use", - contextStatments: []common.ContextStatements{ + contextStatements: []common.ContextStatements{ { Context: "resource", Statements: []string{ @@ -761,7 +761,7 @@ func Test_ProcessMetrics_MixContext(t *testing.T) { }, { name: "set scope and then use", - contextStatments: []common.ContextStatements{ + contextStatements: []common.ContextStatements{ { Context: "scope", Statements: []string{ @@ -790,7 +790,7 @@ func Test_ProcessMetrics_MixContext(t *testing.T) { }, { name: "order matters", - contextStatments: []common.ContextStatements{ + contextStatements: []common.ContextStatements{ { Context: "datapoint", Statements: []string{ @@ -810,7 +810,7 @@ func Test_ProcessMetrics_MixContext(t *testing.T) { }, { name: "reuse context ", - contextStatments: []common.ContextStatements{ + contextStatements: []common.ContextStatements{ { Context: "scope", Statements: []string{ @@ -848,7 +848,7 @@ func Test_ProcessMetrics_MixContext(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { td := constructMetrics() - processor, err := NewProcessor(tt.contextStatments, ottl.IgnoreError, componenttest.NewNopTelemetrySettings()) + processor, err := NewProcessor(tt.contextStatements, ottl.IgnoreError, componenttest.NewNopTelemetrySettings()) assert.NoError(t, err) _, err = processor.ProcessMetrics(context.Background(), td) diff --git a/processor/transformprocessor/internal/traces/processor_test.go b/processor/transformprocessor/internal/traces/processor_test.go index e6928ba9fa38..0da86dfeb262 100644 --- a/processor/transformprocessor/internal/traces/processor_test.go +++ b/processor/transformprocessor/internal/traces/processor_test.go @@ -443,13 +443,13 @@ func Test_ProcessTraces_SpanEventContext(t *testing.T) { func Test_ProcessTraces_MixContext(t *testing.T) { tests := []struct { - name string - contextStatments []common.ContextStatements - want func(td ptrace.Traces) + name string + contextStatements []common.ContextStatements + want func(td ptrace.Traces) }{ { name: "set resource and then use", - contextStatments: []common.ContextStatements{ + contextStatements: []common.ContextStatements{ { Context: "resource", Statements: []string{ @@ -471,7 +471,7 @@ func Test_ProcessTraces_MixContext(t *testing.T) { }, { name: "set scope and then use", - contextStatments: []common.ContextStatements{ + contextStatements: []common.ContextStatements{ { Context: "scope", Statements: []string{ @@ -493,7 +493,7 @@ func Test_ProcessTraces_MixContext(t *testing.T) { }, { name: "order matters", - contextStatments: []common.ContextStatements{ + contextStatements: []common.ContextStatements{ { Context: "span", Statements: []string{ @@ -513,7 +513,7 @@ func Test_ProcessTraces_MixContext(t *testing.T) { }, { name: "reuse context", - contextStatments: []common.ContextStatements{ + contextStatements: []common.ContextStatements{ { Context: "scope", Statements: []string{ @@ -544,7 +544,7 @@ func Test_ProcessTraces_MixContext(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { td := constructTraces() - processor, err := NewProcessor(tt.contextStatments, ottl.IgnoreError, componenttest.NewNopTelemetrySettings()) + processor, err := NewProcessor(tt.contextStatements, ottl.IgnoreError, componenttest.NewNopTelemetrySettings()) assert.NoError(t, err) _, err = processor.ProcessTraces(context.Background(), td) From 84fa19cd2bbaabcc6fc3e61f0296a8a826adace7 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 17:53:26 -0500 Subject: [PATCH 339/450] spelling: stateset Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/prometheusreceiver/DESIGN.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/prometheusreceiver/DESIGN.md b/receiver/prometheusreceiver/DESIGN.md index 45ee3ad08b71..8fcd276fc478 100644 --- a/receiver/prometheusreceiver/DESIGN.md +++ b/receiver/prometheusreceiver/DESIGN.md @@ -56,7 +56,7 @@ undocumented metrics types, including: * Gaugehistogram * Info -* Statset +* Stateset More details can be found from the [prometheus text parser source code](https://github.com/prometheus/prometheus/blob/afdd1357e008375e693a1b4c096f81b2358cb46f/model/textparse/interface.go#L25) From c2b6d1be5ee885a40bcd0084a2ee38ee258a6e31 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:59:54 -0500 Subject: [PATCH 340/450] spelling: statuses Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/status/aggregation.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/status/aggregation.go b/pkg/status/aggregation.go index c1af5a4c0c7d..bca677e21dd3 100644 --- a/pkg/status/aggregation.go +++ b/pkg/status/aggregation.go @@ -57,7 +57,7 @@ type aggregationFunc func(*AggregateStatus) Event // that a later RecoverableError does not shadow an earlier event in the // aggregate status. Additionally, this makes sense in the case where a // RecoverableError in one component cascades to other components; the earliest -// error event is likely to be correlated with the cause. For non-error stauses +// error event is likely to be correlated with the cause. For non-error statuses // we use the latest event as it represents the last time a successful status was // reported. func newAggregationFunc(priority ErrorPriority) aggregationFunc { From c87f34f08d79777be8170e0ba5119ea78a2e9e3b Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 3 Jan 2025 09:58:04 -0500 Subject: [PATCH 341/450] spelling: still Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../internal/apm/requests/requestcounter/counter_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/signalfxexporter/internal/apm/requests/requestcounter/counter_test.go b/exporter/signalfxexporter/internal/apm/requests/requestcounter/counter_test.go index 92a6d74cbdaf..ede914c935b4 100644 --- a/exporter/signalfxexporter/internal/apm/requests/requestcounter/counter_test.go +++ b/exporter/signalfxexporter/internal/apm/requests/requestcounter/counter_test.go @@ -32,7 +32,7 @@ func TestContextWithRequestCounter(t *testing.T) { // ensure increment on parent also increments child IncrementRequestCount(parent) - assert.Equal(t, uint32(3), GetRequestCount(parent), "parent context can still still increment counter") + assert.Equal(t, uint32(3), GetRequestCount(parent), "parent context can still increment counter") assert.Equal(t, uint32(3), GetRequestCount(child), "child context counter was incremented when parent was incremented") assert.Equal(t, uint32(3), GetRequestCount(ContextWithRequestCounter(parent)), "trying to get a context with a counter shouldn't not overwrite an existing counter") From a3e2747446b33c21ca46322ab8418b5c96c78f31 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 17:53:56 -0500 Subject: [PATCH 342/450] spelling: storage Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/stanza/adapter/storage_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/stanza/adapter/storage_test.go b/pkg/stanza/adapter/storage_test.go index 3e5f96a31309..56a568eb4713 100644 --- a/pkg/stanza/adapter/storage_test.go +++ b/pkg/stanza/adapter/storage_test.go @@ -64,13 +64,13 @@ func TestStorage(t *testing.T) { } func TestFindCorrectStorageExtension(t *testing.T) { - correctStoragedExt := storagetest.NewInMemoryStorageExtension("want") - id := correctStoragedExt.ID + correctStorageExt := storagetest.NewInMemoryStorageExtension("want") + id := correctStorageExt.ID r := createReceiver(t, id) host := storagetest.NewStorageHost(). WithNonStorageExtension("one"). WithFileBackedStorageExtension("foo", t.TempDir()). - WithExtension(id, correctStoragedExt). + WithExtension(id, correctStorageExt). WithFileBackedStorageExtension("bar", t.TempDir()). WithNonStorageExtension("two") From 77d6f88f450cd1c8707b96926de5bdc9e3943ff0 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 17:53:36 -0500 Subject: [PATCH 343/450] spelling: string Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/solacereceiver/unmarshaller_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/solacereceiver/unmarshaller_test.go b/receiver/solacereceiver/unmarshaller_test.go index e05abd631402..0a5d2d86fec8 100644 --- a/receiver/solacereceiver/unmarshaller_test.go +++ b/receiver/solacereceiver/unmarshaller_test.go @@ -36,7 +36,7 @@ func TestSolaceMessageUnmarshallerUnmarshal(t *testing.T) { err error }{ { - name: "Unknown Topic Stirng", + name: "Unknown Topic String", message: &inboundMessage{ Properties: &amqp.MessageProperties{ To: &invalidTopicString, From 7e6a8dc8b1c5df6797dac4396fcb5cf611ae42ef Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 20:00:26 -0500 Subject: [PATCH 344/450] spelling: subsequent Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../internal/tracking/tracker_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/processor/cumulativetodeltaprocessor/internal/tracking/tracker_test.go b/processor/cumulativetodeltaprocessor/internal/tracking/tracker_test.go index 8ebcdb188f23..3412efc5849b 100644 --- a/processor/cumulativetodeltaprocessor/internal/tracking/tracker_test.go +++ b/processor/cumulativetodeltaprocessor/internal/tracking/tracker_test.go @@ -40,7 +40,7 @@ func TestMetricTracker_Convert(t *testing.T) { future := time.Now().Add(1 * time.Hour) keepSubsequentTest := subTest{ - name: "keep subsequet value", + name: "keep subsequent value", value: ValuePoint{ ObservedTimestamp: pcommon.NewTimestampFromTime(future.Add(time.Minute)), FloatValue: 225, From 09cb09d0eb915685ec49e3ecda444418c7967e1f Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 17:56:00 -0500 Subject: [PATCH 345/450] spelling: success Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../internal/host/ec2tags.go | 10 +++++----- .../internal/host/ec2tags_test.go | 16 ++++++++-------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/receiver/awscontainerinsightreceiver/internal/host/ec2tags.go b/receiver/awscontainerinsightreceiver/internal/host/ec2tags.go index ca72b8af63ab..4405e9467e34 100644 --- a/receiver/awscontainerinsightreceiver/internal/host/ec2tags.go +++ b/receiver/awscontainerinsightreceiver/internal/host/ec2tags.go @@ -41,7 +41,7 @@ type ec2Tags struct { client ec2TagsClient clusterName string autoScalingGroupName string - isSucess chan bool // only used in testing + isSuccess chan bool // only used in testing logger *zap.Logger } @@ -135,13 +135,13 @@ func (et *ec2Tags) refresh(ctx context.Context) { et.logger.Info("Fetch ec2 tags to detect cluster name and auto scaling group name", zap.String("instanceId", et.autoScalingGroupName)) et.logger.Info("Fetch ec2 tags to detect cluster name and auto scaling group name", zap.String("instanceId", et.clusterName)) if et.containerOrchestrator == ci.ECS { - if et.isSucess != nil && et.autoScalingGroupName != "" { - close(et.isSucess) + if et.isSuccess != nil && et.autoScalingGroupName != "" { + close(et.isSuccess) } } else { - if et.isSucess != nil && et.autoScalingGroupName != "" && et.clusterName != "" { + if et.isSuccess != nil && et.autoScalingGroupName != "" && et.clusterName != "" { // this will be executed only in testing - close(et.isSucess) + close(et.isSuccess) } } } diff --git a/receiver/awscontainerinsightreceiver/internal/host/ec2tags_test.go b/receiver/awscontainerinsightreceiver/internal/host/ec2tags_test.go index 479020ba817a..58b48b3162f6 100644 --- a/receiver/awscontainerinsightreceiver/internal/host/ec2tags_test.go +++ b/receiver/awscontainerinsightreceiver/internal/host/ec2tags_test.go @@ -74,15 +74,15 @@ func TestEC2TagsForEKS(t *testing.T) { maxJitterOption := func(e *ec2Tags) { e.maxJitterTime = 0 } - isSucessOption := func(e *ec2Tags) { - e.isSucess = make(chan bool) + isSuccessOption := func(e *ec2Tags) { + e.isSuccess = make(chan bool) } et := newEC2Tags(ctx, sess, "instanceId", "us-west-2", ci.EKS, time.Millisecond, zap.NewNop(), clientOption, - maxJitterOption, isSucessOption) + maxJitterOption, isSuccessOption) // wait for ec2 tags are fetched e := et.(*ec2Tags) - <-e.isSucess + <-e.isSuccess assert.Equal(t, "cluster-name", et.getClusterName()) assert.Equal(t, "asg", et.getAutoScalingGroupName()) } @@ -103,14 +103,14 @@ func TestEC2TagsForECS(t *testing.T) { maxJitterOption := func(e *ec2Tags) { e.maxJitterTime = 0 } - isSucessOption := func(e *ec2Tags) { - e.isSucess = make(chan bool) + isSuccessOption := func(e *ec2Tags) { + e.isSuccess = make(chan bool) } et := newEC2Tags(ctx, sess, "instanceId", "us-west-2", ci.ECS, time.Millisecond, zap.NewNop(), clientOption, - maxJitterOption, isSucessOption) + maxJitterOption, isSuccessOption) // wait for ec2 tags are fetched e := et.(*ec2Tags) - <-e.isSucess + <-e.isSuccess assert.Equal(t, "asg", et.getAutoScalingGroupName()) } From 006a264a9bcf9226baefc075d26cc58acfa38fd2 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 20:00:32 -0500 Subject: [PATCH 346/450] spelling: successful Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c6a5551fd187..25fda625253c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5712,7 +5712,7 @@ This version has been skipped. - `fluentforwardreceiver`: Release port on shutdown (#9111) - `prometheusexporter`: Prometheus fails to generate logs when prometheus exporter produced a check exception occurs. (#8949) - `resourcedetectionprocessor`: Wire docker detector (#9372) -- `kafkametricsreceiver`: The kafkametricsreceiver was changed to connect to kafka during scrape, rather than startup. If kafka is unavailable the receiver will attempt to connect during subsequent scrapes until succcessful (#8817). +- `kafkametricsreceiver`: The kafkametricsreceiver was changed to connect to kafka during scrape, rather than startup. If kafka is unavailable the receiver will attempt to connect during subsequent scrapes until successful (#8817). - `datadogexporter`: Update Kubernetes example manifest to new executable name. (#9425). - `riakreceiver`: Fix issue where user configured metric settings were ignored. (#9561) - `sqlserverreceiver`: Update `sqlserver.transaction_log.growth.count` and `sqlserver.transaction_log.shrink.count` to be monotonic sums. (#9522) From e2a8cdbc9550f6c8d8a807e067e0918b85744088 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 20:00:58 -0500 Subject: [PATCH 347/450] spelling: suffix Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../internal/stores/podstore_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/receiver/awscontainerinsightreceiver/internal/stores/podstore_test.go b/receiver/awscontainerinsightreceiver/internal/stores/podstore_test.go index 3e278971fd97..91ba5b9e4bc7 100644 --- a/receiver/awscontainerinsightreceiver/internal/stores/podstore_test.go +++ b/receiver/awscontainerinsightreceiver/internal/stores/podstore_test.go @@ -505,13 +505,13 @@ func TestPodStore_addPodOwnersAndPodName(t *testing.T) { metric = generateMetric(fields, tags) jobName := "JobTest" pod.OwnerReferences[0].Kind = ci.Job - surfixHash := ".088123x12" - pod.Name = jobName + surfixHash - pod.OwnerReferences[0].Name = jobName + surfixHash + suffixHash := ".088123x12" + pod.Name = jobName + suffixHash + pod.OwnerReferences[0].Name = jobName + suffixHash kubernetesBlob = map[string]any{} podStore.addPodOwnersAndPodName(metric, pod, kubernetesBlob) - expectedOwner["pod_owners"] = []any{map[string]string{"owner_kind": ci.Job, "owner_name": jobName + surfixHash}} - expectedOwnerName = jobName + surfixHash + expectedOwner["pod_owners"] = []any{map[string]string{"owner_kind": ci.Job, "owner_name": jobName + suffixHash}} + expectedOwnerName = jobName + suffixHash assert.Equal(t, expectedOwnerName, metric.GetTag(ci.PodNameKey)) assert.Equal(t, pod.Name, metric.GetTag(ci.FullPodNameKey)) assert.Equal(t, expectedOwner, kubernetesBlob) From 3fed9ae562c7c3a2125ffe3a69ac0160bc97a7a1 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 20:00:44 -0500 Subject: [PATCH 348/450] spelling: support Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 25fda625253c..c521e4278392 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1540,7 +1540,7 @@ This release fixes CVE-2024-42368 on the `bearerauthtokenextension` (#34516) * do not support source headers - `sumologicexporter`: change metrics behavior (#31479) - * remove suppport for carbon2 and graphite + * remove support for carbon2 and graphite * add support for otlp format * do not support metadata attributes * do not support source headers @@ -4239,7 +4239,7 @@ This release fixes CVE-2024-42368 on the `bearerauthtokenextension` (#34516) - `coralogixexporter`: improve coralogix exporter performance (#17268) improves coralogix exporter to send batched telemetry data to the backend - `internal/comparetest`: Do not ignore order of any slices by default, use an options for that. (#17551) -- `mysqlreceiver`: add mysql.commands metric with supprot for delete, insert, select, update (#14138) +- `mysqlreceiver`: add mysql.commands metric with support for delete, insert, select, update (#14138) - `exporter/dynatrace`: Provide more logs on the results of metrics submissions (#15248) - `prometheusremotewriteexporter`: Add support for converting OTLP Exponential Histograms to Prometheus Native Histograms (#16207) - `pkg/pdatautil`: Export comparetest and pdatautil modules under github.com/open-telemetry/opentelemetry-collector-contrib/pkg (#17873) From c1b0eea18dfc508bd88ac815eeb2e911bf8f0a15 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 20:01:29 -0500 Subject: [PATCH 349/450] spelling: swallowing Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- extension/oidcauthextension/extension.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extension/oidcauthextension/extension.go b/extension/oidcauthextension/extension.go index c79e3231ef3a..c6d2ebeb37cb 100644 --- a/extension/oidcauthextension/extension.go +++ b/extension/oidcauthextension/extension.go @@ -114,7 +114,7 @@ func (e *oidcExtension) authenticate(ctx context.Context, headers map[string][]s // will already attempt to parse the payload as a json and set it as the claims // for the token. As we are using a map to hold the claims, there's no way to fail // to read the claims. It could fail if we were using a custom struct. Instead of - // swalling the error, it's better to make this future-proof, in case the underlying + // swallowing the error, it's better to make this future-proof, in case the underlying // code changes return ctx, errFailedToObtainClaimsFromToken } From 4762452cdafd60d93f93a0de62c4eadf84fd0f8c Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 20:01:42 -0500 Subject: [PATCH 350/450] spelling: symbols Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c521e4278392..3645b32bd85c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5337,7 +5337,7 @@ This version has been skipped. - `dockerobserver`: incorporate observer.EndpointsWatcher in preparation of multiple event subscribers and use existing internal event loop watcher (#10830, #11541) - `hostmetrics`: Adding connection tracking count and max metrics for linux (#11769) - `hostmetricsreceiver`: New config setting scrape_process_delay is used to indicate the minimum amount of time a process must be running before process metrics can be scraped for it. The default value is 0 seconds ("0s"). (#8976) -- `transformprocessor`: Add ability to interact with enums via sybmols. (#10349) +- `transformprocessor`: Add ability to interact with enums via symbols. (#10349) - `telemetryquerylanguage`: Adds to the grammar the ability to interpret Enums. (#11751) - `transformprocessor`: Update the transform processor to use the Telemetry Query Language package (#11751) - `transformprocessor`: Add `delete_key` and `delete_matching_keys` which allow deleting keys from maps. (#11823) From 29ac42cf03cc20ae5b9895da1daa3380814f8c39 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 20:01:49 -0500 Subject: [PATCH 351/450] spelling: synced Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/kubeletstatsreceiver/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/kubeletstatsreceiver/README.md b/receiver/kubeletstatsreceiver/README.md index d91c83402749..44b8dbce0866 100644 --- a/receiver/kubeletstatsreceiver/README.md +++ b/receiver/kubeletstatsreceiver/README.md @@ -157,7 +157,7 @@ include the following: - `container.id` - to augment metrics with Container ID label obtained from container statuses exposed via `/pods`. - `k8s.volume.type` - to collect volume type from the Pod spec exposed via `/pods` and have it as a label on volume metrics. -If there's more information available from the endpoint than just volume type, those are sycned as well depending on +If there's more information available from the endpoint than just volume type, those are synced as well depending on the available fields and the type of volume. For example, `aws.volume.id` would be synced from `awsElasticBlockStore` and `gcp.pd.name` is synced for `gcePersistentDisk`. From e04e8d9bde15c532f62289c225fdfea216012389 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 20:02:02 -0500 Subject: [PATCH 352/450] spelling: synthetic Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- receiver/httpcheckreceiver/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3645b32bd85c..d97ef9469382 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4714,7 +4714,7 @@ This release fixes CVE-2024-42368 on the `bearerauthtokenextension` (#34516) - `azureblobreceiver`: Add a new component `azureblobreceiver` (#8834) Add a new component `azureblobreceiver` that reads logs and traces from Azure Blob Storage - `k8sobjectsreceiver`: Add a new k8sobjects receiver to collect(pull/watch) Kubernetes Objects (#14185) -- `httpcheckreceiver`: New HTTP Check receiver allows users to run synthethic checks from the collector (#10607) +- `httpcheckreceiver`: New HTTP Check receiver allows users to run synthetic checks from the collector (#10607) ### 💡 Enhancements 💡 diff --git a/receiver/httpcheckreceiver/README.md b/receiver/httpcheckreceiver/README.md index 3ede7c79de99..4785b30404e3 100644 --- a/receiver/httpcheckreceiver/README.md +++ b/receiver/httpcheckreceiver/README.md @@ -13,7 +13,7 @@ [k8s]: https://github.com/open-telemetry/opentelemetry-collector-releases/tree/main/distributions/otelcol-k8s -The HTTP Check Receiver can be used for synthethic checks against HTTP endpoints. This receiver will make a request to the specified `endpoint` using the +The HTTP Check Receiver can be used for synthetic checks against HTTP endpoints. This receiver will make a request to the specified `endpoint` using the configured `method`. This scraper generates a metric with a label for each HTTP response status class with a value of `1` if the status code matches the class. For example, the following metrics will be generated if the endpoint returned a `200`: From e33d4cc71e193e5e2967979e078e649fe2dd21d4 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 20:02:21 -0500 Subject: [PATCH 353/450] spelling: target Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- extension/observer/ecsobserver/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extension/observer/ecsobserver/README.md b/extension/observer/ecsobserver/README.md index 78233bdabaec..91f79593dc9e 100644 --- a/extension/observer/ecsobserver/README.md +++ b/extension/observer/ecsobserver/README.md @@ -329,7 +329,7 @@ Additional information from ECS and EC2. - Labels, all the label value are encoded as string. (e.g. strconv.Itoa(123)). - Go struct, all the non string types are converted. labels and tags are passed as `map[string]string` instead of `[]KeyValue` -- Prometheus target, each `taget` +- Prometheus target, each `target` ```go // PrometheusECSTarget contains address and labels extracted from a running ECS task From 38306e1cc8998f4ff5e55e0980c430f9211f2bc0 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 20:07:12 -0500 Subject: [PATCH 354/450] spelling: tasks Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- extension/observer/ecsobserver/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extension/observer/ecsobserver/README.md b/extension/observer/ecsobserver/README.md index 91f79593dc9e..57e7500bfa49 100644 --- a/extension/observer/ecsobserver/README.md +++ b/extension/observer/ecsobserver/README.md @@ -424,7 +424,7 @@ otel's own /metrics. | Name | Type | Description | |--------------------------------------|------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------| | `discovered_targets` | int | Number of targets exported | -| `discovered_taskss` | int | Number of tasks that contains scrape target, should be smaller than targets unless each task only contains one target | +| `discovered_tasks` | int | Number of tasks that contains scrape target, should be smaller than targets unless each task only contains one target | | `ignored_tasks` | int | Tasks ignored by filter, `discovered_tasks` and `ignored_tasks` should add up to `api_ecs_list_task_results`, one exception is API paging failed in the middle | | `targets_matched_by_service` | int | ECS Service name based filter | | `targets_matched_by_task_definition` | int | ECS TaskDefinition based filter | From ed4fa1eede299598e1286d7d8357e8bea24a09da Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 20:07:27 -0500 Subject: [PATCH 355/450] spelling: telemetry Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/otelarrowreceiver/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/otelarrowreceiver/README.md b/receiver/otelarrowreceiver/README.md index 2257de9d5ae9..897b2b12ad5d 100644 --- a/receiver/otelarrowreceiver/README.md +++ b/receiver/otelarrowreceiver/README.md @@ -148,7 +148,7 @@ than the receiver's `max_connection_age_grace` setting, which causes the exporter to cleanly shut down streams, allowing requests to complete before the http/2 connection is forcibly closed. While the exporter will retry data that was in-flight during an unexpected -stream shutdown, instrumentation about the telemety pipeline will show +stream shutdown, instrumentation about the telemetry pipeline will show RPC errors when the exporter's `max_stream_lifetime` is not configured correctly. From ead30dc9683a1e0828e533228200ef70b3034bdc Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 17:59:55 -0500 Subject: [PATCH 356/450] spelling: template Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../metrics_transform_processor_otlp.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/processor/metricstransformprocessor/metrics_transform_processor_otlp.go b/processor/metricstransformprocessor/metrics_transform_processor_otlp.go index d7ec6444e57e..cf6ee289bb86 100644 --- a/processor/metricstransformprocessor/metrics_transform_processor_otlp.go +++ b/processor/metricstransformprocessor/metrics_transform_processor_otlp.go @@ -91,9 +91,9 @@ func (f internalFilterRegexp) submatches(metric pmetric.Metric) []int { return f.include.FindStringSubmatchIndex(metric.Name()) } -func (f internalFilterRegexp) expand(metricTempate, metricName string) string { +func (f internalFilterRegexp) expand(metricTemplate, metricName string) string { if submatches := f.include.FindStringSubmatchIndex(metricName); submatches != nil { - return string(f.include.ExpandString([]byte{}, metricTempate, metricName, submatches)) + return string(f.include.ExpandString([]byte{}, metricTemplate, metricName, submatches)) } return "" } From 41e48791c7c9912340e54a96e33deec4d3db9068 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 18:43:00 -0500 Subject: [PATCH 357/450] spelling: temporality Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- processor/intervalprocessor/README.md | 30 +++++++++++++-------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/processor/intervalprocessor/README.md b/processor/intervalprocessor/README.md index 10debe739740..8659cd76629b 100644 --- a/processor/intervalprocessor/README.md +++ b/processor/intervalprocessor/README.md @@ -51,29 +51,29 @@ intervalprocessor: The following sum metrics come into the processor to be handled -| Timestamp | Metric Name | Aggregation Temporarility | Attributes | Value | -| --------- | ------------ | ------------------------- | ----------------- | ----: | -| 0 | test_metric | Cumulative | labelA: foo | 4.0 | -| 2 | test_metric | Cumulative | labelA: bar | 3.1 | -| 4 | other_metric | Delta | fruitType: orange | 77.4 | -| 6 | test_metric | Cumulative | labelA: foo | 8.2 | -| 8 | test_metric | Cumulative | labelA: foo | 12.8 | -| 10 | test_metric | Cumulative | labelA: bar | 6.4 | +| Timestamp | Metric Name | Aggregation Temporality | Attributes | Value | +| --------- | ------------ | ----------------------- | ----------------- | ----: | +| 0 | test_metric | Cumulative | labelA: foo | 4.0 | +| 2 | test_metric | Cumulative | labelA: bar | 3.1 | +| 4 | other_metric | Delta | fruitType: orange | 77.4 | +| 6 | test_metric | Cumulative | labelA: foo | 8.2 | +| 8 | test_metric | Cumulative | labelA: foo | 12.8 | +| 10 | test_metric | Cumulative | labelA: bar | 6.4 | The processor would immediately pass the following metrics to the next processor in the chain -| Timestamp | Metric Name | Aggregation Temporarility | Attributes | Value | -| --------- | ------------ | ------------------------- | ----------------- | ----: | -| 4 | other_metric | Delta | fruitType: orange | 77.4 | +| Timestamp | Metric Name | Aggregation Temporality | Attributes | Value | +| --------- | ------------ | ----------------------- | ----------------- | ----: | +| 4 | other_metric | Delta | fruitType: orange | 77.4 | Because it's a Delta metric. At the next `interval` (15s by default), the processor would pass the following metrics to the next processor in the chain -| Timestamp | Metric Name | Aggregation Temporarility | Attributes | Value | -| --------- | ----------- | ------------------------- | ----------- | ----: | -| 8 | test_metric | Cumulative | labelA: foo | 12.8 | -| 10 | test_metric | Cumulative | labelA: bar | 6.4 | +| Timestamp | Metric Name | Aggregation Temporality | Attributes | Value | +| --------- | ----------- | ----------------------- | ----------- | ----: | +| 8 | test_metric | Cumulative | labelA: foo | 12.8 | +| 10 | test_metric | Cumulative | labelA: bar | 6.4 | > [!IMPORTANT] > After exporting, any internal state is cleared. So if no new metrics come in, the next interval will export nothing. From a5dd3916febb2ad9af4139c79086457198d18f7c Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 21:15:38 -0500 Subject: [PATCH 358/450] spelling: testbed Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d97ef9469382..d33034d0b2d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -154,7 +154,7 @@ If you are looking for developer-facing changes, check out [CHANGELOG-API.md](./ - `signaltometrics`: Add config validation and custom OTTL functions (#35930) Adds config validation for the signal to metrics connector. Also introduces `AdjustedCount` OTTL function. - `testbed`: Add batcher performance tests (#36206) -- `tesbed`: add options for retry/storage for filelog sender (#36781) +- `testbed`: add options for retry/storage for filelog sender (#36781) ### 🧰 Bug fixes 🧰 From 7bf1857c9fec8d274aed91ec5bedca1da21e263a Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 3 Jan 2025 09:58:38 -0500 Subject: [PATCH 359/450] spelling: that Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- extension/sigv4authextension/design.md | 2 +- .../internal/scraper/githubscraper/schema.graphql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extension/sigv4authextension/design.md b/extension/sigv4authextension/design.md index 795269d5db9b..d874159e020f 100644 --- a/extension/sigv4authextension/design.md +++ b/extension/sigv4authextension/design.md @@ -295,7 +295,7 @@ We take a closer look at the performance of `RoundTrip()`, since it will be heav First, we obtain the body. This should not have an impact on runtime performance or memory performance as we do not expect to handle http requests that are exponentially large in size*. `body` is necessary as it is passed into the `Sign()` method later. -**Note that OTEL does not limit the size of HTTP requests, except if the exporters themselves set a limit. No information could be found on the size of AWS API requests either. If the request body is exponentially large it could affect performance but it is a reasonably safe assumption that that will not be the case.* +**Note that OTEL does not limit the size of HTTP requests, except if the exporters themselves set a limit. No information could be found on the size of AWS API requests either. If the request body is exponentially large it could affect performance but it is a reasonably safe assumption that will not be the case.* ```go diff --git a/receiver/githubreceiver/internal/scraper/githubscraper/schema.graphql b/receiver/githubreceiver/internal/scraper/githubscraper/schema.graphql index 8cae6d5e2405..7c9a2aaa8c68 100644 --- a/receiver/githubreceiver/internal/scraper/githubscraper/schema.graphql +++ b/receiver/githubreceiver/internal/scraper/githubscraper/schema.graphql @@ -23903,7 +23903,7 @@ input Environments { "The direction in which to order environments by the specified field." direction: OrderDirection! } -"A command to add a file at the given path with the given contents as part of a commit. Any existing file at that that path will be replaced." +"A command to add a file at the given path with the given contents as part of a commit. Any existing file at that path will be replaced." input FileAddition { "The path in the repository where the file will be located" path: String! From 7c5d6de68b71d376277ef84e26dcfff90c832511 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 3 Jan 2025 09:58:46 -0500 Subject: [PATCH 360/450] spelling: the Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- exporter/otelarrowexporter/README.md | 2 +- exporter/otelarrowexporter/internal/arrow/bestofn.go | 2 +- pkg/datadog/config/metrics.go | 2 +- pkg/sampling/w3ctracestate.go | 2 +- pkg/stanza/docs/types/parsers.md | 4 ++-- pkg/stanza/fileconsumer/file_test.go | 2 +- .../provider/maxmindprovider/testdata/generate_db.go | 2 +- processor/k8sattributesprocessor/README.md | 2 +- .../k8sattributesprocessor/internal/kube/client.go | 2 +- processor/metricstransformprocessor/config.go | 2 +- .../internal/unmarshaler/cwlog/logsbuilder.go | 2 +- .../internal/scraper/githubscraper/schema.graphql | 12 ++++++------ receiver/jmxreceiver/config.go | 2 +- receiver/otelarrowreceiver/README.md | 2 +- receiver/sapmreceiver/trace_receiver.go | 2 +- 16 files changed, 22 insertions(+), 22 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d33034d0b2d4..a95aab854606 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1153,7 +1153,7 @@ This release fixes CVE-2024-42368 on the `bearerauthtokenextension` (#34516) - `pkg/ottl`: Added Hex() converter function (#31929) - `pkg/ottl`: Add IsRootSpan() converter function. (#32918) - Converter `IsRootSpan()` returns `true` if the span in the corresponding context is root, that means its `parent_span_id` equals to hexadecimal representation of zero. In all other scenarios function returns `false`. + Converter `IsRootSpan()` returns `true` if the span in the corresponding context is root, that means its `parent_span_id` equals the hexadecimal representation of zero. In all other scenarios function returns `false`. - `vcenterreceiver`: Adds additional vCenter resource pool metrics and a memory_usage_type attribute for vcenter.resource_pool.memory.usage metric to use. (#33607) Added "vcenter.resource_pool.memory.swapped", "vcenter.resource_pool.memory.ballooned", and "vcenter.resource_pool.memory.granted" metrics. Also added an additional attribute, "memory_usage_type" for "vcenter.resource_pool.memory.usage" metric, which is diff --git a/exporter/otelarrowexporter/README.md b/exporter/otelarrowexporter/README.md index 2be2a1c4b069..44d11d98e2e3 100644 --- a/exporter/otelarrowexporter/README.md +++ b/exporter/otelarrowexporter/README.md @@ -187,7 +187,7 @@ receivers: ### Exporter metrics -In addition to the the standard +In addition to the standard [exporterhelper](https://github.com/open-telemetry/opentelemetry-collector/blob/main/exporter/exporterhelper/README.md) and [obsreport](https://pkg.go.dev/go.opentelemetry.io/collector/obsreport) diff --git a/exporter/otelarrowexporter/internal/arrow/bestofn.go b/exporter/otelarrowexporter/internal/arrow/bestofn.go index ae176dfd5470..d65f3f6c3f1b 100644 --- a/exporter/otelarrowexporter/internal/arrow/bestofn.go +++ b/exporter/otelarrowexporter/internal/arrow/bestofn.go @@ -71,7 +71,7 @@ func newBestOfNPrioritizer(dc doneCancel, numChoices, numStreams int, lf loadFun } for i := 0; i < numStreams; i++ { - // TODO It's not clear if/when the the prioritizer can + // TODO It's not clear if/when the prioritizer can // become a bottleneck. go lp.run() } diff --git a/pkg/datadog/config/metrics.go b/pkg/datadog/config/metrics.go index c17a148af8e4..17466f9e631c 100644 --- a/pkg/datadog/config/metrics.go +++ b/pkg/datadog/config/metrics.go @@ -186,7 +186,7 @@ func (sm *SummaryMode) UnmarshalText(in []byte) error { // SummaryConfig customizes export of OTLP Summaries. type SummaryConfig struct { - // Mode is the the mode for exporting OTLP Summaries. + // Mode is the mode for exporting OTLP Summaries. // Valid values are 'noquantiles' or 'gauges'. // - 'noquantiles' sends no `.quantile` metrics. `.sum` and `.count` metrics will still be sent. // - 'gauges' sends `.quantile` metrics as gauges tagged by the quantile. diff --git a/pkg/sampling/w3ctracestate.go b/pkg/sampling/w3ctracestate.go index a0ebac614d6a..284a900c4f94 100644 --- a/pkg/sampling/w3ctracestate.go +++ b/pkg/sampling/w3ctracestate.go @@ -10,7 +10,7 @@ import ( "strings" ) -// W3CTraceState represents the a parsed W3C `tracestate` header. +// W3CTraceState represents the parsed W3C `tracestate` header. // // This type receives and passes through `tracestate` fields defined // by all vendors, while it parses and validates the diff --git a/pkg/stanza/docs/types/parsers.md b/pkg/stanza/docs/types/parsers.md index d3a7e195e275..fcaccef2e8d6 100644 --- a/pkg/stanza/docs/types/parsers.md +++ b/pkg/stanza/docs/types/parsers.md @@ -5,7 +5,7 @@ Parser operators are used to isolate values from a string. There are two classes ### Simple Parsers Simple parsers perform a very specific operation where the result is assigned to a predetermined field in the log data model. -For example, the [`time_parser`](../operators/time_parser.md) will parse a timestamp and assign it to the a log record's `Timestamp` field. +For example, the [`time_parser`](../operators/time_parser.md) will parse a timestamp and assign it to the log record's `Timestamp` field. List of simple parsers: - [`time_parser`](../operators/time_parser.md) @@ -53,4 +53,4 @@ List of embeddable operations: - [`severity`](./severity.md) - [`trace`](./trace.md) - [`scope_name`](./scope_name.md) -- `body`: A field that should be assigned to a the log body. +- `body`: A field that should be assigned to the log body. diff --git a/pkg/stanza/fileconsumer/file_test.go b/pkg/stanza/fileconsumer/file_test.go index 453bd7c1e989..0fcea8a2b64d 100644 --- a/pkg/stanza/fileconsumer/file_test.go +++ b/pkg/stanza/fileconsumer/file_test.go @@ -467,7 +467,7 @@ func TestMultipleEmpty(t *testing.T) { sink.ExpectNoCallsUntil(t, time.Second) } -// TestLeadingEmpty tests that the the operator handles a leading +// TestLeadingEmpty tests that the operator handles a leading // newline, and does not read the file multiple times func TestLeadingEmpty(t *testing.T) { t.Parallel() diff --git a/processor/geoipprocessor/internal/provider/maxmindprovider/testdata/generate_db.go b/processor/geoipprocessor/internal/provider/maxmindprovider/testdata/generate_db.go index 335713f2deec..10fc2f5f3779 100644 --- a/processor/geoipprocessor/internal/provider/maxmindprovider/testdata/generate_db.go +++ b/processor/geoipprocessor/internal/provider/maxmindprovider/testdata/generate_db.go @@ -10,7 +10,7 @@ import ( "github.com/maxmind/MaxMind-DB/pkg/writer" ) -// GenerateLocalDB generates *.mmdb databases files given a source directory data. It uses a the writer functionality provided by MaxMind-Db/pkg/writer +// GenerateLocalDB generates *.mmdb databases files given a source directory data. It uses the writer functionality provided by MaxMind-Db/pkg/writer func GenerateLocalDB(t *testing.T, sourceData string) string { tmpDir, err := os.MkdirTemp("", "") if err != nil { diff --git a/processor/k8sattributesprocessor/README.md b/processor/k8sattributesprocessor/README.md index f86d1959a714..425bef183f4a 100644 --- a/processor/k8sattributesprocessor/README.md +++ b/processor/k8sattributesprocessor/README.md @@ -498,7 +498,7 @@ The following config with the feature gate set will lead to validation error: #### Migration -Deprecation of the `extract.annotations.regex` and `extract.labels.regex` fields means that it is recommended to use the `ExtractPatterns` function from the transform processor instead. To convert your current configuration please check the `ExtractPatterns` function [documentation](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/pkg/ottl/ottlfuncs#extractpatterns). You should use the `pattern` parameter of `ExtractPatterns` instead of using the the `extract.annotations.regex` and `extract.labels.regex` fields. +Deprecation of the `extract.annotations.regex` and `extract.labels.regex` fields means that it is recommended to use the `ExtractPatterns` function from the transform processor instead. To convert your current configuration please check the `ExtractPatterns` function [documentation](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/pkg/ottl/ottlfuncs#extractpatterns). You should use the `pattern` parameter of `ExtractPatterns` instead of using the `extract.annotations.regex` and `extract.labels.regex` fields. ##### Example diff --git a/processor/k8sattributesprocessor/internal/kube/client.go b/processor/k8sattributesprocessor/internal/kube/client.go index a589d5a1c1f5..3e38cafeaaef 100644 --- a/processor/k8sattributesprocessor/internal/kube/client.go +++ b/processor/k8sattributesprocessor/internal/kube/client.go @@ -273,7 +273,7 @@ func (c *WatchClient) Start() error { return nil } -// Stop signals the the k8s watcher/informer to stop watching for new events. +// Stop signals the k8s watcher/informer to stop watching for new events. func (c *WatchClient) Stop() { close(c.stopCh) } diff --git a/processor/metricstransformprocessor/config.go b/processor/metricstransformprocessor/config.go index c4f54f03d433..d86493b97a28 100644 --- a/processor/metricstransformprocessor/config.go +++ b/processor/metricstransformprocessor/config.go @@ -168,7 +168,7 @@ func (ca ConfigAction) isValid() bool { return false } -// operationAction is the enum to capture the thress types of actions to perform for an operation. +// operationAction is the enum to capture the types of actions to perform for an operation. type operationAction string const ( diff --git a/receiver/awsfirehosereceiver/internal/unmarshaler/cwlog/logsbuilder.go b/receiver/awsfirehosereceiver/internal/unmarshaler/cwlog/logsbuilder.go index 5dc7a3db59f8..6b6a91141fbc 100644 --- a/receiver/awsfirehosereceiver/internal/unmarshaler/cwlog/logsbuilder.go +++ b/receiver/awsfirehosereceiver/internal/unmarshaler/cwlog/logsbuilder.go @@ -21,7 +21,7 @@ type resourceAttributes struct { owner, logGroup, logStream string } -// resourceLogsBuilder provides convenient access to the a Resource's LogRecordSlice. +// resourceLogsBuilder provides convenient access to the Resource's LogRecordSlice. type resourceLogsBuilder struct { rls plog.LogRecordSlice } diff --git a/receiver/githubreceiver/internal/scraper/githubscraper/schema.graphql b/receiver/githubreceiver/internal/scraper/githubscraper/schema.graphql index 7c9a2aaa8c68..53fa5b0c4438 100644 --- a/receiver/githubreceiver/internal/scraper/githubscraper/schema.graphql +++ b/receiver/githubreceiver/internal/scraper/githubscraper/schema.graphql @@ -4995,7 +4995,7 @@ type Issue implements Node & Assignable & Closable & Comment & Deletable & Updat projectV2("The project number." number: Int!): ProjectV2 "A list of projects under the owner." projectsV2( - "A project to search for under the the owner." + "A project to search for under the owner." query: String "How to order the returned projects." orderBy: ProjectV2Order = { field: NUMBER, direction: DESC } @@ -8917,7 +8917,7 @@ type Organization implements Node & Actor & PackageOwner & ProjectOwner & Projec projectsUrl: URI! "A list of projects under the owner." projectsV2( - "A project to search for under the the owner." + "A project to search for under the owner." query: String "How to order the returned projects." orderBy: ProjectV2Order = { field: NUMBER, direction: DESC } @@ -11120,7 +11120,7 @@ type PullRequest implements Node & Assignable & Closable & Comment & Updatable & projectV2("The project number." number: Int!): ProjectV2 "A list of projects under the owner." projectsV2( - "A project to search for under the the owner." + "A project to search for under the owner." query: String "How to order the returned projects." orderBy: ProjectV2Order = { field: NUMBER, direction: DESC } @@ -17778,7 +17778,7 @@ type User implements Node & Actor & PackageOwner & ProjectOwner & ProjectV2Owner projectsUrl: URI! "A list of projects under the owner." projectsV2( - "A project to search for under the the owner." + "A project to search for under the owner." query: String "How to order the returned projects." orderBy: ProjectV2Order = { field: NUMBER, direction: DESC } @@ -18867,7 +18867,7 @@ interface ProjectV2Owner { projectV2("The project number." number: Int!): ProjectV2 "A list of projects under the owner." projectsV2( - "A project to search for under the the owner." + "A project to search for under the owner." query: String "How to order the returned projects." orderBy: ProjectV2Order = { field: NUMBER, direction: DESC } @@ -23948,7 +23948,7 @@ with a newline. ### Modeling file changes -Each of the the five types of conceptual changes that can be made in a +Each of the five types of conceptual changes that can be made in a git commit can be described using the `FileChanges` type as follows: 1. New file addition: create file `hello world\n` at path `docs/README.txt`: diff --git a/receiver/jmxreceiver/config.go b/receiver/jmxreceiver/config.go index c1771aa4c231..a209cd20469f 100644 --- a/receiver/jmxreceiver/config.go +++ b/receiver/jmxreceiver/config.go @@ -54,7 +54,7 @@ type Config struct { RemoteProfile string `mapstructure:"remote_profile"` // The SASL/DIGEST-MD5 realm Realm string `mapstructure:"realm"` - // Array of additional JARs to be added to the the class path when launching the JMX Metric Gatherer JAR + // Array of additional JARs to be added to the class path when launching the JMX Metric Gatherer JAR AdditionalJars []string `mapstructure:"additional_jars"` // Map of resource attributes used by the Java SDK Autoconfigure to set resource attributes ResourceAttributes map[string]string `mapstructure:"resource_attributes"` diff --git a/receiver/otelarrowreceiver/README.md b/receiver/otelarrowreceiver/README.md index 897b2b12ad5d..68bca5ec6625 100644 --- a/receiver/otelarrowreceiver/README.md +++ b/receiver/otelarrowreceiver/README.md @@ -171,7 +171,7 @@ exporters: ### Receiver metrics -In addition to the the standard +In addition to the standard [obsreport](https://pkg.go.dev/go.opentelemetry.io/collector/obsreport) metrics, this component provides network-level measurement instruments measuring bytes transported. At the `normal` level of metrics detail: diff --git a/receiver/sapmreceiver/trace_receiver.go b/receiver/sapmreceiver/trace_receiver.go index 26d5243b5611..5de2ecc1cd0a 100644 --- a/receiver/sapmreceiver/trace_receiver.go +++ b/receiver/sapmreceiver/trace_receiver.go @@ -171,7 +171,7 @@ func (sr *sapmReceiver) Start(ctx context.Context, host component.Host) error { return nil } -// Shutdown stops the the sapmReceiver's server. +// Shutdown stops the sapmReceiver's server. func (sr *sapmReceiver) Shutdown(context.Context) error { if sr.server == nil { return nil From 9a8ea4adc05f955a5511dd79f29474f9930849ed Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 21:28:26 -0500 Subject: [PATCH 361/450] spelling: throughput Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a95aab854606..bd019a221743 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5286,7 +5286,7 @@ This version has been skipped. - `vcenter.host.disk.latency.avg.read` - `vcenter.host.disk.latency.avg.write` - `vcenter.host.network.throughput` will become: - - `vcenter.host.network.throughputt.receive` + - `vcenter.host.network.throughput.receive` - `vcenter.host.network.throughput.transmit` - `vcenter.host.network.packet.errors` will become: - `vcenter.host.network.packet.errors.receive` From 74c06740e579b82a10783c5fbb4d6abd24fe8fed Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 21:28:44 -0500 Subject: [PATCH 362/450] spelling: timeout Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/carbonreceiver/config.go | 2 +- receiver/wavefrontreceiver/config.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/receiver/carbonreceiver/config.go b/receiver/carbonreceiver/config.go index 7e3e6be2c991..d3b6ccdf70f1 100644 --- a/receiver/carbonreceiver/config.go +++ b/receiver/carbonreceiver/config.go @@ -19,7 +19,7 @@ var _ component.ConfigValidator = (*Config)(nil) type Config struct { confignet.AddrConfig `mapstructure:",squash"` - // TCPIdleTimeout is the timout for idle TCP connections, it is ignored + // TCPIdleTimeout is the timeout for idle TCP connections, it is ignored // if transport being used is UDP. TCPIdleTimeout time.Duration `mapstructure:"tcp_idle_timeout"` diff --git a/receiver/wavefrontreceiver/config.go b/receiver/wavefrontreceiver/config.go index 4f5d4b73eff6..496e65123ab6 100644 --- a/receiver/wavefrontreceiver/config.go +++ b/receiver/wavefrontreceiver/config.go @@ -14,7 +14,7 @@ import ( type Config struct { confignet.TCPAddrConfig `mapstructure:",squash"` - // TCPIdleTimeout is the timout for idle TCP connections. + // TCPIdleTimeout is the timeout for idle TCP connections. TCPIdleTimeout time.Duration `mapstructure:"tcp_idle_timeout"` // ExtractCollectdTags instructs the Wavefront receiver to attempt to extract From c5a0c7c08288521aa4f2fddfd20a6c7d0dd510d6 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 18:02:27 -0500 Subject: [PATCH 363/450] spelling: traces Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/googlecloudpubsubexporter/watermark_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/googlecloudpubsubexporter/watermark_test.go b/exporter/googlecloudpubsubexporter/watermark_test.go index f01ad2814b61..82b838b408c0 100644 --- a/exporter/googlecloudpubsubexporter/watermark_test.go +++ b/exporter/googlecloudpubsubexporter/watermark_test.go @@ -95,7 +95,7 @@ func TestEarliestLogsWatermarkOutDrift(t *testing.T) { assert.Equal(t, tsBefore1m, out) } -func TestEarliestTracessWatermarkInDrift(t *testing.T) { +func TestEarliestTracesWatermarkInDrift(t *testing.T) { out := earliestTracesWatermark(tracesData, tsRef, time.Hour) assert.Equal(t, tsBefore5m, out) } From fbeec37ea3b5021a5409ea4c5d96f6a9b4f2ed6b Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 18:03:31 -0500 Subject: [PATCH 364/450] spelling: transient Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/awskinesisexporter/internal/producer/batcher_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exporter/awskinesisexporter/internal/producer/batcher_test.go b/exporter/awskinesisexporter/internal/producer/batcher_test.go index 9fd08c869139..f9b61e0eee17 100644 --- a/exporter/awskinesisexporter/internal/producer/batcher_test.go +++ b/exporter/awskinesisexporter/internal/producer/batcher_test.go @@ -49,7 +49,7 @@ func HardFailedPutRecordsOperation(r *kinesis.PutRecordsInput) (*kinesis.PutReco &types.ResourceNotFoundException{Message: aws.String("testing incorrect kinesis configuration")} } -func TransiantPutRecordsOperation(recoverAfter int) func(_ *kinesis.PutRecordsInput) (*kinesis.PutRecordsOutput, error) { +func TransientPutRecordsOperation(recoverAfter int) func(_ *kinesis.PutRecordsInput) (*kinesis.PutRecordsOutput, error) { attempt := 0 return func(r *kinesis.PutRecordsInput) (*kinesis.PutRecordsOutput, error) { if attempt < recoverAfter { @@ -74,7 +74,7 @@ func TestBatchedExporter(t *testing.T) { }{ {name: "Successful put to kinesis", PutRecordsOP: SuccessfulPutRecordsOperation, shouldErr: false, isPermanent: false}, {name: "Invalid kinesis configuration", PutRecordsOP: HardFailedPutRecordsOperation, shouldErr: true, isPermanent: true}, - {name: "Test throttled kinesis operation", PutRecordsOP: TransiantPutRecordsOperation(2), shouldErr: true, isPermanent: false}, + {name: "Test throttled kinesis operation", PutRecordsOP: TransientPutRecordsOperation(2), shouldErr: true, isPermanent: false}, } bt := batch.New() From 03929114e18e7d6c42ba4d2f9ca2a5045b8ace24 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 18:02:56 -0500 Subject: [PATCH 365/450] spelling: translate Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- processor/sumologicprocessor/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/processor/sumologicprocessor/config.go b/processor/sumologicprocessor/config.go index ec38c01da927..4c7c3ee55608 100644 --- a/processor/sumologicprocessor/config.go +++ b/processor/sumologicprocessor/config.go @@ -26,7 +26,7 @@ const ( defaultAddCloudNamespace = true defaultTranslateAttributes = true defaultTranslateTelegrafAttributes = true - defaultTranlateDockerMetrics = false + defaultTranslateDockerMetrics = false // Nesting processor default config defaultNestingEnabled = false @@ -72,7 +72,7 @@ func createDefaultConfig() component.Config { SpanIDAttribute: &logFieldAttribute{defaultAddSpanIDAttribute, SpanIDAttributeName}, TraceIDAttribute: &logFieldAttribute{defaultAddTraceIDAttribute, TraceIDAttributeName}, }, - TranslateDockerMetrics: defaultTranlateDockerMetrics, + TranslateDockerMetrics: defaultTranslateDockerMetrics, } } From 6957f87de4ad2db7d388c59c688db99589bfc2e8 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 21:29:47 -0500 Subject: [PATCH 366/450] spelling: truncatable Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../internal/sampling/string_tag_filter.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/processor/tailsamplingprocessor/internal/sampling/string_tag_filter.go b/processor/tailsamplingprocessor/internal/sampling/string_tag_filter.go index 24a95a5c8882..02f965af8bd5 100644 --- a/processor/tailsamplingprocessor/internal/sampling/string_tag_filter.go +++ b/processor/tailsamplingprocessor/internal/sampling/string_tag_filter.go @@ -111,8 +111,8 @@ func (saf *stringAttributeFilter) Evaluate(_ context.Context, _ pcommon.TraceID, }, func(span ptrace.Span) bool { if v, ok := span.Attributes().Get(saf.key); ok { - truncableStr := v.Str() - if len(truncableStr) > 0 { + truncatableStr := v.Str() + if len(truncatableStr) > 0 { if ok := saf.matcher(v.Str()); ok { return false } @@ -135,8 +135,8 @@ func (saf *stringAttributeFilter) Evaluate(_ context.Context, _ pcommon.TraceID, }, func(span ptrace.Span) bool { if v, ok := span.Attributes().Get(saf.key); ok { - truncableStr := v.Str() - if len(truncableStr) > 0 { + truncatableStr := v.Str() + if len(truncatableStr) > 0 { if ok := saf.matcher(v.Str()); ok { return true } From ca2ecb525c15bd65063826d662a22b85ef527d0a Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 21:30:10 -0500 Subject: [PATCH 367/450] spelling: truncation Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/awss3exporter/internal/upload/partition_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/awss3exporter/internal/upload/partition_test.go b/exporter/awss3exporter/internal/upload/partition_test.go index 9f316dc8199b..175388c7c6c7 100644 --- a/exporter/awss3exporter/internal/upload/partition_test.go +++ b/exporter/awss3exporter/internal/upload/partition_test.go @@ -89,7 +89,7 @@ func TestPartitionKeyInputsBucketPrefix(t *testing.T) { expect: "/year=2024/month=01/day=24/hour=06/minute=40", }, { - name: "unknown partition trunction value", + name: "unknown partition truncation value", inputs: &PartitionKeyBuilder{ PartitionTruncation: "weekly", }, From f06051380460f1467fa548111debc86b643a484b Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 21:34:10 -0500 Subject: [PATCH 368/450] spelling: uint Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bd019a221743..ff2e16d66e35 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2912,7 +2912,7 @@ This release fixes CVE-2024-42368 on the `bearerauthtokenextension` (#34516) - `receiver/kubeletstats`: Fixes client to refresh service account token when authenticating with kubelet (#26120) - `datadogexporter`: Fixes crash when mapping OTLP Exponential Histograms with no buckets. These will now be dropped instead. (#26103) - `filelogreceiver`: Fix the behavior of the add operator to continue to support EXPR(env("MY_ENV_VAR")) expressions (#26373) -- `snmpreceiver`: SNMP values of type Counter64 were seen as unsupported, because the returned data type unint64 was unhandeled. (#23897, #26119) +- `snmpreceiver`: SNMP values of type Counter64 were seen as unsupported, because the returned data type uint64 was unhandeled. (#23897, #26119) - `pkg/stanza`: Fix issue unsupported type 'syslog_parser' (#26452) ## v0.84.0 From c46211f63a91c378a73f0ab4767b092a67f1c1d8 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 18:03:59 -0500 Subject: [PATCH 369/450] spelling: unacked Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/solacereceiver/factory.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/receiver/solacereceiver/factory.go b/receiver/solacereceiver/factory.go index f0d59e55802f..c877393ac498 100644 --- a/receiver/solacereceiver/factory.go +++ b/receiver/solacereceiver/factory.go @@ -17,8 +17,8 @@ import ( ) const ( - // default value for max unaked messages - defaultMaxUnaked int32 = 1000 + // default value for max unacked messages + defaultMaxUnacked int32 = 1000 // default value for host defaultHost string = "localhost:5671" ) @@ -36,7 +36,7 @@ func NewFactory() receiver.Factory { func createDefaultConfig() component.Config { return &Config{ Broker: []string{defaultHost}, - MaxUnacked: defaultMaxUnaked, + MaxUnacked: defaultMaxUnacked, Auth: Authentication{}, TLS: configtls.ClientConfig{ InsecureSkipVerify: false, From c86bd50238704620ba3249245eae873653944c44 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 18:04:10 -0500 Subject: [PATCH 370/450] spelling: unauthorized Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- extension/sumologicextension/extension_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extension/sumologicextension/extension_test.go b/extension/sumologicextension/extension_test.go index 58e3b169a246..80003bb64abc 100644 --- a/extension/sumologicextension/extension_test.go +++ b/extension/sumologicextension/extension_test.go @@ -1272,7 +1272,7 @@ func TestRegistrationRedirect(t *testing.T) { }) } -func TestCollectorReregistersAfterHTTPUnathorizedFromHeartbeat(t *testing.T) { +func TestCollectorReregistersAfterHTTPUnauthorizedFromHeartbeat(t *testing.T) { t.Parallel() var reqCount int32 From d5bce6abafe706f13738690cb95c1ae02d74eba4 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 3 Jan 2025 09:58:59 -0500 Subject: [PATCH 371/450] spelling: under Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- processor/metricstransformprocessor/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/processor/metricstransformprocessor/README.md b/processor/metricstransformprocessor/README.md index 767e0b1b45df..c4b87e17307a 100644 --- a/processor/metricstransformprocessor/README.md +++ b/processor/metricstransformprocessor/README.md @@ -311,7 +311,7 @@ operations: ```yaml # Group metrics from one single ResourceMetrics and report them as multiple ResourceMetrics. # -# ex: Consider pod and container metrics collected from Kubernetes. Both the metrics are recorded under under one ResourceMetric +# ex: Consider pod and container metrics collected from Kubernetes. Both the metrics are recorded under one ResourceMetric # applying this transformation will result in two separate ResourceMetric packets with corresponding resource labels in the resource headers # # instead of regular $ use double dollar $$. Because $ is treated as a special character. From 6577a8fbfca9c0ee46b93c31421c8c1d5d3e20f8 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 18:04:24 -0500 Subject: [PATCH 372/450] spelling: uniform Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../func_convert_exponential_hist_to_explicit_hist_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/processor/transformprocessor/internal/metrics/func_convert_exponential_hist_to_explicit_hist_test.go b/processor/transformprocessor/internal/metrics/func_convert_exponential_hist_to_explicit_hist_test.go index a861869eeec2..4aede94561f5 100644 --- a/processor/transformprocessor/internal/metrics/func_convert_exponential_hist_to_explicit_hist_test.go +++ b/processor/transformprocessor/internal/metrics/func_convert_exponential_hist_to_explicit_hist_test.go @@ -448,7 +448,7 @@ func TestMidpoint_convert_exponential_hist_to_explicit_hist(t *testing.T) { } } -func TestUniforn_convert_exponential_hist_to_explicit_hist(t *testing.T) { +func TestUniform_convert_exponential_hist_to_explicit_hist(t *testing.T) { ts := pcommon.NewTimestampFromTime(time.Now()) defaultTestMetric := func() pmetric.Metric { m := pmetric.NewMetric() From 2e9166b9bf2bf4fb9d2945213d768d7968e10620 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 21:34:24 -0500 Subject: [PATCH 373/450] spelling: unmarshal Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/awsxrayreceiver/internal/translator/translator_test.go | 2 +- receiver/kubeletstatsreceiver/config.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/receiver/awsxrayreceiver/internal/translator/translator_test.go b/receiver/awsxrayreceiver/internal/translator/translator_test.go index 2bd68cfffea7..309bcb72842d 100644 --- a/receiver/awsxrayreceiver/internal/translator/translator_test.go +++ b/receiver/awsxrayreceiver/internal/translator/translator_test.go @@ -968,7 +968,7 @@ func TestTranslation(t *testing.T) { err = json.Unmarshal(content, &actualSeg) // the correctness of the actual segment // has been verified in the tracesegment_test.go - assert.NoError(t, err, "failed to unmarhal raw segment") + assert.NoError(t, err, "failed to unmarshal raw segment") expectedRs = initResourceSpans(t, &actualSeg, tc.expectedResourceAttrs(&actualSeg), diff --git a/receiver/kubeletstatsreceiver/config.go b/receiver/kubeletstatsreceiver/config.go index 975cd241bf20..e541f981ebc3 100644 --- a/receiver/kubeletstatsreceiver/config.go +++ b/receiver/kubeletstatsreceiver/config.go @@ -110,7 +110,7 @@ func (cfg *Config) Unmarshal(componentParser *confmap.Conf) error { return err } - // custom unmarhalling is required to get []kubelet.MetricGroup, the default + // custom unmarshalling is required to get []kubelet.MetricGroup, the default // unmarshaller does not correctly overwrite slices. if !componentParser.IsSet(metricGroupsConfig) { cfg.MetricGroupsToCollect = defaultMetricGroups From 9680833b7f18ca12ea669c921ae40106cd76fc94 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 18:04:33 -0500 Subject: [PATCH 374/450] spelling: unmarshaller Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/solacereceiver/unmarshaller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/solacereceiver/unmarshaller.go b/receiver/solacereceiver/unmarshaller.go index f99b35f6a795..c65486c65489 100644 --- a/receiver/solacereceiver/unmarshaller.go +++ b/receiver/solacereceiver/unmarshaller.go @@ -25,7 +25,7 @@ type tracesUnmarshaller interface { unmarshal(message *inboundMessage) (ptrace.Traces, error) } -// newUnmarshalleer returns a new unmarshaller ready for message unmarshalling +// newUnmarshaller returns a new unmarshaller ready for message unmarshalling func newTracesUnmarshaller(logger *zap.Logger, telemetryBuilder *metadata.TelemetryBuilder, metricAttrs attribute.Set) tracesUnmarshaller { return &solaceTracesUnmarshaller{ logger: logger, From def4ce8b54f9711f60fd72947f2b64cbf0ed6b36 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 20:46:41 -0500 Subject: [PATCH 375/450] spelling: uri Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ff2e16d66e35..6ee77e7f03e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1436,7 +1436,7 @@ This release fixes CVE-2024-42368 on the `bearerauthtokenextension` (#34516) - `OTel-Arrow`: Update to OTel-Arrow v0.24.0 (#26491) - `pkg/ottl`: Add debug logs to help troubleshoot OTTL statements/conditions (#33274) - `pkg/ottl`: Introducing `append` function for appending items into an existing array (#32141) -- `pkg/ottl`: Introducing `Uri` converter parsing URI string into SemConv (#32433) +- `pkg/ottl`: Introducing `URI` converter parsing URI string into SemConv (#32433) - `probabilisticsamplerprocessor`: Add Proportional and Equalizing sampling modes (#31918) Both the existing hash_seed mode and the two new modes use OTEP 235 semantic conventions to encode sampling probability. - `prometheusreceiver`: Resource attributes produced by the prometheus receiver now include stable semantic conventions for `server` and `url`. (#32814) From 0ed9db6b9648e13248c1402b72738bc56e376a9b Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sat, 4 Jan 2025 23:02:01 -0500 Subject: [PATCH 376/450] spelling: url Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- processor/schemaprocessor/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/processor/schemaprocessor/README.md b/processor/schemaprocessor/README.md index 93af6889ffed..1459e163e90e 100644 --- a/processor/schemaprocessor/README.md +++ b/processor/schemaprocessor/README.md @@ -26,7 +26,7 @@ the translations needed for signals that match the schema URL. ## Schema Formats -A schema URl is made up in two parts, _Schema Family_ and _Schema Version_, the schema URL is broken down like so: +A schema URL is made up in two parts, _Schema Family_ and _Schema Version_, the schema URL is broken down like so: ```text | Schema URL | From 954bcf1eb10a082c2fbe5f88468e025594aded9d Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 21:30:24 -0500 Subject: [PATCH 377/450] spelling: used Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/snmpreceiver/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/snmpreceiver/config.go b/receiver/snmpreceiver/config.go index d717122f1099..d7c9992672d1 100644 --- a/receiver/snmpreceiver/config.go +++ b/receiver/snmpreceiver/config.go @@ -164,7 +164,7 @@ type AttributeConfig struct { // This contains a list of possible values that can be associated with this attribute Enum []string `mapstructure:"enum"` // OID is required only if Enum and IndexedValuePrefix are not defined. - // This is the column OID which will provide indexed values to be uased for this attribute (alongside a metric with ColumnOIDs) + // This is the column OID which will provide indexed values to be used for this attribute (alongside a metric with ColumnOIDs) OID string `mapstructure:"oid"` // IndexedValuePrefix is required only if Enum and OID are not defined. // This is used alongside metrics with ColumnOIDs to assign attribute values using this prefix + the OID index of the metric value From bdd2b314a5e9ad6a52d7f2f04fd2699eceb47f4a Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 21:37:47 -0500 Subject: [PATCH 378/450] spelling: user Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/experimentalmetricmetadata/metadata.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/experimentalmetricmetadata/metadata.go b/pkg/experimentalmetricmetadata/metadata.go index 3cbf15df4515..aa56895dc3b1 100644 --- a/pkg/experimentalmetricmetadata/metadata.go +++ b/pkg/experimentalmetricmetadata/metadata.go @@ -20,7 +20,7 @@ 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 // there's an update to one or more labels on the same Pod and the // labels now look like the following - // {"env": "test", "team": "otel", "user": "bob"}. The k8sclusterreceiver @@ -28,7 +28,7 @@ type ResourceID string // generate a MetadataDelta with the following values - // // MetadataToAdd: {"user": "bob"} -// MetadataToRemove: {"usser": "bob"} +// MetadataToRemove: {"user_": "bob"} // MetadataToUpdate: {"team": "otel"} // // Apart from Kubernetes labels, the other metadata collected by this From 45845e9f66c32c360326768de38cc64be0681cb0 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 18:28:59 -0500 Subject: [PATCH 379/450] spelling: utilization Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../awscloudwatchmetricsreceiver/config_test.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/receiver/awscloudwatchmetricsreceiver/config_test.go b/receiver/awscloudwatchmetricsreceiver/config_test.go index 4ab7ff8d3b83..aabfdb04e74e 100644 --- a/receiver/awscloudwatchmetricsreceiver/config_test.go +++ b/receiver/awscloudwatchmetricsreceiver/config_test.go @@ -25,7 +25,7 @@ func TestValidate(t *testing.T) { Metrics: &MetricsConfig{ Names: []*NamedConfig{{ Namespace: "AWS/EC2", - MetricName: "CPUUtilizaition", + MetricName: "CPUUtilization", Period: time.Second * 60, AwsAggregation: "Sum", Dimensions: []MetricDimensionsConfig{{ @@ -89,7 +89,7 @@ func TestValidate(t *testing.T) { Metrics: &MetricsConfig{ Names: []*NamedConfig{{ Namespace: "AWS/EC2", - MetricName: "CPUUtilizaition", + MetricName: "CPUUtilization", Period: time.Second * 60, AwsAggregation: "Last", }}, @@ -105,7 +105,7 @@ func TestValidate(t *testing.T) { Metrics: &MetricsConfig{ Names: []*NamedConfig{{ Namespace: "AWS/EC2", - MetricName: "CPUUtilizaition", + MetricName: "CPUUtilization", Period: time.Second * 60, AwsAggregation: "p99", }}, @@ -120,7 +120,7 @@ func TestValidate(t *testing.T) { Metrics: &MetricsConfig{ Names: []*NamedConfig{{ Namespace: "AWS/EC2", - MetricName: "CPUUtilizaition", + MetricName: "CPUUtilization", Period: time.Second * 60, AwsAggregation: "TS99", }}, @@ -136,13 +136,13 @@ func TestValidate(t *testing.T) { Names: []*NamedConfig{ { Namespace: "AWS/EC2", - MetricName: "CPUUtilizaition", + MetricName: "CPUUtilization", Period: time.Second * 60, AwsAggregation: "TS99", }, { Namespace: "AWS/EC2", - MetricName: "CPUUtilizaition", + MetricName: "CPUUtilization", Period: time.Second * 60, AwsAggregation: "TS99", }, @@ -181,7 +181,7 @@ func TestValidate(t *testing.T) { Metrics: &MetricsConfig{ Names: []*NamedConfig{{ Namespace: "AWS/EC2", - MetricName: "CPUUtilizaition", + MetricName: "CPUUtilization", Period: time.Second * 60, AwsAggregation: "Sum", Dimensions: []MetricDimensionsConfig{{ @@ -201,7 +201,7 @@ func TestValidate(t *testing.T) { Metrics: &MetricsConfig{ Names: []*NamedConfig{{ Namespace: "AWS/EC2", - MetricName: "CPUUtilizaition", + MetricName: "CPUUtilization", Period: time.Second * 60, AwsAggregation: "Sum", Dimensions: []MetricDimensionsConfig{{ From 19fc9c906a8a56e4ab234e4c83aea6cc1c6b1a2f Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 21:45:52 -0500 Subject: [PATCH 380/450] spelling: value Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/prometheusreceiver/DESIGN.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/prometheusreceiver/DESIGN.md b/receiver/prometheusreceiver/DESIGN.md index 8fcd276fc478..3a1fbc4d8c23 100644 --- a/receiver/prometheusreceiver/DESIGN.md +++ b/receiver/prometheusreceiver/DESIGN.md @@ -555,7 +555,7 @@ bucket that, bucket counts from Prometheus are cumulative, to transform this into OpenTelemetry format, one needs to apply the following formula: ``` -CurrentOCBucketVlaue = CurrentPrometheusBucketValue - PrevPrometheusBucketValue +CurrentOCBucketValue = CurrentPrometheusBucketValue - PrevPrometheusBucketValue ``` OpenTelemetry does not use `+inf` as an explicit bound, one needs to remove it to generate From 7728d28a16257256166328312af111d59a51707a Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 21:45:44 -0500 Subject: [PATCH 381/450] spelling: values Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/googlecloudexporter/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/googlecloudexporter/README.md b/exporter/googlecloudexporter/README.md index e1cb7c40ead8..b938883331ad 100644 --- a/exporter/googlecloudexporter/README.md +++ b/exporter/googlecloudexporter/README.md @@ -216,7 +216,7 @@ The following configuration options are supported: - `resource_filters` (default = []): If provided, resource attributes matching any filter will be included in log labels. Can be defined by `prefix`, `regex`, or `prefix` AND `regex`. - `prefix`: Match resource keys by prefix. - `regex`: Match resource keys by regex. - - `compression` (optional): Enable gzip compression for gRPC requests (valid vlaues: `gzip`). + - `compression` (optional): Enable gzip compression for gRPC requests (valid values: `gzip`). - `sending_queue` (optional): Configuration for how to buffer traces before sending. - `enabled` (default = true) - `num_consumers` (default = 10): Number of consumers that dequeue batches; ignored if `enabled` is `false` From c99ac8ebda95851f3d488363b1ceb304e6481830 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 21:45:27 -0500 Subject: [PATCH 382/450] spelling: versions Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/cloudfoundryreceiver/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/cloudfoundryreceiver/README.md b/receiver/cloudfoundryreceiver/README.md index ce7f85c151c6..7cb12525e3bc 100644 --- a/receiver/cloudfoundryreceiver/README.md +++ b/receiver/cloudfoundryreceiver/README.md @@ -143,7 +143,7 @@ The receiver maps the envelope attribute tags to the following OpenTelemetry att The `cloudfoundry.resourceAttributes.allow` [feature gate](https://github.com/open-telemetry/opentelemetry-collector/blob/main/featuregate/README.md#collector-feature-gates) allows the envelope tags being copied to the metrics as resource attributes instead of datapoint attributes (default `false`). Therefore all `org.cloudfoundry.*` datapoint attributes won't be present anymore on metrics datapoint level, but on resource level instead, since the attributes describe the resource and not the datapoints itself. -The `cloudfoundry.resourceAttributes.allow` feature gate is available since version `v0.117.0` and will be held at least for 2 versions (`v0.119.0`) until promoting to `beta` and another 2 vesions (`v0.121.0`) until promoting to `stable`. +The `cloudfoundry.resourceAttributes.allow` feature gate is available since version `v0.117.0` and will be held at least for 2 versions (`v0.119.0`) until promoting to `beta` and another 2 versions (`v0.121.0`) until promoting to `stable`. Below you can see the list of attributes that are present the resource level instead of datapoint level (when `cloudfoundry.resourceAttributes.allow` feature gate is enabled): From a4866ef462f37d503c4a0ae0cd88732edb6c4765 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 18:30:06 -0500 Subject: [PATCH 383/450] spelling: wavefront Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/wavefrontreceiver/wavefront_parser.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/wavefrontreceiver/wavefront_parser.go b/receiver/wavefrontreceiver/wavefront_parser.go index 2c696e00ab71..e6de15ac6a1b 100644 --- a/receiver/wavefrontreceiver/wavefront_parser.go +++ b/receiver/wavefrontreceiver/wavefront_parser.go @@ -29,7 +29,7 @@ var ( _ protocol.ParserConfig = (*WavefrontParser)(nil) ) -// Only two chars can be escaped 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 From 156cd6627de22b48e1e2d0a4816c727eb3350273 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 3 Jan 2025 09:59:04 -0500 Subject: [PATCH 384/450] spelling: when Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6ee77e7f03e1..5545eca028fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5052,7 +5052,7 @@ in outgoing logs data. This allows users to disable particular metrics in through user settings. - `mongodbatlasreceiver`: Add logs retrieval capability (#12347) - `mongodbreceiver`: Enhance partial error handling with descriptive metric/attribute messages. (#13367) -- `filelog, journald, syslog, tcplog, udplog, windowseventlog receivers`: Add ability to set log body when when parsing. (#10274) +- `filelog, journald, syslog, tcplog, udplog, windowseventlog receivers`: Add ability to set log body when parsing. (#10274) - `filelog, journald, syslog, tcplog, udplog, windowseventlog receivers`: Enhance error message when csv_parser finds unexpected number of fields (#13427) - `filelog, journald, syslog, tcplog, udplog, windowseventlog receivers`: Enable debugging operators `stdout` and `file_output` (#13394) - `postgresqlreceiver`: Adds background writer metrics (#13327) From 31d9aa0cc0dc5047079f85ea62ea8eff6a094ec2 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 9 Jan 2025 20:57:23 -0500 Subject: [PATCH 385/450] spelling: whereas Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .../tailsamplingprocessor/internal/sampling/composite_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/processor/tailsamplingprocessor/internal/sampling/composite_test.go b/processor/tailsamplingprocessor/internal/sampling/composite_test.go index 7c57d9ce66b8..c813bdeddabf 100644 --- a/processor/tailsamplingprocessor/internal/sampling/composite_test.go +++ b/processor/tailsamplingprocessor/internal/sampling/composite_test.go @@ -119,7 +119,7 @@ func TestCompositeEvaluator_OverflowAlwaysSampled(t *testing.T) { decision, err = c.Evaluate(context.Background(), traceID, trace) require.NoError(t, err, "Failed to evaluate composite policy: %v", err) - // The first policy fails as the tag value is greater than the range set where as the second policy is AlwaysSample, so the decision should be Sampled. + // The first policy fails as the tag value is greater than the range set whereas the second policy is AlwaysSample, so the decision should be Sampled. expected = Sampled assert.Equal(t, expected, decision) } From e6ae6fc9e4ce290b94b7e72dbeb112dfc7840faa Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 18:30:16 -0500 Subject: [PATCH 386/450] spelling: whether Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/syslogexporter/config.go | 2 +- pkg/stanza/docs/operators/syslog_parser.md | 2 +- receiver/syslogreceiver/README.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/exporter/syslogexporter/config.go b/exporter/syslogexporter/config.go index a07526d3d565..35381b4d24e4 100644 --- a/exporter/syslogexporter/config.go +++ b/exporter/syslogexporter/config.go @@ -34,7 +34,7 @@ type Config struct { // options: rfc5424, rfc3164 Protocol string `mapstructure:"protocol"` - // Wether or not to enable RFC 6587 Octet Counting. + // Whether or not to enable RFC 6587 Octet Counting. EnableOctetCounting bool `mapstructure:"enable_octet_counting"` // TLSSetting struct exposes TLS client configuration. diff --git a/pkg/stanza/docs/operators/syslog_parser.md b/pkg/stanza/docs/operators/syslog_parser.md index 1445a02c74f1..4fa768c473e0 100644 --- a/pkg/stanza/docs/operators/syslog_parser.md +++ b/pkg/stanza/docs/operators/syslog_parser.md @@ -13,7 +13,7 @@ The `syslog_parser` operator parses the string-type field selected by `parse_fro | `on_error` | `send` | The behavior of the operator if it encounters an error. See [on_error](../types/on_error.md). | | `protocol` | required | The protocol to parse the syslog messages as. Options are `rfc3164` and `rfc5424`. | | `location` | `UTC` | The geographic location (timezone) to use when parsing the timestamp (Syslog RFC 3164 only). The available locations depend on the local IANA Time Zone database. [This page](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) contains many examples, such as `America/New_York`. | -| `enable_octet_counting` | `false` | Wether or not to enable [RFC 6587](https://www.rfc-editor.org/rfc/rfc6587#section-3.4.1) Octet Counting on syslog parsing (Syslog RFC 5424 only). | +| `enable_octet_counting` | `false` | Whether or not to enable [RFC 6587](https://www.rfc-editor.org/rfc/rfc6587#section-3.4.1) Octet Counting on syslog parsing (Syslog RFC 5424 only). | | `allow_skip_pri_header` | `false` | Allow parsing records without the PRI header. If this setting is enabled, messages without the PRI header will be successfully parsed. The `severity` and `severity_text` fields as well as the `priority` and `facility` attributes will not be set. If this setting is disabled (the default), messages without PRI header will throw an exception. To set this setting to `true`, the `enable_octet_counting` setting must be `false`.| | `non_transparent_framing_trailer` | `nil` | The framing trailer, either `LF` or `NUL`, when using [RFC 6587](https://www.rfc-editor.org/rfc/rfc6587#section-3.4.2) Non-Transparent-Framing (Syslog RFC 5424 only). | | `timestamp` | `nil` | An optional [timestamp](../types/timestamp.md) block which will parse a timestamp field before passing the entry to the output operator | diff --git a/receiver/syslogreceiver/README.md b/receiver/syslogreceiver/README.md index 9cb834deb661..98285aad26a0 100644 --- a/receiver/syslogreceiver/README.md +++ b/receiver/syslogreceiver/README.md @@ -22,7 +22,7 @@ Parses Syslogs received over TCP or UDP. | `udp` | `nil` | Defined udp_input operator. (see the UDP configuration section) | | `protocol` | required | The protocol to parse the syslog messages as. Options are `rfc3164` and `rfc5424` | | `location` | `UTC` | The geographic location (timezone) to use when parsing the timestamp (Syslog RFC 3164 only). The available locations depend on the local IANA Time Zone database. [This page](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) contains many examples, such as `America/New_York`. | -| `enable_octet_counting` | `false` | Wether or not to enable [RFC 6587](https://www.rfc-editor.org/rfc/rfc6587#section-3.4.1) Octet Counting on syslog parsing (Syslog RFC 5424 and TCP only). | +| `enable_octet_counting` | `false` | Whether or not to enable [RFC 6587](https://www.rfc-editor.org/rfc/rfc6587#section-3.4.1) Octet Counting on syslog parsing (Syslog RFC 5424 and TCP only). | | `max_octets` | `8192` | The maximum octets for messages using [RFC 6587](https://www.rfc-editor.org/rfc/rfc6587#section-3.4.1) Octet Counting on syslog parsing (Syslog RFC 5424 and TCP only). | | `allow_skip_pri_header` | `false` | Allow parsing records without the PRI header. If this setting is enabled, messages without the PRI header will be successfully parsed. The `SeverityNumber` and `SeverityText` fields as well as the `priority` and `facility` attributes will not be set on the log record. If this setting is disabled (the default), messages without PRI header will throw an exception. To set this setting to `true`, the `enable_octet_counting` setting must be `false`. | | `non_transparent_framing_trailer` | `nil` | The framing trailer, either `LF` or `NUL`, when using [RFC 6587](https://www.rfc-editor.org/rfc/rfc6587#section-3.4.2) Non-Transparent-Framing (Syslog RFC 5424 and TCP only). | From 1243c386782f6e1b263bc9e92718d589bb4e1f9f Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 3 Jan 2025 09:59:17 -0500 Subject: [PATCH 387/450] spelling: with Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/translator/opencensus/oc_to_metrics.go | 2 +- pkg/translator/opencensus/oc_to_traces.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/translator/opencensus/oc_to_metrics.go b/pkg/translator/opencensus/oc_to_metrics.go index da791f43e701..e1a71b9ad98d 100644 --- a/pkg/translator/opencensus/oc_to_metrics.go +++ b/pkg/translator/opencensus/oc_to_metrics.go @@ -39,7 +39,7 @@ func OCToMetrics(node *occommon.Node, resource *ocresource.Resource, metrics []* // that have nil Resource field must be placed in one other ResourceMetrics instance, // which will gets its Resource field from "md.Resource". // - // We will end up with with one or more ResourceMetrics like this: + // We will end up with one or more ResourceMetrics like this: // // ResourceMetrics ResourceMetrics ResourceMetrics // +-------+-------+---+-------+ +--------------+ +--------------+ diff --git a/pkg/translator/opencensus/oc_to_traces.go b/pkg/translator/opencensus/oc_to_traces.go index 188dd2a0df91..2c37b2f44893 100644 --- a/pkg/translator/opencensus/oc_to_traces.go +++ b/pkg/translator/opencensus/oc_to_traces.go @@ -45,7 +45,7 @@ func OCToTraces(node *occommon.Node, resource *ocresource.Resource, spans []*oct // that have nil Resource field must be placed in one other ResourceSpans instance, // which will gets its Resource field from "td.Resource". // - // We will end up with with one or more ResourceSpans like this: + // We will end up with one or more ResourceSpans like this: // // ResourceSpans ResourceSpans ResourceSpans // +-----+-----+---+-----+ +------------+ +------------+ From b19c602911393e2150cb36a40fe7af04a05426f2 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 20:42:54 -0500 Subject: [PATCH 388/450] spelling: without Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/sapmexporter/exporter_test.go | 2 +- .../internal/apm/requests/requestcounter/counter_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/exporter/sapmexporter/exporter_test.go b/exporter/sapmexporter/exporter_test.go index c922ec65a127..bfe82ee6a076 100644 --- a/exporter/sapmexporter/exporter_test.go +++ b/exporter/sapmexporter/exporter_test.go @@ -232,7 +232,7 @@ func TestSAPMClientTokenAccess(t *testing.T) { accessTokenPassthrough: true, }, { - name: "Token in config wihout passthrough", + name: "Token in config without passthrough", inContext: false, accessTokenPassthrough: false, }, diff --git a/exporter/signalfxexporter/internal/apm/requests/requestcounter/counter_test.go b/exporter/signalfxexporter/internal/apm/requests/requestcounter/counter_test.go index ede914c935b4..4e292fc85335 100644 --- a/exporter/signalfxexporter/internal/apm/requests/requestcounter/counter_test.go +++ b/exporter/signalfxexporter/internal/apm/requests/requestcounter/counter_test.go @@ -42,7 +42,7 @@ func TestContextWithRequestCounter(t *testing.T) { assert.Equal(t, uint32(0), GetRequestCount(parent), "parent context counter was reset") assert.Equal(t, uint32(0), GetRequestCount(child), "child context counter was reset") - // ensure no error when context with out counter is passed in to functions + // ensure no error when context without counter is passed in to functions todo := context.TODO() assert.False(t, counterExists(todo), "plain context shouldn't have a counter") assert.Equal(t, uint32(0), GetRequestCount(todo), "plain context should return count of 0") From 0e35acca6660e4c7684c3ffbbe832058c9b869dd Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 21:47:11 -0500 Subject: [PATCH 389/450] spelling: won't Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/stanza/docs/operators/udp_input.md | 2 +- receiver/udplogreceiver/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/stanza/docs/operators/udp_input.md b/pkg/stanza/docs/operators/udp_input.md index 0d02bbdb37d9..90c57bcda648 100644 --- a/pkg/stanza/docs/operators/udp_input.md +++ b/pkg/stanza/docs/operators/udp_input.md @@ -23,7 +23,7 @@ The `udp_input` operator listens for logs from UDP packets. If set, the `multiline` configuration block instructs the `udp_input` operator 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 diff --git a/receiver/udplogreceiver/README.md b/receiver/udplogreceiver/README.md index a401361fd75b..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 From 909e2c09ff1ed6abc92940f1c789d233202d876d Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 7 Jan 2025 21:47:24 -0500 Subject: [PATCH 390/450] spelling: writing Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/kineticaexporter/exporter_metric_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/exporter/kineticaexporter/exporter_metric_test.go b/exporter/kineticaexporter/exporter_metric_test.go index bc796a97a70a..7f048c321056 100644 --- a/exporter/kineticaexporter/exporter_metric_test.go +++ b/exporter/kineticaexporter/exporter_metric_test.go @@ -424,7 +424,7 @@ func handleInsertRecords(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusOK) _, err := w.Write([]byte("\x04OK\x00.insert_records_response\x08\x00\x06\x00\x00\x00")) if err != nil { - http.Error(w, "Error wrting response", http.StatusInternalServerError) + http.Error(w, "Error writing response", http.StatusInternalServerError) return } } @@ -439,7 +439,7 @@ func handleExecuteSQL(w http.ResponseWriter, r *http.Request) { responseBytes := []byte("\x04OK\x00(execute_sql_response\xd4\x05\x02\xf6\x03{\"type\":\"record\",\"name\":\"generic_response\",\"fields\":[{\"name\":\"column_1\",\"type\":{\"type\":\"array\",\"items\":\"string\"}},{\"name\":\"column_headers\",\"type\":{\"type\":\"array\",\"items\":\"string\"}},{\"name\":\"column_datatypes\",\"type\":{\"type\":\"array\",\"items\":\"string\"}}]}$\x00\x02\ndummy\x00\x02\fstring\x00\x00\x01\x00\x00\b X-Kinetica-Group\x06DDL\ncount\x020\x1alast_endpoint\x1a/create/table.total_number_of_records\x020\x00\x00") _, err := w.Write(responseBytes) if err != nil { - http.Error(w, "Error wrting response", http.StatusInternalServerError) + http.Error(w, "Error writing response", http.StatusInternalServerError) return } } @@ -467,7 +467,7 @@ func handleShowTable(w http.ResponseWriter, r *http.Request) { _, err = w.Write(finalResponseBytes) if err != nil { - http.Error(w, "Error wrting response", http.StatusInternalServerError) + http.Error(w, "Error writing response", http.StatusInternalServerError) return } } From 62364c651423e272ba3ec6f3c8185a6c02e0dafe Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sat, 4 Jan 2025 22:53:26 -0500 Subject: [PATCH 391/450] link: Detailed configuration examples are available Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/stanza/docs/operators/scope_name_parser.md | 2 +- pkg/stanza/docs/operators/severity_parser.md | 2 +- pkg/stanza/docs/operators/time_parser.md | 2 +- pkg/stanza/docs/operators/trace_parser.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/stanza/docs/operators/scope_name_parser.md b/pkg/stanza/docs/operators/scope_name_parser.md index 839a8deb42e8..96a5a47a9912 100644 --- a/pkg/stanza/docs/operators/scope_name_parser.md +++ b/pkg/stanza/docs/operators/scope_name_parser.md @@ -14,4 +14,4 @@ The `scope_name_parser` operator sets the scope name on an entry by parsing a va ### Example Configurations -Several detailed examples are available [here](../types/scope_name.md). +[Detailed configuration examples are available](../types/scope_name.md). diff --git a/pkg/stanza/docs/operators/severity_parser.md b/pkg/stanza/docs/operators/severity_parser.md index 2df648c9ad97..c5fbf461ec23 100644 --- a/pkg/stanza/docs/operators/severity_parser.md +++ b/pkg/stanza/docs/operators/severity_parser.md @@ -17,4 +17,4 @@ The `severity_parser` operator sets the severity on an entry by parsing a value ### Example Configurations -Several detailed examples are available [here](../types/severity.md). +[Detailed configuration examples are available](../types/severity.md). diff --git a/pkg/stanza/docs/operators/time_parser.md b/pkg/stanza/docs/operators/time_parser.md index 49116afa9018..f12e9ee4b70f 100644 --- a/pkg/stanza/docs/operators/time_parser.md +++ b/pkg/stanza/docs/operators/time_parser.md @@ -17,4 +17,4 @@ The `time_parser` operator sets the timestamp on an entry by parsing a value fro ### Example Configurations -Several detailed examples are available [here](../types/timestamp.md). +[Detailed configuration examples are available](../types/timestamp.md). diff --git a/pkg/stanza/docs/operators/trace_parser.md b/pkg/stanza/docs/operators/trace_parser.md index b7f74640ae26..1b63b587526f 100644 --- a/pkg/stanza/docs/operators/trace_parser.md +++ b/pkg/stanza/docs/operators/trace_parser.md @@ -16,4 +16,4 @@ The `trace_parser` operator sets the trace on an entry by parsing a value from t ### Example Configurations -Several detailed examples are available [here](../types/trace.md). +[Detailed configuration examples are available](../types/trace.md). From a69cae29342bea833808fbf18c5b39823f458437 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 3 Jan 2025 11:27:03 -0500 Subject: [PATCH 392/450] link: OpenTelemetry Logs Data Model specification Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/lokiexporter/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/lokiexporter/README.md b/exporter/lokiexporter/README.md index 3ab7d98ce771..6a02f6fefb32 100644 --- a/exporter/lokiexporter/README.md +++ b/exporter/lokiexporter/README.md @@ -27,7 +27,7 @@ The new format for OpenTelemetry logs introduced in Loki V3 brings the following ### Loki log message format changes for OpenTelemetry logs -See OpenTelemetry Logs Data Model specification [here](https://opentelemetry.io/docs/specs/otel/logs/data-model/). +See [OpenTelemetry Logs Data Model specification](https://opentelemetry.io/docs/specs/otel/logs/data-model/). | OpenTelemetry log field | Pre Loki V3 | Loki V3 through the Loki OTLP Endpoint | | ----- | ----- | ----- | From 7ee5af643a1796f5dd6bb6091364d2d1523c67bd Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 3 Jan 2025 11:29:23 -0500 Subject: [PATCH 393/450] link: Prometheus label names standard Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/lokiexporter/README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/exporter/lokiexporter/README.md b/exporter/lokiexporter/README.md index 6a02f6fefb32..b0c5f6b576a2 100644 --- a/exporter/lokiexporter/README.md +++ b/exporter/lokiexporter/README.md @@ -271,8 +271,7 @@ processors: ``` Currently, Loki does not support label names with dots. -That's why lokiexporter normalizes label names to follow Prometheus label names standard before sending requests to Loki. -More information on label normalization could be found [here](../../pkg/translator/prometheus/README.md#Labels) +That's why lokiexporter normalizes label names to follow [Prometheus label names standard](../../pkg/translator/prometheus/README.md#Labels) before sending requests to Loki. The promotion of multiple resource and log attributes to labels is done with single action with comma-separated desired labels: ```yaml From 3a6e445546f6371d681584e9da8d0a512ed6d30d Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 3 Jan 2025 15:54:48 -0500 Subject: [PATCH 394/450] link: Sentry Span Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/sentryexporter/docs/transformation.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/exporter/sentryexporter/docs/transformation.md b/exporter/sentryexporter/docs/transformation.md index 3dc0d252ead4..f0fa8238bedd 100644 --- a/exporter/sentryexporter/docs/transformation.md +++ b/exporter/sentryexporter/docs/transformation.md @@ -1,11 +1,9 @@ # OpenTelemetry to Sentry Transformation -This document aims to define the transformations between an OpenTelemetry span and a Sentry Span. It will also describe how a Sentry transaction is created from a set of Sentry spans. +This document aims to define the transformations between an OpenTelemetry span and a [Sentry Span](https://develop.sentry.dev/sdk/event-payloads/span/). It will also describe how a Sentry transaction is created from a set of Sentry spans. ## Spans -The interface for a Sentry Span can be found [here](https://develop.sentry.dev/sdk/event-payloads/span/) - | Sentry | OpenTelemetry | Notes | | ------------------- | --------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | | Span.TraceID | Span.TraceID | | From c62eb93907a1fa5fd7e1c7eaa7ddb767a810ed6f Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sat, 4 Jan 2025 22:35:52 -0500 Subject: [PATCH 395/450] link: Sigv4 process Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- extension/sigv4authextension/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extension/sigv4authextension/README.md b/extension/sigv4authextension/README.md index 9a9b5cc37186..fb2b288e812d 100644 --- a/extension/sigv4authextension/README.md +++ b/extension/sigv4authextension/README.md @@ -11,7 +11,7 @@ [contrib]: https://github.com/open-telemetry/opentelemetry-collector-releases/tree/main/distributions/otelcol-contrib -This extension provides Sigv4 authentication for making requests to AWS services. For more information on the Sigv4 process, please look [here](https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). +This extension provides Sigv4 authentication for making requests to AWS services. You can read about the [Sigv4 process](https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html). ## Configuration From ef049714183924835a29fd213771e46a7e4931a3 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sat, 4 Jan 2025 22:37:55 -0500 Subject: [PATCH 396/450] link: SolarWinds Observability SaaS: Add a service Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- extension/solarwindsapmsettingsextension/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extension/solarwindsapmsettingsextension/README.md b/extension/solarwindsapmsettingsextension/README.md index f132e8480019..31d98242c086 100644 --- a/extension/solarwindsapmsettingsextension/README.md +++ b/extension/solarwindsapmsettingsextension/README.md @@ -30,7 +30,7 @@ extensions: The APM collector endpoint which this extension calls `getSettings`. See [here](https://documentation.solarwinds.com/en/success_center/observability/content/system_requirements/endpoints.htm) for our APM collector endpoints. The endpoint is in format `:`. ### key (Required) -The service key in format `:` for `getSettings` from Solarwinds APM collector. See [here](https://documentation.solarwinds.com/en/success_center/observability/content/configure/configure-services.htm) for configuring a service key. +The service key in format `:` for `getSettings` from Solarwinds APM collector. See [SolarWinds Observability SaaS: Add a service](https://documentation.solarwinds.com/en/success_center/observability/content/configure/configure-services.htm) for configuring a service key. ### interval (Optional) Periodic interval to get Solarwinds APM specific settings from Solarwinds APM collector. From 59dddc241877b18934bac17c7eab107c6a7dc0fc Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sat, 4 Jan 2025 22:37:35 -0500 Subject: [PATCH 397/450] link: SolarWinds Observability SaaS: Data centers and endpoint URIs Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- extension/solarwindsapmsettingsextension/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extension/solarwindsapmsettingsextension/README.md b/extension/solarwindsapmsettingsextension/README.md index 31d98242c086..e4eea663b498 100644 --- a/extension/solarwindsapmsettingsextension/README.md +++ b/extension/solarwindsapmsettingsextension/README.md @@ -27,7 +27,7 @@ extensions: ``` ### endpoint (Required) -The APM collector endpoint which this extension calls `getSettings`. See [here](https://documentation.solarwinds.com/en/success_center/observability/content/system_requirements/endpoints.htm) for our APM collector endpoints. The endpoint is in format `:`. +The APM collector endpoint which this extension calls `getSettings`. See [SolarWinds Observability SaaS: Data centers and endpoint URIs](https://documentation.solarwinds.com/en/success_center/observability/content/system_requirements/endpoints.htm) for our APM collector endpoints. The endpoint is in format `:`. ### key (Required) The service key in format `:` for `getSettings` from Solarwinds APM collector. See [SolarWinds Observability SaaS: Add a service](https://documentation.solarwinds.com/en/success_center/observability/content/configure/configure-services.htm) for configuring a service key. From d9b2d83dbbed324ceac210a056f069a738bc6b08 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sat, 4 Jan 2025 20:35:03 -0500 Subject: [PATCH 398/450] link: native otlphttp exporter Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/sumologicexporter/README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/exporter/sumologicexporter/README.md b/exporter/sumologicexporter/README.md index 0eac361cd157..1f710b17fbc4 100644 --- a/exporter/sumologicexporter/README.md +++ b/exporter/sumologicexporter/README.md @@ -69,8 +69,7 @@ After the new exporter will be moved to this repository: ## Configuration This exporter supports sending logs and metrics data to [Sumo Logic](https://www.sumologic.com/). -Traces are exported using native otlphttp exporter as described -[here](https://help.sumologic.com/Traces/Getting_Started_with_Transaction_Tracing) +Traces are exported using the [native otlphttp exporter](https://help.sumologic.com/Traces/Getting_Started_with_Transaction_Tracing). Configuration is specified via the yaml in the following structure: From cd4f04faa4f433aa575bbfeaf43e0742a27ec913 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 3 Jan 2025 10:00:22 -0500 Subject: [PATCH 399/450] link: What is the difference between MemFree and MemAvailable in /proc/meminfo Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5545eca028fb..02d3d2ca451f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2517,7 +2517,7 @@ This release fixes CVE-2024-42368 on the `bearerauthtokenextension` (#34516) This is an alternative to `system.memory.usage` metric with `state=free`. Linux starting from 3.14 exports "available" memory. It takes "free" memory as a baseline, and then factors in kernel-specific values. This is supposed to be more accurate than just "free" memory. - For reference, see the calculations [here](https://superuser.com/a/980821). + For reference, see the calculations referenced in [What is the difference between MemFree and MemAvailable in /proc/meminfo](https://superuser.com/a/980821). See also `MemAvailable` in [/proc/meminfo](https://man7.org/linux/man-pages/man5/proc.5.html). - `azuremonitorexporter`: Updated Azure Monitor Exporter service version from v2.0 to v2.1. (#29234) From 65012a89a0ba8f45436cea9db34ca3fdece00b10 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 3 Jan 2025 11:22:05 -0500 Subject: [PATCH 400/450] link: `crosslink` tool README Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CONTRIBUTING.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e2a668861c92..b4c1a92d8075 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -259,8 +259,7 @@ in general try to follow them. - When implementing exporters try to leverage the exporter helpers from the core repo, see [exporterhelper package](https://github.com/open-telemetry/opentelemetry-collector/tree/main/exporter/exporterhelper). This will ensure that the exporter provides [zPages](https://opencensus.io/zpages/) and a standard set of metrics. -- `replace` statements in `go.mod` files can be automatically inserted by running `make crosslink`. For more information - on the `crosslink` tool see the README [here](https://github.com/open-telemetry/opentelemetry-go-build-tools/tree/main/crosslink). +- `replace` statements in `go.mod` files can be automatically inserted by running `make crosslink`. For more information, see the [`crosslink` tool README](https://github.com/open-telemetry/opentelemetry-go-build-tools/tree/main/crosslink). ## Issue Triaging From a588ee8b0eeeceef1536945e03b41256886175cf Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 3 Jan 2025 15:45:25 -0500 Subject: [PATCH 401/450] link: authentication token provided by Splunk Observability Cloud Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/sapmexporter/README.md | 4 ++-- exporter/signalfxexporter/README.md | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/exporter/sapmexporter/README.md b/exporter/sapmexporter/README.md index b3e612898cc0..fb3b744a2e62 100644 --- a/exporter/sapmexporter/README.md +++ b/exporter/sapmexporter/README.md @@ -38,9 +38,9 @@ and some useful related utilities can be found [here](https://github.com/signalf The following configuration options are required: -- `access_token` (no default): AccessToken is the authentication token provided by Splunk Observability Cloud or +- `access_token` (no default): AccessToken is the [authentication token provided by Splunk Observability Cloud](https://docs.splunk.com/observability/en/admin/authentication/authentication-tokens/manage-usage.html) or another backend that supports the SAPM proto. The access token can be obtained from the -web app. For details on how to do so please refer the documentation [here](https://docs.splunk.com/observability/en/admin/authentication/authentication-tokens/manage-usage.html). +web app. - `endpoint` (no default): This is the destination to where traces will be sent to in SAPM format. It must be a full URL and include the scheme, port and path e.g, https://ingest.us0.signalfx.com/v2/trace. This can be pointed to the SignalFx diff --git a/exporter/signalfxexporter/README.md b/exporter/signalfxexporter/README.md index 22160bd2876b..25b06628a7c0 100644 --- a/exporter/signalfxexporter/README.md +++ b/exporter/signalfxexporter/README.md @@ -23,9 +23,10 @@ supported. The following configuration options are required: -- `access_token` (no default): The access token is the authentication token - provided by Splunk Observability Cloud. The access token can be obtained from the - web app. For details on how to do so please refer the documentation [here](https://docs.splunk.com/observability/en/admin/authentication/authentication-tokens/manage-usage.html). +- `access_token` (no default): The access token is the [authentication token + provided by Splunk Observability + Cloud](https://docs.splunk.com/observability/en/admin/authentication/authentication-tokens/manage-usage.html). + The access token can be obtained from the web app. - Either `realm` or both `api_url` and `ingest_url`. Both `api_url` and `ingest_url` take precedence over `realm`. - `realm` (no default): SignalFx realm where the data will be received. From f73d4394da2de85183b66a5e0d8286c9f0097e74 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sat, 4 Jan 2025 20:32:19 -0500 Subject: [PATCH 402/450] link: batching configuration on the exporter Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/splunkhecexporter/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/splunkhecexporter/README.md b/exporter/splunkhecexporter/README.md index 29a25f8ac7fe..d69a8436615c 100644 --- a/exporter/splunkhecexporter/README.md +++ b/exporter/splunkhecexporter/README.md @@ -74,7 +74,7 @@ The following configuration options can also be configured: - `telemetry/enabled` (default: false): Specifies whether to enable telemetry inside splunk hec exporter. - `telemetry/override_metrics_names` (default: empty map): Specifies the metrics name to overrides in splunk hec exporter. - `telemetry/extra_attributes` (default: empty map): Specifies the extra metrics attributes in splunk hec exporter. -- `batcher`(Experimental, disabled by default): Specifies batching configuration on the exporter. Information about the configuration can be found [here](https://github.com/open-telemetry/opentelemetry-collector/blob/main/exporter/exporterhelper/README.md) +- `batcher`(Experimental, disabled by default): Specifies [batching configuration on the exporter](https://github.com/open-telemetry/opentelemetry-collector/blob/main/exporter/exporterhelper/README.md). In addition, this exporter offers queued retry which is enabled by default. Information about queued retry configuration parameters can be found From 5e6958d1625a8a1692c6f8cb3cac378b893ae840 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 3 Jan 2025 11:23:36 -0500 Subject: [PATCH 403/450] link: config.go Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- connector/routingconnector/README.md | 2 +- exporter/carbonexporter/README.md | 2 +- exporter/lokiexporter/README.md | 2 +- exporter/sapmexporter/README.md | 2 +- exporter/signalfxexporter/README.md | 2 +- exporter/splunkhecexporter/README.md | 2 +- extension/healthcheckextension/README.md | 2 +- extension/httpforwarderextension/README.md | 2 +- extension/pprofextension/README.md | 2 +- extension/remotetapextension/README.md | 2 +- processor/resourcedetectionprocessor/README.md | 2 +- processor/routingprocessor/README.md | 2 +- receiver/activedirectorydsreceiver/README.md | 2 +- receiver/apachereceiver/README.md | 2 +- receiver/apachesparkreceiver/README.md | 2 +- receiver/bigipreceiver/README.md | 2 +- receiver/carbonreceiver/README.md | 2 +- receiver/cloudfoundryreceiver/README.md | 2 +- receiver/collectdreceiver/README.md | 2 +- receiver/couchdbreceiver/README.md | 2 +- receiver/dockerstatsreceiver/README.md | 2 +- receiver/elasticsearchreceiver/README.md | 2 +- receiver/flinkmetricsreceiver/README.md | 2 +- receiver/huaweicloudcesreceiver/README.md | 2 +- receiver/iisreceiver/README.md | 2 +- receiver/k8sclusterreceiver/README.md | 2 +- receiver/k8seventsreceiver/README.md | 2 +- receiver/k8sobjectsreceiver/README.md | 2 +- receiver/kubeletstatsreceiver/README.md | 2 +- receiver/memcachedreceiver/README.md | 2 +- receiver/mongodbreceiver/README.md | 2 +- receiver/mysqlreceiver/README.md | 2 +- receiver/nginxreceiver/README.md | 2 +- receiver/nsxtreceiver/README.md | 2 +- receiver/ntpreceiver/README.md | 2 +- receiver/podmanreceiver/README.md | 2 +- receiver/postgresqlreceiver/README.md | 2 +- receiver/purefareceiver/README.md | 2 +- receiver/purefbreceiver/README.md | 2 +- receiver/rabbitmqreceiver/README.md | 2 +- receiver/receivercreator/README.md | 2 +- receiver/redisreceiver/README.md | 2 +- receiver/saphanareceiver/README.md | 2 +- receiver/sapmreceiver/README.md | 2 +- receiver/signalfxreceiver/README.md | 2 +- receiver/simpleprometheusreceiver/README.md | 2 +- receiver/snmpreceiver/README.md | 2 +- receiver/snowflakereceiver/README.md | 2 +- receiver/splunkenterprisereceiver/README.md | 2 +- receiver/splunkhecreceiver/README.md | 2 +- receiver/sqlserverreceiver/README.md | 2 +- receiver/sshcheckreceiver/README.md | 2 +- receiver/statsdreceiver/README.md | 2 +- receiver/vcenterreceiver/README.md | 2 +- receiver/wavefrontreceiver/README.md | 2 +- receiver/webhookeventreceiver/README.md | 2 +- 56 files changed, 56 insertions(+), 56 deletions(-) diff --git a/connector/routingconnector/README.md b/connector/routingconnector/README.md index 1d7e312bbb3d..3398ada6b9b2 100644 --- a/connector/routingconnector/README.md +++ b/connector/routingconnector/README.md @@ -69,7 +69,7 @@ The following settings are available: ## Additional Settings -The full list of settings exposed for this connector are documented [here](./config.go) with detailed sample configuration files: +The full list of settings exposed for this connector are documented in [config.go](./config.go) with detailed sample configuration files: - [logs](./testdata/config/logs.yaml) - [metrics](./testdata/config/metrics.yaml) diff --git a/exporter/carbonexporter/README.md b/exporter/carbonexporter/README.md index 8c37bebf218c..780f531f34a6 100644 --- a/exporter/carbonexporter/README.md +++ b/exporter/carbonexporter/README.md @@ -39,7 +39,7 @@ exporters: timeout: 10s ``` -The full list of settings exposed for this receiver are documented [here](./config.go) +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). ## Advanced Configuration diff --git a/exporter/lokiexporter/README.md b/exporter/lokiexporter/README.md index b0c5f6b576a2..9cb5401c8204 100644 --- a/exporter/lokiexporter/README.md +++ b/exporter/lokiexporter/README.md @@ -305,7 +305,7 @@ If `service.instance.id` is present then `instance=service.instance.id` is set If `service.instance.id` is not present then `instance` label is not set -The full list of settings exposed for this exporter are documented [here](./config.go) with detailed sample +The full list of settings exposed for this exporter are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). More information on how to send logs to Grafana Loki using the OpenTelemetry Collector could be found [here](https://grafana.com/docs/opentelemetry/collector/send-logs-to-loki/) diff --git a/exporter/sapmexporter/README.md b/exporter/sapmexporter/README.md index fb3b744a2e62..3bb9878e0495 100644 --- a/exporter/sapmexporter/README.md +++ b/exporter/sapmexporter/README.md @@ -83,7 +83,7 @@ exporters: log_detailed_response: true ``` -The full list of settings exposed for this exporter are documented [here](config.go) +The full list of settings exposed for this exporter are documented in [config.go](./config.go) with detailed sample configurations [here](testdata/config.yaml). This exporter also offers proxy support as documented diff --git a/exporter/signalfxexporter/README.md b/exporter/signalfxexporter/README.md index 25b06628a7c0..c75295d1e725 100644 --- a/exporter/signalfxexporter/README.md +++ b/exporter/signalfxexporter/README.md @@ -301,7 +301,7 @@ service: exporters: [signalfx] ``` -The full list of settings exposed for this exporter are documented [here](config.go) +The full list of settings exposed for this exporter are documented in [config.go](./config.go) with detailed sample configurations [here](testdata/config.yaml). This exporter also offers proxy support as documented diff --git a/exporter/splunkhecexporter/README.md b/exporter/splunkhecexporter/README.md index d69a8436615c..51434c5faa40 100644 --- a/exporter/splunkhecexporter/README.md +++ b/exporter/splunkhecexporter/README.md @@ -145,7 +145,7 @@ exporters: custom_key: custom_value ``` -The full list of settings exposed for this exporter are documented [here](config.go) +The full list of settings exposed for this exporter are documented in [config.go](./config.go) with detailed sample configurations [here](testdata/config.yaml). This exporter also offers proxy support as documented diff --git a/extension/healthcheckextension/README.md b/extension/healthcheckextension/README.md index 615129115ef5..4b4bfb890dd0 100644 --- a/extension/healthcheckextension/README.md +++ b/extension/healthcheckextension/README.md @@ -47,5 +47,5 @@ extensions: path: "/health/status" ``` -The full list of settings exposed for this exporter is documented [here](./config.go) +The full list of settings exposed for this exporter is documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). diff --git a/extension/httpforwarderextension/README.md b/extension/httpforwarderextension/README.md index 0992d17e1604..cfbdac8f9556 100644 --- a/extension/httpforwarderextension/README.md +++ b/extension/httpforwarderextension/README.md @@ -44,5 +44,5 @@ The following settings can be optionally configured: timeout: 5s ``` -The full list of settings exposed for this exporter are documented [here](config.go) +The full list of settings exposed for this exporter are documented in [config.go](./config.go) with detailed sample configurations [here](testdata/config.yaml). diff --git a/extension/pprofextension/README.md b/extension/pprofextension/README.md index 21225dd402fc..9a4b66f96a68 100644 --- a/extension/pprofextension/README.md +++ b/extension/pprofextension/README.md @@ -42,7 +42,7 @@ extensions: pprof: ``` -The full list of settings exposed for this exporter are documented [here](./config.go) +The full list of settings exposed for this exporter are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). diff --git a/extension/remotetapextension/README.md b/extension/remotetapextension/README.md index be03161119de..58d27ad0d0a0 100644 --- a/extension/remotetapextension/README.md +++ b/extension/remotetapextension/README.md @@ -28,4 +28,4 @@ extensions: remotetap: ``` -The full list of settings exposed for this exporter are documented [here](./config.go). +The full list of settings exposed for this exporter are documented in [config.go](./config.go). diff --git a/processor/resourcedetectionprocessor/README.md b/processor/resourcedetectionprocessor/README.md index 36fd72617130..6ae1551e4a61 100644 --- a/processor/resourcedetectionprocessor/README.md +++ b/processor/resourcedetectionprocessor/README.md @@ -588,5 +588,5 @@ Note that if multiple detectors are inserting the same attribute name, the first * ecs * ec2 -The full list of settings exposed for this extension are documented [here](./config.go) +The full list of settings exposed for this extension are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). diff --git a/processor/routingprocessor/README.md b/processor/routingprocessor/README.md index 5ae2c563d5c7..3a4dbc65b6a7 100644 --- a/processor/routingprocessor/README.md +++ b/processor/routingprocessor/README.md @@ -175,7 +175,7 @@ It is also possible to mix both the conventional routing configuration and the r - [delete_key](../../pkg/ottl/ottlfuncs/README.md#delete_key) - [delete_matching_keys](../../pkg/ottl/ottlfuncs/README.md#delete_matching_keys) -The full list of settings exposed for this processor are documented [here](./config.go) with detailed sample configuration files: +The full list of settings exposed for this processor are documented in [config.go](./config.go) with detailed sample configuration files: - [logs](./testdata/config_logs.yaml) - [metrics](./testdata/config_metrics.yaml) diff --git a/receiver/activedirectorydsreceiver/README.md b/receiver/activedirectorydsreceiver/README.md index 1968a6c2d09f..36e7fc016aff 100644 --- a/receiver/activedirectorydsreceiver/README.md +++ b/receiver/activedirectorydsreceiver/README.md @@ -31,7 +31,7 @@ receivers: active_directory.ds.replication.network.io: false ``` -The full list of settings exposed for this receiver are documented [here](./config.go) with detailed sample configurations [here](./testdata/config.yaml). +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). ## Metrics diff --git a/receiver/apachereceiver/README.md b/receiver/apachereceiver/README.md index b095009e6210..b0d68d7e5949 100644 --- a/receiver/apachereceiver/README.md +++ b/receiver/apachereceiver/README.md @@ -40,7 +40,7 @@ receivers: endpoint: "http://localhost:8080/server-status?auto" ``` -The full list of settings exposed for this receiver are documented [here](./config.go) with detailed sample configurations [here](./testdata/config.yaml). +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). ## Metrics diff --git a/receiver/apachesparkreceiver/README.md b/receiver/apachesparkreceiver/README.md index 65ce3f1275d4..3e642869931c 100644 --- a/receiver/apachesparkreceiver/README.md +++ b/receiver/apachesparkreceiver/README.md @@ -47,7 +47,7 @@ receivers: - PythonLR ``` -The full list of settings exposed for this receiver are documented [here](./config.go) with detailed sample configurations [here](./testdata/config.yaml). +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). ## Metrics diff --git a/receiver/bigipreceiver/README.md b/receiver/bigipreceiver/README.md index b1c80a18042b..445660f681f8 100644 --- a/receiver/bigipreceiver/README.md +++ b/receiver/bigipreceiver/README.md @@ -44,7 +44,7 @@ receivers: insecure_skip_verify: true ``` -The full list of settings exposed for this receiver are documented [here](./config.go) with detailed sample configurations [here](./testdata/config.yaml). TLS config is documented further under the [opentelemetry collector's configtls package](https://github.com/open-telemetry/opentelemetry-collector/blob/main/config/configtls/README.md). +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). TLS config is documented further under the [opentelemetry collector's configtls package](https://github.com/open-telemetry/opentelemetry-collector/blob/main/config/configtls/README.md). ## Metrics diff --git a/receiver/carbonreceiver/README.md b/receiver/carbonreceiver/README.md index 8e7a0d9a2471..da553c5eed6f 100644 --- a/receiver/carbonreceiver/README.md +++ b/receiver/carbonreceiver/README.md @@ -64,6 +64,6 @@ receivers: name_separator: "_" ``` -The full list of settings exposed for this receiver are documented [here](./config.go) +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). diff --git a/receiver/cloudfoundryreceiver/README.md b/receiver/cloudfoundryreceiver/README.md index 7cb12525e3bc..438a419a1e14 100644 --- a/receiver/cloudfoundryreceiver/README.md +++ b/receiver/cloudfoundryreceiver/README.md @@ -72,7 +72,7 @@ receivers: password: "changeit" ``` -The full list of settings exposed for this receiver are documented [here](./config.go) +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). ## Telemetry common Attributes diff --git a/receiver/collectdreceiver/README.md b/receiver/collectdreceiver/README.md index d94a7bfa7c10..831b78bd5b13 100644 --- a/receiver/collectdreceiver/README.md +++ b/receiver/collectdreceiver/README.md @@ -49,6 +49,6 @@ receivers: timeout: "50s" ``` -The full list of settings exposed for this receiver are documented [here](./config.go) +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). diff --git a/receiver/couchdbreceiver/README.md b/receiver/couchdbreceiver/README.md index 0b779d5462c2..02877c9b5084 100644 --- a/receiver/couchdbreceiver/README.md +++ b/receiver/couchdbreceiver/README.md @@ -42,7 +42,7 @@ receivers: collection_interval: 60s ``` -The full list of settings exposed for this receiver are documented [here](./config.go) with detailed sample configurations [here](./testdata/config.yaml). TLS config is documented further under the [opentelemetry collector's configtls package](https://github.com/open-telemetry/opentelemetry-collector/blob/main/config/configtls/README.md). +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). TLS config is documented further under the [opentelemetry collector's configtls package](https://github.com/open-telemetry/opentelemetry-collector/blob/main/config/configtls/README.md). ## Metrics diff --git a/receiver/dockerstatsreceiver/README.md b/receiver/dockerstatsreceiver/README.md index ccfabc263b84..666e6a5245d3 100644 --- a/receiver/dockerstatsreceiver/README.md +++ b/receiver/dockerstatsreceiver/README.md @@ -70,7 +70,7 @@ receivers: enabled: false ``` -The full list of settings exposed for this receiver are documented [here](./config.go) +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). ## Deprecations diff --git a/receiver/elasticsearchreceiver/README.md b/receiver/elasticsearchreceiver/README.md index df0070e55d7f..752a3bb44fe2 100644 --- a/receiver/elasticsearchreceiver/README.md +++ b/receiver/elasticsearchreceiver/README.md @@ -51,7 +51,7 @@ receivers: collection_interval: 10s ``` -The full list of settings exposed for this receiver are documented [here](./config.go) with detailed sample configurations [here](./testdata/config.yaml). +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). ## Metrics diff --git a/receiver/flinkmetricsreceiver/README.md b/receiver/flinkmetricsreceiver/README.md index 1ba5e7f198de..3598c3cc9414 100644 --- a/receiver/flinkmetricsreceiver/README.md +++ b/receiver/flinkmetricsreceiver/README.md @@ -40,7 +40,7 @@ receivers: collection_interval: 10s ``` -The full list of settings exposed for this receiver are documented [here](./config.go) with detailed sample configurations [here](./testdata/config.yaml). TLS config is documented further under the [opentelemetry collector's configtls package](https://github.com/open-telemetry/opentelemetry-collector/blob/main/config/configtls/README.md). +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). TLS config is documented further under the [opentelemetry collector's configtls package](https://github.com/open-telemetry/opentelemetry-collector/blob/main/config/configtls/README.md). ## Metrics diff --git a/receiver/huaweicloudcesreceiver/README.md b/receiver/huaweicloudcesreceiver/README.md index b4ffbd7fc013..7700c7be894d 100644 --- a/receiver/huaweicloudcesreceiver/README.md +++ b/receiver/huaweicloudcesreceiver/README.md @@ -72,7 +72,7 @@ receivers: no_verify_ssl: True ``` -The full list of settings exposed for this receiver are documented [here](./config.go). +The full list of settings exposed for this receiver are documented in [config.go](./config.go). ### Huawei Cloud SDK Authentication Setup diff --git a/receiver/iisreceiver/README.md b/receiver/iisreceiver/README.md index c4780b94b7f4..06515b0e1298 100644 --- a/receiver/iisreceiver/README.md +++ b/receiver/iisreceiver/README.md @@ -33,7 +33,7 @@ Example: ``` -The full list of settings exposed for this receiver are documented [here](./config.go). +The full list of settings exposed for this receiver are documented in [config.go](./config.go). ## Metrics diff --git a/receiver/k8sclusterreceiver/README.md b/receiver/k8sclusterreceiver/README.md index 53f9990eef01..849f0293f07b 100644 --- a/receiver/k8sclusterreceiver/README.md +++ b/receiver/k8sclusterreceiver/README.md @@ -79,7 +79,7 @@ Example: enabled: false ``` -The full list of settings exposed for this receiver are documented [here](./config.go) +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). ### node_conditions_to_report diff --git a/receiver/k8seventsreceiver/README.md b/receiver/k8seventsreceiver/README.md index 143147dcd5f8..3ad7f259e25f 100644 --- a/receiver/k8seventsreceiver/README.md +++ b/receiver/k8seventsreceiver/README.md @@ -39,7 +39,7 @@ Examples: namespaces: [default, my_namespace] ``` -The full list of settings exposed for this receiver are documented [here](./config.go) +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). ## Example diff --git a/receiver/k8sobjectsreceiver/README.md b/receiver/k8sobjectsreceiver/README.md index afb9914a3d3b..3231ff192e9f 100644 --- a/receiver/k8sobjectsreceiver/README.md +++ b/receiver/k8sobjectsreceiver/README.md @@ -58,7 +58,7 @@ For example, `events` resource is available in both `v1` and `events.k8s.io/v1` this case, it will select `v1` by default. -The full list of settings exposed for this receiver are documented [here](./config.go) +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). Follow the below sections to setup various Kubernetes resources required for the deployment. diff --git a/receiver/kubeletstatsreceiver/README.md b/receiver/kubeletstatsreceiver/README.md index 44b8dbce0866..f6c7cb7b8d19 100644 --- a/receiver/kubeletstatsreceiver/README.md +++ b/receiver/kubeletstatsreceiver/README.md @@ -263,7 +263,7 @@ The following parameters can also be specified: - `collection_interval` (default = `10s`): The interval at which to collect data. - `insecure_skip_verify` (default = `false`): Whether or not to skip certificate verification. -The full list of settings exposed for this receiver are documented [here](./config.go) +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). ### Role-based access control diff --git a/receiver/memcachedreceiver/README.md b/receiver/memcachedreceiver/README.md index d0c39bbbb7d1..657e61e12190 100644 --- a/receiver/memcachedreceiver/README.md +++ b/receiver/memcachedreceiver/README.md @@ -46,7 +46,7 @@ receivers: collection_interval: 10s ``` -The full list of settings exposed for this receiver are documented [here](./config.go) +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). ## Metrics diff --git a/receiver/mongodbreceiver/README.md b/receiver/mongodbreceiver/README.md index 1ffaba9f6fbc..21dfac1f8c8a 100644 --- a/receiver/mongodbreceiver/README.md +++ b/receiver/mongodbreceiver/README.md @@ -64,7 +64,7 @@ receivers: insecure_skip_verify: true ``` -The full list of settings exposed for this receiver are documented [here](./config.go) with detailed sample configurations [here](./testdata/config.yaml). +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). ## Metrics diff --git a/receiver/mysqlreceiver/README.md b/receiver/mysqlreceiver/README.md index 9bdea8f4327b..bf684401c41e 100644 --- a/receiver/mysqlreceiver/README.md +++ b/receiver/mysqlreceiver/README.md @@ -63,7 +63,7 @@ receivers: limit: 250 ``` -The full list of settings exposed for this receiver are documented [here](./config.go) with detailed sample configurations [here](./testdata/config.yaml). +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). ## Metrics diff --git a/receiver/nginxreceiver/README.md b/receiver/nginxreceiver/README.md index 23ba20634461..4d59d62b2835 100644 --- a/receiver/nginxreceiver/README.md +++ b/receiver/nginxreceiver/README.md @@ -44,5 +44,5 @@ receivers: collection_interval: 10s ``` -The full list of settings exposed for this receiver are documented [here](./config.go) +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). diff --git a/receiver/nsxtreceiver/README.md b/receiver/nsxtreceiver/README.md index 18f716e34ca9..d619b8b9cda5 100644 --- a/receiver/nsxtreceiver/README.md +++ b/receiver/nsxtreceiver/README.md @@ -72,7 +72,7 @@ service: exporters: [file] ``` -The full list of settings exposed for this receiver are documented [here](./config.go) with detailed sample configurations [here](./testdata/config.yaml). +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). ## Metrics diff --git a/receiver/ntpreceiver/README.md b/receiver/ntpreceiver/README.md index 8f6fe98dbfb8..8b6cc7694f8e 100644 --- a/receiver/ntpreceiver/README.md +++ b/receiver/ntpreceiver/README.md @@ -38,7 +38,7 @@ receivers: initial_delay: 5m ``` -The full list of settings exposed for this receiver are documented [here](./config.go) with detailed sample configurations [here](./internal/metadata/testdata/config.yaml). +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./internal/metadata/testdata/config.yaml). ## Metrics diff --git a/receiver/podmanreceiver/README.md b/receiver/podmanreceiver/README.md index 63d81a5bd195..569ef21fa568 100644 --- a/receiver/podmanreceiver/README.md +++ b/receiver/podmanreceiver/README.md @@ -48,7 +48,7 @@ receivers: enabled: false ``` -The full list of settings exposed for this receiver are documented [here](./config.go) +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). ### Connecting over SSH diff --git a/receiver/postgresqlreceiver/README.md b/receiver/postgresqlreceiver/README.md index c73cce90a65a..236125168c19 100644 --- a/receiver/postgresqlreceiver/README.md +++ b/receiver/postgresqlreceiver/README.md @@ -69,7 +69,7 @@ receivers: key_file: /home/otel/mypostgreskey.key ``` -The full list of settings exposed for this receiver are documented [here](./config.go) with detailed sample configurations [here](./testdata/config.yaml). TLS config is documented further under the [opentelemetry collector's configtls package](https://github.com/open-telemetry/opentelemetry-collector/blob/main/config/configtls/README.md). +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). TLS config is documented further under the [opentelemetry collector's configtls package](https://github.com/open-telemetry/opentelemetry-collector/blob/main/config/configtls/README.md). ## Connection pool feature diff --git a/receiver/purefareceiver/README.md b/receiver/purefareceiver/README.md index 48af5f922bf4..faad5aff3232 100644 --- a/receiver/purefareceiver/README.md +++ b/receiver/purefareceiver/README.md @@ -106,6 +106,6 @@ service: receivers: [purefa/array01,purefa/array02] ``` -The full list of settings exposed for this receiver are documented [here](./config.go) +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). diff --git a/receiver/purefbreceiver/README.md b/receiver/purefbreceiver/README.md index e0ec50b746e3..b6b11c64acab 100644 --- a/receiver/purefbreceiver/README.md +++ b/receiver/purefbreceiver/README.md @@ -50,6 +50,6 @@ receivers: ``` -The full list of settings exposed for this receiver are documented [here](./config.go) +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). diff --git a/receiver/rabbitmqreceiver/README.md b/receiver/rabbitmqreceiver/README.md index d7d6d4f6c873..40d9172ab44e 100644 --- a/receiver/rabbitmqreceiver/README.md +++ b/receiver/rabbitmqreceiver/README.md @@ -46,7 +46,7 @@ receivers: collection_interval: 10s ``` -The full list of settings exposed for this receiver are documented [here](./config.go) with detailed sample configurations [here](./testdata/config.yaml). TLS config is documented further under the [opentelemetry collector's configtls package](https://github.com/open-telemetry/opentelemetry-collector/blob/main/config/configtls/README.md). +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). TLS config is documented further under the [opentelemetry collector's configtls package](https://github.com/open-telemetry/opentelemetry-collector/blob/main/config/configtls/README.md). ## Metrics diff --git a/receiver/receivercreator/README.md b/receiver/receivercreator/README.md index 8cee77686306..2f023084fbf2 100644 --- a/receiver/receivercreator/README.md +++ b/receiver/receivercreator/README.md @@ -437,7 +437,7 @@ service: extensions: [k8s_observer, host_observer] ``` -The full list of settings exposed for this receiver are documented [here](./config.go) +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). diff --git a/receiver/redisreceiver/README.md b/receiver/redisreceiver/README.md index 0b5e3c4d69d0..513a6e25505e 100644 --- a/receiver/redisreceiver/README.md +++ b/receiver/redisreceiver/README.md @@ -95,6 +95,6 @@ receivers: password: ${env:REDIS_PASSWORD} ``` -The full list of settings exposed for this receiver are documented [here](./config.go) +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). diff --git a/receiver/saphanareceiver/README.md b/receiver/saphanareceiver/README.md index 1e5ba39bc7dc..06d77b77ba72 100644 --- a/receiver/saphanareceiver/README.md +++ b/receiver/saphanareceiver/README.md @@ -92,7 +92,7 @@ receivers: enabled: false ``` -The full list of settings exposed for this receiver are documented [here](./config.go) +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). ## Metrics diff --git a/receiver/sapmreceiver/README.md b/receiver/sapmreceiver/README.md index e2fec058f597..c423cd58ed35 100644 --- a/receiver/sapmreceiver/README.md +++ b/receiver/sapmreceiver/README.md @@ -52,5 +52,5 @@ receivers: key_file: /test.key ``` -The full list of settings exposed for this receiver are documented [here](./config.go) +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). diff --git a/receiver/signalfxreceiver/README.md b/receiver/signalfxreceiver/README.md index b2b5fd171240..b57503e2d781 100644 --- a/receiver/signalfxreceiver/README.md +++ b/receiver/signalfxreceiver/README.md @@ -57,7 +57,7 @@ receivers: key_file: /test.key ``` -The full list of settings exposed for this receiver are documented [here](./config.go) +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). > :warning: When enabling the SignalFx receiver or exporter, configure both the `metrics` and `logs` pipelines. diff --git a/receiver/simpleprometheusreceiver/README.md b/receiver/simpleprometheusreceiver/README.md index d4113c232b3e..1081d952d2db 100644 --- a/receiver/simpleprometheusreceiver/README.md +++ b/receiver/simpleprometheusreceiver/README.md @@ -75,5 +75,5 @@ Example: exporters: [signalfx] ``` -The full list of settings exposed for this receiver are documented [here](./config.go) +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). diff --git a/receiver/snmpreceiver/README.md b/receiver/snmpreceiver/README.md index fe2c7cedf63b..b9cdbfd33110 100644 --- a/receiver/snmpreceiver/README.md +++ b/receiver/snmpreceiver/README.md @@ -248,5 +248,5 @@ receivers: ``` -The full list of settings exposed for this receiver are documented [here](./config.go) with detailed sample configurations [here](./testdata/config.yaml). +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). diff --git a/receiver/snowflakereceiver/README.md b/receiver/snowflakereceiver/README.md index 380e29f11239..1c4c88c7153a 100644 --- a/receiver/snowflakereceiver/README.md +++ b/receiver/snowflakereceiver/README.md @@ -46,4 +46,4 @@ receivers: enabled: false ``` -The full list of settings exposed for this receiver are documented [here](./config.go) with a detailed sample configuration [here](./testdata/config.yaml) +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with a detailed sample configuration [here](./testdata/config.yaml) diff --git a/receiver/splunkenterprisereceiver/README.md b/receiver/splunkenterprisereceiver/README.md index ccf82d7b5234..5e4f4c7bd025 100644 --- a/receiver/splunkenterprisereceiver/README.md +++ b/receiver/splunkenterprisereceiver/README.md @@ -71,4 +71,4 @@ service: exporters: [debug] ``` -For a full list of settings exposed by this receiver please look [here](./config.go) with a detailed configuration [here](./testdata/config.yaml). +For a full list of settings exposed by this receiver please look in [config.go](./config.go) with a detailed configuration [here](./testdata/config.yaml). diff --git a/receiver/splunkhecreceiver/README.md b/receiver/splunkhecreceiver/README.md index 1887c71ea022..f5d85f90b53a 100644 --- a/receiver/splunkhecreceiver/README.md +++ b/receiver/splunkhecreceiver/README.md @@ -75,7 +75,7 @@ receivers: extension: ack/in_memory ``` -The full list of settings exposed for this receiver are documented [here](./config.go) +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). [configtls]: https://github.com/open-telemetry/opentelemetry-collector/blob/main/config/configtls diff --git a/receiver/sqlserverreceiver/README.md b/receiver/sqlserverreceiver/README.md index 9764f7aec27e..8f4d7f4d2340 100644 --- a/receiver/sqlserverreceiver/README.md +++ b/receiver/sqlserverreceiver/README.md @@ -66,7 +66,7 @@ Example with named instance: enabled: true ``` -The full list of settings exposed for this receiver are documented [here](./config.go) with detailed sample configurations [here](./testdata/config.yaml). +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). ## Metrics diff --git a/receiver/sshcheckreceiver/README.md b/receiver/sshcheckreceiver/README.md index e5d9d43a55b4..71748af90c5b 100644 --- a/receiver/sshcheckreceiver/README.md +++ b/receiver/sshcheckreceiver/README.md @@ -44,7 +44,7 @@ receivers: collection_interval: 60s ``` -The full list of settings exposed for this receiver are documented [here](./config.go) with detailed sample configurations [here](./testdata/config.yaml). +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). ## Metrics diff --git a/receiver/statsdreceiver/README.md b/receiver/statsdreceiver/README.md index c302cde0eda1..24c329ad5c38 100644 --- a/receiver/statsdreceiver/README.md +++ b/receiver/statsdreceiver/README.md @@ -69,7 +69,7 @@ receivers: percentiles: [0, 10, 50, 90, 95, 100] ``` -The full list of settings exposed for this receiver are documented [here](./config.go) +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). ## Aggregation diff --git a/receiver/vcenterreceiver/README.md b/receiver/vcenterreceiver/README.md index 4a00fd41e452..b73e779f8d8b 100644 --- a/receiver/vcenterreceiver/README.md +++ b/receiver/vcenterreceiver/README.md @@ -48,7 +48,7 @@ receivers: metrics: [] ``` -The full list of settings exposed for this receiver are documented [here](./config.go) with detailed sample configurations [here](./testdata/config.yaml). TLS config is documented further under the [opentelemetry collector's configtls package](https://github.com/open-telemetry/opentelemetry-collector/blob/main/config/configtls/README.md). +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). TLS config is documented further under the [opentelemetry collector's configtls package](https://github.com/open-telemetry/opentelemetry-collector/blob/main/config/configtls/README.md). ## Metrics diff --git a/receiver/wavefrontreceiver/README.md b/receiver/wavefrontreceiver/README.md index aca05a79a943..42a59dae7715 100644 --- a/receiver/wavefrontreceiver/README.md +++ b/receiver/wavefrontreceiver/README.md @@ -60,6 +60,6 @@ receivers: extract_collectd_tags: true ``` -The full list of settings exposed for this receiver are documented [here](./config.go) +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). diff --git a/receiver/webhookeventreceiver/README.md b/receiver/webhookeventreceiver/README.md index 668d0a67eed0..e145ef566df9 100644 --- a/receiver/webhookeventreceiver/README.md +++ b/receiver/webhookeventreceiver/README.md @@ -44,5 +44,5 @@ receivers: key: "required-header-key" value: "required-header-value" ``` -The full list of settings exposed for this receiver are documented [here](./config.go) with a detailed sample configuration [here](./testdata/config.yaml) +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with a detailed sample configuration [here](./testdata/config.yaml) From 06c3660cec92e4ed0a10a7bb033d27cef81ed430 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sat, 4 Jan 2025 19:51:58 -0500 Subject: [PATCH 404/450] link: default metrics Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/signalfxexporter/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exporter/signalfxexporter/README.md b/exporter/signalfxexporter/README.md index c75295d1e725..5f57d29632f9 100644 --- a/exporter/signalfxexporter/README.md +++ b/exporter/signalfxexporter/README.md @@ -58,12 +58,12 @@ The following configuration options can also be configured: excluded from sending to Signalfx backend. The filtering is applied after the default translations controlled by `disable_default_translation_rules` option. See [here](./testdata/config.yaml) for examples. Apart from the values explicitly - provided via this option, by default, [these](./internal/translation/default_metrics.go) are + provided via this option, by default, [default metrics](./internal/translation/default_metrics.go) are also appended to this list. Setting this option to `[]` will override all the default excludes. - `include_metrics`: List of filters to override exclusion of any metrics. This option can be used to included metrics that are otherwise dropped by - default. See [here](./internal/translation/default_metrics.go) for a list of metrics + default. See [default metrics](./internal/translation/default_metrics.go) for a list of metrics that are dropped by default. For example, the following configuration can be used to send through some of that are dropped by default. ```yaml From e592f51486cabb6297b41dd89742cafe40b3dceb Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 3 Jan 2025 11:27:48 -0500 Subject: [PATCH 405/450] link: distributor config parameter Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/lokiexporter/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exporter/lokiexporter/README.md b/exporter/lokiexporter/README.md index 9cb5401c8204..473f72162740 100644 --- a/exporter/lokiexporter/README.md +++ b/exporter/lokiexporter/README.md @@ -41,7 +41,7 @@ See [OpenTelemetry Logs Data Model specification](https://opentelemetry.io/docs/ | [`Body`](https://opentelemetry.io/docs/specs/otel/logs/data-model/#field-body) | `body` field of the Loki JSON log message | The Loki log message. `__line__`in LogQL functions (e.g. `line_format`)| | [`InstrumentationScope`](https://opentelemetry.io/docs/specs/otel/logs/data-model/#field-instrumentationscope) | `instrumentation_scope_name` field of the JSON log message | `metadata[scope_name]` | | [`Attributes`](https://opentelemetry.io/docs/specs/otel/logs/data-model/#field-attributes) | JSON fields of the Loki log message | `metadata[xyz]` Where `xyz` is the `_` version of the OTel attribute name (e.g. `thread_name` Loki metadata for the `thread.name` OpenTelemetry attribute)| -| [`Resource`](https://opentelemetry.io/docs/specs/otel/logs/data-model/#field-resource) | `service.name`, `service.namespace`, and `service.instance.id` are promoted as the following labels: `job=[${service.namespace}/]${service.name}`, instance=${service.instance.id}, exporter="OTLP"`. Other resource attributes are stored as JSON fields of the Loki log message with the prefix `resources_` (e.g. `resources_k8s_namespace_name`) | Default list of resource attributes promoted as Loki labels: `cloud.availability_zone`, `cloud.region`, `container.name`, `deployment.environment`, `k8s.cluster.name`, `k8s.container.name`, `k8s.cronjob.name`, `k8s.daemonset.name`, `k8s.deployment.name`, `k8s.job.name`, `k8s.namespace.name`, `k8s.pod.name`, `k8s.replicaset.name` `k8s.statefulset.name`, `service.instance.id`, `service.name`, `service.namespace`.
Other resource attributes are by default promoted as Loki message metadata.
ℹ️ The list of promoted resource attributes is configurable using Loki’s distributor config parameter `default_resource_attributes_as_index_labels` when using self managed Loki ([here](https://grafana.com/docs/loki/latest/configure/\#distributor)) or opening a support request when using Grafana Cloud | +| [`Resource`](https://opentelemetry.io/docs/specs/otel/logs/data-model/#field-resource) | `service.name`, `service.namespace`, and `service.instance.id` are promoted as the following labels: `job=[${service.namespace}/]${service.name}`, instance=${service.instance.id}, exporter="OTLP"`. Other resource attributes are stored as JSON fields of the Loki log message with the prefix `resources_` (e.g. `resources_k8s_namespace_name`) | Default list of resource attributes promoted as Loki labels: `cloud.availability_zone`, `cloud.region`, `container.name`, `deployment.environment`, `k8s.cluster.name`, `k8s.container.name`, `k8s.cronjob.name`, `k8s.daemonset.name`, `k8s.deployment.name`, `k8s.job.name`, `k8s.namespace.name`, `k8s.pod.name`, `k8s.replicaset.name` `k8s.statefulset.name`, `service.instance.id`, `service.name`, `service.namespace`.
Other resource attributes are by default promoted as Loki message metadata.
ℹ️ The list of promoted resource attributes is configurable using Loki’s [distributor config parameter](https://grafana.com/docs/loki/latest/configure/\#distributor) `default_resource_attributes_as_index_labels` when using self managed Loki or opening a support request when using Grafana Cloud | ℹ️ Additional conversion rules from OpenTelemetry Logs to Loki @@ -115,7 +115,7 @@ service: * When using Grafana Cloud, the [Grafana Cloud OTLP endpoint](https://grafana.com/docs/grafana-cloud/send-data/otlp/send-data-otlp/) should be used instead of the Loki OTLP endpoint. The connection details of the Grafana Cloud OTLP endpoint, OTLP HTTP URL and credentials are available using the Grafana Cloud "OpenTelemetry Collector" connection tile. * The promotion of OpenTelemetry attributes and resource attributes to Loki labels using the `loki.attribute.labels` and `loki.resource.labels` hints is replaced by the list of promoted attributes managed centrally in Loki. * The default list of resource attributes promoted as labels (see above) should be sufficient for most use cases. -* ℹ️ Changes can be made to this list using the Loki distributor configuration parameter `default_resource_attributes_as_index_labels` ([here](https://grafana.com/docs/loki/latest/configure/\#distributor)) for self managed instances and opening a support ticket for Grafana Cloud. +* ℹ️ Changes can be made to this list using the Loki [distributor config parameter](https://grafana.com/docs/loki/latest/configure/\#distributor) `default_resource_attributes_as_index_labels` for self managed instances and opening a support ticket for Grafana Cloud. #### LogQL queries migration From 10b537823700276c06a964231602d18d8baf214d Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 3 Jan 2025 11:13:22 -0500 Subject: [PATCH 406/450] link: documentation on this functionality (and more keyword options) Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CONTRIBUTING.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b4c1a92d8075..73e5d9ed8228 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -16,8 +16,7 @@ change. For instance: ### Description guidelines When linking to an open issue, if your PR is meant to close said issue, please prefix your issue with one of the -following keywords: `Resolves`, `Fixes`, or `Closes`. More information on this functionality (and more keyword options) can be found -[here](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword). +following keywords: `Resolves`, `Fixes`, or `Closes`. For more information, see the [documentation on this functionality (and more keyword options)](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword). This will automatically close the issue once your PR has been merged. ## Changelog From 6a6b9c0b683e7d0a9f3dbcac3c87b0293188ebd0 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sat, 4 Jan 2025 22:38:46 -0500 Subject: [PATCH 407/450] link: elastic/go-grok: patterns/default.go Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/ottl/ottlfuncs/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/ottl/ottlfuncs/README.md b/pkg/ottl/ottlfuncs/README.md index 3c9deb4a999a..9bbf30821815 100644 --- a/pkg/ottl/ottlfuncs/README.md +++ b/pkg/ottl/ottlfuncs/README.md @@ -728,7 +728,7 @@ Default set consists of: | UUID |"123e4567-e89b-12d3-a456-426614174000" | | URN | "urn:isbn:0451450523", "urn:ietf:rfc:2648" | -and many more. Complete list can be found [here](https://github.com/elastic/go-grok/blob/main/patterns/default.go). +and many more. The complete list can be found in [elastic/go-grok: patterns/default.go](https://github.com/elastic/go-grok/blob/main/patterns/default.go). Examples: From c67a59a996730f28248ca40e1f99fccdcd78eb9e Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 3 Jan 2025 11:22:21 -0500 Subject: [PATCH 408/450] link: example overview Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .github/ISSUE_TEMPLATE/new_component.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/new_component.yaml b/.github/ISSUE_TEMPLATE/new_component.yaml index fd410e5e5481..7fef3c1d3dfc 100644 --- a/.github/ISSUE_TEMPLATE/new_component.yaml +++ b/.github/ISSUE_TEMPLATE/new_component.yaml @@ -6,7 +6,7 @@ body: - type: textarea attributes: label: The purpose and use-cases of the new component - description: This information can be used later on to populate the README for the component. See an example overview [here](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/awsecscontainermetricsreceiver#overview). + description: This information can be used later on to populate the README for the component. See an [example overview](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/awsecscontainermetricsreceiver#overview). validations: required: true - type: textarea From 70f8d57c8ef7f726ded309036f6a4704047c3c51 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 3 Jan 2025 11:23:19 -0500 Subject: [PATCH 409/450] link: exceptionsconnector/config.go Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- connector/exceptionsconnector/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connector/exceptionsconnector/README.md b/connector/exceptionsconnector/README.md index 14ceb097eaf9..25d3f60dedc5 100644 --- a/connector/exceptionsconnector/README.md +++ b/connector/exceptionsconnector/README.md @@ -113,7 +113,7 @@ service: exporters: [loki] ``` -The full list of settings exposed for this connector are documented [here](../../connector/exceptionsconnector/config.go). +The full list of settings exposed for this connector are documented in [exceptionsconnector/config.go](../../connector/exceptionsconnector/config.go). ### More Examples For more example configuration covering various other use cases, please visit the [testdata directory](../../connector/exceptionsconnector/testdata). From eaa1c0f2f5dba5b83d58e05bbb4ae3fc7762091c Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sat, 4 Jan 2025 20:30:59 -0500 Subject: [PATCH 410/450] link: exporter Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/signalfxexporter/README.md | 4 +--- exporter/splunkhecexporter/README.md | 5 ++--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/exporter/signalfxexporter/README.md b/exporter/signalfxexporter/README.md index 5f57d29632f9..7b6945cc5741 100644 --- a/exporter/signalfxexporter/README.md +++ b/exporter/signalfxexporter/README.md @@ -145,9 +145,7 @@ will be replaced with a `_`. ``` - `drop_histogram_buckets`: (default = `false`) if set to true, histogram buckets will not be translated into datapoints with `_bucket` suffix but will be dropped instead, only datapoints with `_sum`, `_count`, `_min` (optional) and `_max` (optional) suffixes will be sent. Please note that this option does not apply to histograms sent in OTLP format with `send_otlp_histograms` enabled. - `send_otlp_histograms`: (default: `false`) if set to true, any histogram metrics receiver by the exporter will be sent to Splunk Observability backend in OTLP format without conversion to SignalFx format. This can only be enabled if the Splunk Observability environment (realm) has the new Histograms feature rolled out. Please note that histograms sent in OTLP format do not apply to the exporter configurations `include_metrics` and `exclude_metrics`. -In addition, this exporter offers queued retry which is enabled by default. -Information about queued retry configuration parameters can be found -[here](https://github.com/open-telemetry/opentelemetry-collector/blob/main/exporter/exporterhelper/README.md). +In addition, this [exporter](https://github.com/open-telemetry/opentelemetry-collector/blob/main/exporter/exporterhelper/README.md) offers queued retry which is enabled by default. ## Traces Configuration (correlation only) diff --git a/exporter/splunkhecexporter/README.md b/exporter/splunkhecexporter/README.md index 51434c5faa40..608be281ef0d 100644 --- a/exporter/splunkhecexporter/README.md +++ b/exporter/splunkhecexporter/README.md @@ -76,9 +76,8 @@ The following configuration options can also be configured: - `telemetry/extra_attributes` (default: empty map): Specifies the extra metrics attributes in splunk hec exporter. - `batcher`(Experimental, disabled by default): Specifies [batching configuration on the exporter](https://github.com/open-telemetry/opentelemetry-collector/blob/main/exporter/exporterhelper/README.md). -In addition, this exporter offers queued retry which is enabled by default. -Information about queued retry configuration parameters can be found -[here](https://github.com/open-telemetry/opentelemetry-collector/blob/main/exporter/exporterhelper/README.md). +In addition, this [exporter](https://github.com/open-telemetry/opentelemetry-collector/blob/main/exporter/exporterhelper/README.md) offers queued retry which is enabled by default. +
If you are getting throttled due to high volume of events the collector might experience memory issues, in those cases it is recommended to change the queued retry [configuration](https://github.com/open-telemetry/opentelemetry-collector/tree/main/exporter/exporterhelper#configuration) to drop events more frequently, for example you can reduce the maximum amount of time spent trying to send a batch from 120s (default) to 60s: ```yaml From 238df7bdf2b24aae4718c897ab1263e8a0aa12fd Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 3 Jan 2025 15:48:06 -0500 Subject: [PATCH 411/450] link: exporterhelper configuration parameters Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/sapmexporter/README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/exporter/sapmexporter/README.md b/exporter/sapmexporter/README.md index 3bb9878e0495..05abbc423310 100644 --- a/exporter/sapmexporter/README.md +++ b/exporter/sapmexporter/README.md @@ -67,8 +67,7 @@ In addition to setting this option to `true`, debug logging at the Collector lev compressed and `compression` option is ignored. In addition, this exporter offers queued retry which is enabled by default. -Information about queued retry configuration parameters can be found -[here](https://github.com/open-telemetry/opentelemetry-collector/blob/main/exporter/exporterhelper/README.md). +For more info, see the [exporterhelper configuration parameters](https://github.com/open-telemetry/opentelemetry-collector/blob/main/exporter/exporterhelper/README.md). Example: From 59218a06ddaac972e2bfcb4dbf047040c851cdef Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 3 Jan 2025 11:24:04 -0500 Subject: [PATCH 412/450] link: exporterhelper Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/azuredataexplorerexporter/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/azuredataexplorerexporter/README.md b/exporter/azuredataexplorerexporter/README.md index 1e44d96b6ea7..dc5b5e372cf1 100644 --- a/exporter/azuredataexplorerexporter/README.md +++ b/exporter/azuredataexplorerexporter/README.md @@ -216,7 +216,7 @@ with ( docstring = "Histo sum count processing function", folder = "UpdatePolicy ### OpenTelemetry Exporter Helper Configurations -The ADX exporter now includes support for OpenTelemetry exporter helper configurations. This feature allows you to leverage the exporter helper capabilities(retries, timeout etc.) provided natively by Otel. Read more [here](https://github.com/open-telemetry/opentelemetry-collector/blob/main/exporter/exporterhelper/README.md). +The ADX exporter now includes support for OpenTelemetry exporter helper configurations. This feature allows you to leverage the exporter helper capabilities(retries, timeout etc.) provided natively by Otel. Read more about [exporterhelper](https://github.com/open-telemetry/opentelemetry-collector/blob/main/exporter/exporterhelper/README.md). Please note that this configuration is not enabled by default. To utilize the OpenTelemetry exporter helper, you will need to add it manually to the configuration. From 7e654bc4450986ff5672e31b3fa201f6ea042934 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 3 Jan 2025 15:40:24 -0500 Subject: [PATCH 413/450] link: full list of `ServerConfig` Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/prometheusexporter/README.md | 2 +- extension/healthcheckextension/README.md | 2 +- extension/healthcheckv2extension/README.md | 2 +- receiver/zipkinreceiver/README.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/exporter/prometheusexporter/README.md b/exporter/prometheusexporter/README.md index 82d10371d28f..952aa9864a17 100644 --- a/exporter/prometheusexporter/README.md +++ b/exporter/prometheusexporter/README.md @@ -19,7 +19,7 @@ Exports data in the [Prometheus format](https://prometheus.io/docs/concepts/data The following settings are required: -- `endpoint` (no default): the address on which metrics will be exposed, using path `/metrics`. For full list of `ServerConfig` refer [here](https://github.com/open-telemetry/opentelemetry-collector/tree/main/config/confighttp). +- `endpoint` (no default): the address on which metrics will be exposed, using path `/metrics`. For more info, see the [full list of `ServerConfig`](https://github.com/open-telemetry/opentelemetry-collector/tree/main/config/confighttp). The following settings can be optionally configured: diff --git a/extension/healthcheckextension/README.md b/extension/healthcheckextension/README.md index 4b4bfb890dd0..55dbeeb02019 100644 --- a/extension/healthcheckextension/README.md +++ b/extension/healthcheckextension/README.md @@ -29,7 +29,7 @@ liveness and/or readiness probe on Kubernetes. The following settings are required: -- `endpoint` (default = localhost:13133): Address to publish the health check status. For full list of `ServerConfig` refer [here](https://github.com/open-telemetry/opentelemetry-collector/tree/main/config/confighttp). See our [security best practices doc](https://opentelemetry.io/docs/security/config-best-practices/#protect-against-denial-of-service-attacks) to understand how to set the endpoint in different environments. +- `endpoint` (default = localhost:13133): Address to publish the health check status. You can review the [full list of `ServerConfig`](https://github.com/open-telemetry/opentelemetry-collector/tree/main/config/confighttp). See our [security best practices doc](https://opentelemetry.io/docs/security/config-best-practices/#protect-against-denial-of-service-attacks) to understand how to set the endpoint in different environments. - `path` (default = "/"): Specifies the path to be configured for the health check server. - `response_body` (default = ""): Specifies a static body that overrides the default response returned by the health check service. diff --git a/extension/healthcheckv2extension/README.md b/extension/healthcheckv2extension/README.md index fdcb8211f509..a1552d05829c 100644 --- a/extension/healthcheckv2extension/README.md +++ b/extension/healthcheckv2extension/README.md @@ -35,7 +35,7 @@ liveness and/or readiness probe on Kubernetes. The following settings are required: -- `endpoint` (default = localhost:13133): Address to publish the health check status. For full list of `ServerConfig` refer [here](https://github.com/open-telemetry/opentelemetry-collector/tree/main/config/confighttp). See our [security best practices doc](https://opentelemetry.io/docs/security/config-best-practices/#protect-against-denial-of-service-attacks) to understand how to set the endpoint in different environments. +- `endpoint` (default = localhost:13133): Address to publish the health check status. You can review the [full list of `ServerConfig`](https://github.com/open-telemetry/opentelemetry-collector/tree/main/config/confighttp). See our [security best practices doc](https://opentelemetry.io/docs/security/config-best-practices/#protect-against-denial-of-service-attacks) to understand how to set the endpoint in different environments. - `path` (default = "/"): Specifies the path to be configured for the health check server. - `response_body` (default = ""): Specifies a static body that overrides the default response returned by the health check service. - `check_collector_pipeline:` (deprecated and ignored): Settings of collector pipeline health check diff --git a/receiver/zipkinreceiver/README.md b/receiver/zipkinreceiver/README.md index 0fc0939be843..58477402adaf 100644 --- a/receiver/zipkinreceiver/README.md +++ b/receiver/zipkinreceiver/README.md @@ -28,7 +28,7 @@ receivers: The following settings are configurable: -- `endpoint` (default = localhost:9411): host:port on which the receiver is going to receive data.See our [security best practices doc](https://opentelemetry.io/docs/security/config-best-practices/#protect-against-denial-of-service-attacks) to understand how to set the endpoint in different environments. For full list of `ServerConfig` refer [here](https://github.com/open-telemetry/opentelemetry-collector/tree/main/config/confighttp). +- `endpoint` (default = localhost:9411): host:port on which the receiver is going to receive data.See our [security best practices doc](https://opentelemetry.io/docs/security/config-best-practices/#protect-against-denial-of-service-attacks) to understand how to set the endpoint in different environments. You can review the [full list of `ServerConfig`](https://github.com/open-telemetry/opentelemetry-collector/tree/main/config/confighttp). - `parse_string_tags` (default = false): if enabled, the receiver will attempt to parse string tags/binary annotations into int/bool/float. ## Advanced Configuration From 1c025bbe6aec4ce770668fefa1895d4b5330af1b Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sat, 4 Jan 2025 22:42:37 -0500 Subject: [PATCH 414/450] link: github.com/bmatcuk/doublestar Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/stanza/docs/operators/file_input.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/stanza/docs/operators/file_input.md b/pkg/stanza/docs/operators/file_input.md index 44688ec7ddd3..5c0a8547f690 100644 --- a/pkg/stanza/docs/operators/file_input.md +++ b/pkg/stanza/docs/operators/file_input.md @@ -38,8 +38,7 @@ The `file_input` operator reads logs from files. It will place the lines read in Note that by default, no logs will be read unless the monitored file is actively being written to because `start_at` defaults to `end`. -`include` and `exclude` fields use `github.com/bmatcuk/doublestar` for expression language. -For reference documentation see [here](https://github.com/bmatcuk/doublestar#patterns). +`include` and `exclude` fields use [`github.com/bmatcuk/doublestar`](https://github.com/bmatcuk/doublestar#patterns) for expression language. #### `multiline` configuration From 8b7b185e14015cf2387cad983b67e6f9c7094a6e Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 3 Jan 2025 12:12:32 -0500 Subject: [PATCH 415/450] link: grpc's naming.md Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/opencensusexporter/README.md | 4 ++-- exporter/otelarrowexporter/README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/exporter/opencensusexporter/README.md b/exporter/opencensusexporter/README.md index e60ce46c85a9..a9d3eca83ee3 100644 --- a/exporter/opencensusexporter/README.md +++ b/exporter/opencensusexporter/README.md @@ -21,8 +21,8 @@ Exports traces and/or metrics via gRPC using The following settings are required: - `endpoint` (no default): host:port to which the exporter is going to send Jaeger trace data, -using the gRPC protocol. The valid syntax is described -[here](https://github.com/grpc/grpc/blob/master/doc/naming.md) +using the gRPC protocol. The valid syntax is described in +[grpc's naming.md](https://github.com/grpc/grpc/blob/master/doc/naming.md). By default, TLS is enabled and must be configured under `tls:`: diff --git a/exporter/otelarrowexporter/README.md b/exporter/otelarrowexporter/README.md index 44d11d98e2e3..8017d73c3090 100644 --- a/exporter/otelarrowexporter/README.md +++ b/exporter/otelarrowexporter/README.md @@ -54,8 +54,8 @@ setting is required. The `tls` setting is required for insecure transport. - `endpoint` (no default): host:port to which the exporter is going to send OTLP trace data, -using the gRPC protocol. The valid syntax is described -[here](https://github.com/grpc/grpc/blob/master/doc/naming.md). +using the gRPC protocol. The valid syntax is described in +[grpc's naming.md](https://github.com/grpc/grpc/blob/master/doc/naming.md). If a scheme of `https` is used then client transport security is enabled and overrides the `insecure` setting. - `tls`: see [TLS Configuration Settings](https://github.com/open-telemetry/opentelemetry-collector/blob/main/config/configtls/README.md) for the full set of available options. From e42c302c756a0118dc6d2ac7518a45c689ba8937 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 3 Jan 2025 11:26:31 -0500 Subject: [PATCH 416/450] link: how to configure the OpenTelemetry integration Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/clickhouseexporter/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/clickhouseexporter/README.md b/exporter/clickhouseexporter/README.md index aa8d8ea9808d..4beea98f17f4 100644 --- a/exporter/clickhouseexporter/README.md +++ b/exporter/clickhouseexporter/README.md @@ -36,7 +36,7 @@ as [ClickHouse document says:](https://clickhouse.com/docs/en/introduction/perfo #### Official ClickHouse Plugin for Grafana The official [ClickHouse Datasource for Grafana](https://grafana.com/grafana/plugins/grafana-clickhouse-datasource/) contains features that integrate directly with this exporter. -You can view associated [logs](https://clickhouse.com/docs/en/integrations/grafana/query-builder#logs) and [traces](https://clickhouse.com/docs/en/integrations/grafana/query-builder#traces), as well as visualize other queries such as tables and time series graphs. Learn how to configure the OpenTelemetry integration [here](https://clickhouse.com/docs/en/integrations/grafana/config#opentelemetry). +You can view associated [logs](https://clickhouse.com/docs/en/integrations/grafana/query-builder#logs) and [traces](https://clickhouse.com/docs/en/integrations/grafana/query-builder#traces), as well as visualize other queries such as tables and time series graphs. Learn [how to configure the OpenTelemetry integration](https://clickhouse.com/docs/en/integrations/grafana/config#opentelemetry). #### Altinity's ClickHouse Plugin for Grafana From d15e4fcc3dba58152d75b72d07ab7b2f5c5d16fb Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 3 Jan 2025 12:11:57 -0500 Subject: [PATCH 417/450] link: how to send logs to Grafana Loki using the OpenTelemetry Collector Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/lokiexporter/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/lokiexporter/README.md b/exporter/lokiexporter/README.md index 473f72162740..56b08dcb01bb 100644 --- a/exporter/lokiexporter/README.md +++ b/exporter/lokiexporter/README.md @@ -308,7 +308,7 @@ If `service.instance.id` is not present then `instance` label is not set The full list of settings exposed for this exporter are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). -More information on how to send logs to Grafana Loki using the OpenTelemetry Collector could be found [here](https://grafana.com/docs/opentelemetry/collector/send-logs-to-loki/) +For more information, see [how to send logs to Grafana Loki using the OpenTelemetry Collector](https://grafana.com/docs/opentelemetry/collector/send-logs-to-loki/) ### Tenant information From 2b0a137398c0e37a929e015c812538bb7f577393 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 3 Jan 2025 10:28:02 -0500 Subject: [PATCH 418/450] link: instructions on how to fork Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CONTRIBUTING.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 73e5d9ed8228..76e9a729714a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -240,8 +240,8 @@ to be included in the distributed otelcol-contrib binaries and docker images. ## Adding metrics to existing receivers Following these steps for contributing additional metrics to existing receivers. - - Read instructions [here](https://github.com/open-telemetry/opentelemetry-collector/blob/main/CONTRIBUTING.md#fork) on how to - fork, build and create PRs. The only difference is to change repository name from `opentelemetry-collector` to `opentelemetry-collector-contrib` + - Read [instructions on how to fork + ](https://github.com/open-telemetry/opentelemetry-collector/blob/main/CONTRIBUTING.md#fork), build and create PRs. The only difference is to change repository name from `opentelemetry-collector` to `opentelemetry-collector-contrib` - Edit `metadata.yaml` of your metrics receiver to add new metrics, e.g.: `redisreceiver/metadata.yaml` - To generate new metrics on top of this updated YAML file. - Run `cd receiver/redisreceiver` From a3b5d830ce0dcea57767b136c0ce90ae85f17017 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sat, 4 Jan 2025 19:33:30 -0500 Subject: [PATCH 419/450] link: interface for a Sentry Transaction Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/sentryexporter/docs/transformation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/sentryexporter/docs/transformation.md b/exporter/sentryexporter/docs/transformation.md index f0fa8238bedd..40a8823b2392 100644 --- a/exporter/sentryexporter/docs/transformation.md +++ b/exporter/sentryexporter/docs/transformation.md @@ -32,7 +32,7 @@ After this first iteration, we are left with two structures, an array of transac We can then try again to classify these orphan spans, but if not possible, we can assume these orphan spans to be a root span (as we could not find their parent in the trace). Those root spans generated from orphan spans can be also be then used to create their respective transactions. -The interface for a Sentry Transaction can be found [here](https://develop.sentry.dev/sdk/event-payloads/transaction/) +For more information, see the [interface for a Sentry Transaction](https://develop.sentry.dev/sdk/event-payloads/transaction/) | Sentry | Used to generate | | ----------------------------- | ---------------------------------------------- | From f208f0634f4c719bc113171709350e1a9a398350 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sat, 4 Jan 2025 22:52:01 -0500 Subject: [PATCH 420/450] link: json-schema.org/understanding-json-schema/reference/array Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/stanza/docs/operators/json_array_parser.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/stanza/docs/operators/json_array_parser.md b/pkg/stanza/docs/operators/json_array_parser.md index 734fed54b560..a4261ce76f26 100644 --- a/pkg/stanza/docs/operators/json_array_parser.md +++ b/pkg/stanza/docs/operators/json_array_parser.md @@ -38,7 +38,7 @@ Notice that for this example, the current parser will parse every nested object ["Hello", 42, "{\"name\": \"Alice\", \"age\": 25}", "[1, 2, 3]", true, null] ``` -More information on json arrays can be found [here](https://json-schema.org/understanding-json-schema/reference/array) +For more information, see [json-schema.org/understanding-json-schema/reference/array](https://json-schema.org/understanding-json-schema/reference/array) ### Configuration Fields From 75d6302aba1989130ce677e76bae34aa473162b6 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sat, 4 Jan 2025 20:31:18 -0500 Subject: [PATCH 421/450] link: offers proxy support Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/signalfxexporter/README.md | 3 +-- exporter/splunkhecexporter/README.md | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/exporter/signalfxexporter/README.md b/exporter/signalfxexporter/README.md index 7b6945cc5741..7f92c718eb8e 100644 --- a/exporter/signalfxexporter/README.md +++ b/exporter/signalfxexporter/README.md @@ -302,8 +302,7 @@ service: The full list of settings exposed for this exporter are documented in [config.go](./config.go) with detailed sample configurations [here](testdata/config.yaml). -This exporter also offers proxy support as documented -[here](https://github.com/open-telemetry/opentelemetry-collector/tree/main/exporter#proxy-support). +This exporter also [offers proxy support](https://github.com/open-telemetry/opentelemetry-collector/tree/main/exporter#proxy-support). ## Advanced Configuration diff --git a/exporter/splunkhecexporter/README.md b/exporter/splunkhecexporter/README.md index 608be281ef0d..3085a1bcc96c 100644 --- a/exporter/splunkhecexporter/README.md +++ b/exporter/splunkhecexporter/README.md @@ -147,8 +147,7 @@ exporters: The full list of settings exposed for this exporter are documented in [config.go](./config.go) with detailed sample configurations [here](testdata/config.yaml). -This exporter also offers proxy support as documented -[here](https://github.com/open-telemetry/opentelemetry-collector/tree/main/exporter#proxy-support). +This exporter also [offers proxy support](https://github.com/open-telemetry/opentelemetry-collector/tree/main/exporter#proxy-support). ## Advanced Configuration From 0257275c0b9caf6615b1df9cda4061b65345fb06 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 3 Jan 2025 15:53:53 -0500 Subject: [PATCH 422/450] link: proxy support Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/sapmexporter/README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/exporter/sapmexporter/README.md b/exporter/sapmexporter/README.md index 05abbc423310..c3320b35d00e 100644 --- a/exporter/sapmexporter/README.md +++ b/exporter/sapmexporter/README.md @@ -85,5 +85,4 @@ exporters: The full list of settings exposed for this exporter are documented in [config.go](./config.go) with detailed sample configurations [here](testdata/config.yaml). -This exporter also offers proxy support as documented -[here](https://github.com/open-telemetry/opentelemetry-collector/tree/main/exporter#proxy-support). +This exporter also offers [proxy support](https://github.com/open-telemetry/opentelemetry-collector/tree/main/exporter#proxy-support). From ea6edb7373c5d8b9b0296f883e47cc6e05200e33 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sat, 4 Jan 2025 22:41:52 -0500 Subject: [PATCH 423/450] link: regexes.yaml Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/ottl/ottlfuncs/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/ottl/ottlfuncs/README.md b/pkg/ottl/ottlfuncs/README.md index 9bbf30821815..f53b955c6baa 100644 --- a/pkg/ottl/ottlfuncs/README.md +++ b/pkg/ottl/ottlfuncs/README.md @@ -2107,7 +2107,7 @@ The `UserAgent` Converter parses the string argument trying to match it against The results of the parsing are returned as a map containing `user_agent.name`, `user_agent.version` and `user_agent.original` as defined in semconv v1.25.0. -Parsing is done using the [uap-go package](https://github.com/ua-parser/uap-go). The specific formats it recognizes can be found [here](https://github.com/ua-parser/uap-core/blob/master/regexes.yaml). +Parsing is done using the [uap-go package](https://github.com/ua-parser/uap-go). The specific formats it recognizes can be found in [regexes.yaml](https://github.com/ua-parser/uap-core/blob/master/regexes.yaml). Examples: From 056891223469517f799158e627cd17c2fbf9c295 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 3 Jan 2025 11:26:52 -0500 Subject: [PATCH 424/450] link: resourcemapping.go Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/googlecloudexporter/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/googlecloudexporter/README.md b/exporter/googlecloudexporter/README.md index b938883331ad..8b99770dc83d 100644 --- a/exporter/googlecloudexporter/README.md +++ b/exporter/googlecloudexporter/README.md @@ -244,7 +244,7 @@ For metrics and logs, this exporter maps the OpenTelemetry Resource to a Google Cloud [Logging](https://cloud.google.com/logging/docs/api/v2/resource-list) or [Monitoring](https://cloud.google.com/monitoring/api/resources) Monitored Resource. -The complete mapping logic can be found [here](https://github.com/GoogleCloudPlatform/opentelemetry-operations-go/blob/main/internal/resourcemapping/resourcemapping.go). +The complete mapping logic can be found in [resourcemapping.go](https://github.com/GoogleCloudPlatform/opentelemetry-operations-go/blob/main/internal/resourcemapping/resourcemapping.go). That may be the most helpful reference if you want to map to a specific monitored resource. From e9fded97345a744ecf904227dd084f67ead550e8 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 3 Jan 2025 15:40:57 -0500 Subject: [PATCH 425/450] link: signalfx/sapm-proto Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/sapmexporter/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/sapmexporter/README.md b/exporter/sapmexporter/README.md index c3320b35d00e..505b5a5144bf 100644 --- a/exporter/sapmexporter/README.md +++ b/exporter/sapmexporter/README.md @@ -27,7 +27,7 @@ exporters: ``` The SAPM exporter builds on the Jaeger proto and adds additional batching on top. This allows the collector to export traces from multiples nodes/services in a single batch. The SAPM proto -and some useful related utilities can be found [here](https://github.com/signalfx/sapm-proto/). +and some useful related utilities is in [signalfx/sapm-proto](https://github.com/signalfx/sapm-proto/). > Please review the Collector's [security > documentation](https://github.com/open-telemetry/opentelemetry-collector/blob/main/docs/security-best-practices.md), From 328d83158993e4f5dd655ac96d41b65adff41cfc Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 3 Jan 2025 11:23:46 -0500 Subject: [PATCH 426/450] link: spanmetricsconnector/config.go Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- connector/spanmetricsconnector/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connector/spanmetricsconnector/README.md b/connector/spanmetricsconnector/README.md index c3c2fe79833e..0de117aa9a40 100644 --- a/connector/spanmetricsconnector/README.md +++ b/connector/spanmetricsconnector/README.md @@ -130,7 +130,7 @@ The following is a simple example usage of the `spanmetrics` connector. For configuration examples on other use cases, please refer to [More Examples](#more-examples). -The full list of settings exposed for this connector are documented [here](../../connector/spanmetricsconnector/config.go). +The full list of settings exposed for this connector are documented in [spanmetricsconnector/config.go](../../connector/spanmetricsconnector/config.go). ```yaml receivers: From bef18d224a58e1aa20a21591f6a535c4988a3862 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 3 Jan 2025 11:22:50 -0500 Subject: [PATCH 427/450] link: specification Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- cmd/opampsupervisor/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/opampsupervisor/README.md b/cmd/opampsupervisor/README.md index 1fce2164ee0d..fcd5f272d3b5 100644 --- a/cmd/opampsupervisor/README.md +++ b/cmd/opampsupervisor/README.md @@ -1,7 +1,7 @@ # OpAMP Supervisor for the OpenTelemetry Collector This is an implementation of an OpAMP Supervisor that runs a Collector instance using configuration provided from an OpAMP server. This implementation -is following a design specified [here](./specification/README.md). +is following a [specification](./specification/README.md). The design is still undergoing changes, and as such this implementation may change as well. ## Experimenting with the supervisor From 1ea96a8c83b234f9c69d1201d5ad4e24032b8881 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 16:50:50 -0500 Subject: [PATCH 428/450] link: By default, insecure settings are rejected and certificate verification is on Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/bigipreceiver/README.md | 2 +- receiver/flinkmetricsreceiver/README.md | 2 +- receiver/mongodbreceiver/README.md | 2 +- receiver/rabbitmqreceiver/README.md | 2 +- receiver/riakreceiver/README.md | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/receiver/bigipreceiver/README.md b/receiver/bigipreceiver/README.md index 445660f681f8..336447e2bdb5 100644 --- a/receiver/bigipreceiver/README.md +++ b/receiver/bigipreceiver/README.md @@ -29,7 +29,7 @@ The following settings are optional: - `endpoint` (default: `https://localhost:443`): The URL of the Big-IP environment. - `collection_interval` (default = `10s`): This receiver collects metrics on an interval. Valid time units are `ns`, `us` (or `µs`), `ms`, `s`, `m`, `h`. -- `tls` (defaults defined [here](https://github.com/open-telemetry/opentelemetry-collector/blob/main/config/configtls/README.md)): TLS control. By default insecure settings are rejected and certificate verification is on. +- `tls`: TLS control. [By default, insecure settings are rejected and certificate verification is on](https://github.com/open-telemetry/opentelemetry-collector/blob/main/config/configtls/README.md). ### Example Configuration diff --git a/receiver/flinkmetricsreceiver/README.md b/receiver/flinkmetricsreceiver/README.md index 3598c3cc9414..2cd000bef0d3 100644 --- a/receiver/flinkmetricsreceiver/README.md +++ b/receiver/flinkmetricsreceiver/README.md @@ -28,7 +28,7 @@ The following settings are optional: - `endpoint` (default: `http://localhost:15672`): The URL of the node to be monitored. - `collection_interval` (default = `10s`): This receiver collects metrics on an interval. Valid time units are `ns`, `us` (or `µs`), `ms`, `s`, `m`, `h`. -- `tls` (defaults defined [here](https://github.com/open-telemetry/opentelemetry-collector/blob/main/config/configtls/README.md)): TLS control. By default insecure settings are rejected and certificate verification is on. +- `tls`: TLS control. [By default, insecure settings are rejected and certificate verification is on](https://github.com/open-telemetry/opentelemetry-collector/blob/main/config/configtls/README.md). - `initial_delay` (default = `1s`): defines how long this receiver waits before starting. ### Example Configuration diff --git a/receiver/mongodbreceiver/README.md b/receiver/mongodbreceiver/README.md index 21dfac1f8c8a..8587fe484c2f 100644 --- a/receiver/mongodbreceiver/README.md +++ b/receiver/mongodbreceiver/README.md @@ -45,7 +45,7 @@ The following settings are optional: - `initial_delay` (default = `1s`): defines how long this receiver waits before starting. - `replica_set`: If the deployment of MongoDB is a replica set then this allows users to specify the replica set name which allows for autodiscovery of other nodes in the replica set. - `timeout`: (default = `1m`) The timeout of running commands against mongo. -- `tls`: (defaults defined [here](https://github.com/open-telemetry/opentelemetry-collector/blob/main/config/configtls/README.md)): TLS control. By default insecure settings are rejected and certificate verification is on. +- `tls`: TLS control. [By default, insecure settings are rejected and certificate verification is on](https://github.com/open-telemetry/opentelemetry-collector/blob/main/config/configtls/README.md). - `direct_connection`: If true, then the driver will not try to autodiscover other nodes, and perform instead a direct connection o the host. ### Example Configuration diff --git a/receiver/rabbitmqreceiver/README.md b/receiver/rabbitmqreceiver/README.md index 40d9172ab44e..1444f70abde5 100644 --- a/receiver/rabbitmqreceiver/README.md +++ b/receiver/rabbitmqreceiver/README.md @@ -33,7 +33,7 @@ The following settings are optional: - `endpoint` (default: `http://localhost:15672`): The URL of the node to be monitored. - `collection_interval` (default = `10s`): This receiver collects metrics on an interval. Valid time units are `ns`, `us` (or `µs`), `ms`, `s`, `m`, `h`. -- `tls` (defaults defined [here](https://github.com/open-telemetry/opentelemetry-collector/blob/main/config/configtls/README.md)): TLS control. By default insecure settings are rejected and certificate verification is on. +- `tls`: TLS control. [By default, insecure settings are rejected and certificate verification is on](https://github.com/open-telemetry/opentelemetry-collector/blob/main/config/configtls/README.md). ### Example Configuration diff --git a/receiver/riakreceiver/README.md b/receiver/riakreceiver/README.md index a04f763b1968..1d235fa25c82 100644 --- a/receiver/riakreceiver/README.md +++ b/receiver/riakreceiver/README.md @@ -30,7 +30,7 @@ The following configuration settings are optional: - `endpoint` (default: `http://localhost:8098`): The URL of the node to be monitored. - `collection_interval` (default = `60s`): This receiver collects metrics on an interval. Valid time units are `ns`, `us` (or `µs`), `ms`, `s`, `m`, `h`. - `initial_delay` (default = `1s`): defines how long this receiver waits before starting. -- `tls` (defaults defined [here](https://github.com/open-telemetry/opentelemetry-collector/blob/main/config/configtls/README.md)): TLS control. By default insecure settings are rejected and certificate verification is on. +- `tls`: TLS control. [By default, insecure settings are rejected and certificate verification is on](https://github.com/open-telemetry/opentelemetry-collector/blob/main/config/configtls/README.md). ### Example Configuration From 18854867b500b20d22cca7db6cb6702a27c3d405 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 13:51:10 -0500 Subject: [PATCH 429/450] link: DefaultMetricSettings Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/snowflakereceiver/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/snowflakereceiver/README.md b/receiver/snowflakereceiver/README.md index 1c4c88c7153a..71d4e5ca071f 100644 --- a/receiver/snowflakereceiver/README.md +++ b/receiver/snowflakereceiver/README.md @@ -24,7 +24,7 @@ The following settings are required: The following settings are optional: -* `metrics` (default: see `DefaultMetricSettings` [here](./internal/metadata/generated_metrics.go)): Controls the enabling/disabling of specific metrics. For in depth documentation on the allowable metrics see [here](./documentation.md). +* `metrics` (default: see [`DefaultMetricSettings`](./internal/metadata/generated_metrics.go)): Controls the enabling/disabling of specific metrics. For in depth documentation on the allowable metrics see [here](./documentation.md). * `schema` (default: 'ACCOUNT_USAGE'): Snowflake DB schema containing usage statistics and metadata to be monitored. * `database` (default: 'SNOWFLAKE'): Snowflake DB containing schema with usage statistics and metadata to be monitored. * `role` (default: 'ACCOUNTADMIN'): Role associated with the username designated above. By default admin privileges are required to access most/all of the usage data. From 76c5ff823b52ec678923a02d0d657faa251d34ee Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sat, 4 Jan 2025 23:04:03 -0500 Subject: [PATCH 430/450] link: DefaultMetricsSettings Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/activedirectorydsreceiver/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/activedirectorydsreceiver/README.md b/receiver/activedirectorydsreceiver/README.md index 36e7fc016aff..fff7f2fafa46 100644 --- a/receiver/activedirectorydsreceiver/README.md +++ b/receiver/activedirectorydsreceiver/README.md @@ -17,7 +17,7 @@ The `active_directory_ds` receiver scrapes metric relating to an Active Director ## Configuration The following settings are optional: -- `metrics` (default: see `DefaultMetricsSettings` [here](./internal/metadata/generated_metrics.go)): Allows enabling and disabling specific metrics from being collected in this receiver. +- `metrics` (default: see [`DefaultMetricsSettings`](./internal/metadata/generated_metrics.go)): Allows enabling and disabling specific metrics from being collected in this receiver. - `collection_interval` (default = `10s`): The interval at which metrics are emitted by this receiver. - `initial_delay` (default = `1s`): defines how long this receiver waits before starting. From 2b0333c4c5a9ec5ae29f31574a4e01292fc6d9a3 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sat, 4 Jan 2025 22:58:00 -0500 Subject: [PATCH 431/450] link: Finer details are documented Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/stanza/docs/types/timestamp.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/stanza/docs/types/timestamp.md b/pkg/stanza/docs/types/timestamp.md index 35078f5896be..d4744818298d 100644 --- a/pkg/stanza/docs/types/timestamp.md +++ b/pkg/stanza/docs/types/timestamp.md @@ -19,7 +19,7 @@ If a timestamp block is specified, the parser operator will perform the timestam The `strptime` layout type approximates familiar strptime/strftime formats. See the table below for a list of supported directives. -The `gotime` layout type uses Golang's native time parsing capabilities. Golang takes an [unconventional approach](https://www.pauladamsmith.com/blog/2011/05/go_time.html) to time parsing. Finer details are documented [here](https://golang.org/src/time/format.go?s=25102:25148#L9). +The `gotime` layout type uses Golang's native time parsing capabilities. Golang takes an [unconventional approach](https://www.pauladamsmith.com/blog/2011/05/go_time.html) to time parsing. [Finer details are documented](https://golang.org/src/time/format.go?s=25102:25148#L9). | `strptime` directive | `gotime` equivalent | Description | | --- | --- | --- | From 3fe9feab81c79a79ff4b18fa819e5a5480864e19 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 13:45:31 -0500 Subject: [PATCH 432/450] link: Grafana Dashboard for metrics from this receiver is on the marketplace Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/githubreceiver/README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/receiver/githubreceiver/README.md b/receiver/githubreceiver/README.md index ecff5133e990..f3009100b517 100644 --- a/receiver/githubreceiver/README.md +++ b/receiver/githubreceiver/README.md @@ -73,9 +73,7 @@ service: exporters: [...] ``` -A Grafana Dashboard exists on the marketplace for metrics from this receiver -and can be found -[here](https://grafana.com/grafana/dashboards/20976-engineering-effectiveness-metrics/). +A [Grafana Dashboard for metrics from this receiver is on the marketplace](https://grafana.com/grafana/dashboards/20976-engineering-effectiveness-metrics/). ## Scraping From 731786541845e8e1e7a58aa6b817bf858fc2d6f2 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 13:48:55 -0500 Subject: [PATCH 433/450] link: Huawei Cloud region Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/huaweicloudcesreceiver/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/huaweicloudcesreceiver/README.md b/receiver/huaweicloudcesreceiver/README.md index 7700c7be894d..cd1c4be6e53f 100644 --- a/receiver/huaweicloudcesreceiver/README.md +++ b/receiver/huaweicloudcesreceiver/README.md @@ -17,7 +17,7 @@ This receiver contains the implementation of the Huawei Cloud [Cloud Eye Service The following settings are required: -- `region_id`: The ID of the Huawei Cloud region from which metrics are collected. For example, `eu-west-101`. The full list of the available regions can be found [here](https://pkg.go.dev/github.com/huaweicloud/huaweicloud-sdk-go-v3@v0.1.104/services/ces/v1/region). +- `region_id`: The ID of the [Huawei Cloud region](https://pkg.go.dev/github.com/huaweicloud/huaweicloud-sdk-go-v3@v0.1.104/services/ces/v1/region) from which metrics are collected. For example, `eu-west-101`. - `project_id`: The ID of the project in Huawei Cloud. This is used to identify which project's metrics are to be collected. See [Obtaining a Project ID](https://support.huaweicloud.com/intl/en-us/devg-apisign/api-sign-provide-proid.html). From c83edc762d89a78c0b6d89fa6e11dd570c790fd4 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 17:01:47 -0500 Subject: [PATCH 434/450] link: Loki HTTP API: Ingest logs Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- CHANGELOG.md | 2 +- receiver/lokireceiver/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 02d3d2ca451f..04d0be3d6358 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3873,7 +3873,7 @@ This release fixes CVE-2024-42368 on the `bearerauthtokenextension` (#34516) ### 🚀 New components 🚀 -- `lokireceiver`: The Loki receiver implements the [Loki push api](https://grafana.com/docs/loki/latest/clients/promtail/#loki-push-api) as specified [here](https://grafana.com/docs/loki/latest/api/#push-log-entries-to-loki) (#18635) +- `lokireceiver`: The Loki receiver implements the [Loki push api](https://grafana.com/docs/loki/latest/clients/promtail/#loki-push-api) as specified in [Loki HTTP API: Ingest logs](https://grafana.com/docs/loki/latest/reference/loki-http-api/#ingest-logs) (#18635) - `cloudflarereceiver`: Adds support for receiving logs from Cloudflare's LogPush API. (#19201) - `webhookeventreceiver`: New component wireframe for webhookeventreceiver (#18101) - `spanmetricsconnector`: Add the `spanmetricsconnector` connector to build. (#18760) diff --git a/receiver/lokireceiver/README.md b/receiver/lokireceiver/README.md index 7786ce40873d..0e91c527e204 100644 --- a/receiver/lokireceiver/README.md +++ b/receiver/lokireceiver/README.md @@ -12,7 +12,7 @@ [contrib]: https://github.com/open-telemetry/opentelemetry-collector-releases/tree/main/distributions/otelcol-contrib -The Loki receiver implements the [Loki push api](https://grafana.com/docs/loki/latest/clients/promtail/#loki-push-api) as specified [here](https://grafana.com/docs/loki/latest/api/#push-log-entries-to-loki). +The Loki receiver implements the [Loki push api](https://grafana.com/docs/loki/latest/clients/promtail/#loki-push-api) as specified in [Loki HTTP API: Ingest logs](https://grafana.com/docs/loki/latest/reference/loki-http-api/#ingest-logs). It allows Promtail instances to specify the open telemetry collector as their lokiAddress. This receiver runs HTTP and GRPC servers to ingest log entries in Loki format. From 46cee572bd1b615892fc2b65c1886cf3df1a1e33 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 14:46:28 -0500 Subject: [PATCH 435/450] link: Prometheus license Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/prometheusreceiver/DESIGN.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/prometheusreceiver/DESIGN.md b/receiver/prometheusreceiver/DESIGN.md index 3a1fbc4d8c23..4c09c5c11ba6 100644 --- a/receiver/prometheusreceiver/DESIGN.md +++ b/receiver/prometheusreceiver/DESIGN.md @@ -156,7 +156,7 @@ type ExemplarAppender interface { } ``` -*Note: the above code belongs to the Prometheus project, its license can be found [here](https://github.com/prometheus/prometheus/blob/v2.26.0/LICENSE)* +*Note: the above code belongs to the Prometheus project, and is covered by the [Prometheus license](https://github.com/prometheus/prometheus/blob/v2.26.0/LICENSE)* One can see that the interface is very simple, it only has 4 methods (once we account for the embedded `ExemplarAppender` interface): `Append`, `AppendExemplar`, From d05c976ba544ade4e6331a27af25d199c1e4b1ee Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sat, 4 Jan 2025 23:06:00 -0500 Subject: [PATCH 436/450] link: apache scoreboard Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/apachereceiver/documentation.md | 2 +- receiver/apachereceiver/metadata.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/receiver/apachereceiver/documentation.md b/receiver/apachereceiver/documentation.md index a0514c8405d2..7190b5fe0588 100644 --- a/receiver/apachereceiver/documentation.md +++ b/receiver/apachereceiver/documentation.md @@ -87,7 +87,7 @@ The number of requests serviced by the HTTP server per second. The number of workers in each state. -The apache scoreboard is an encoded representation of the state of all the server's workers. This metric decodes the scoreboard and presents a count of workers in each state. Additional details can be found [here](https://metacpan.org/pod/Apache::Scoreboard#DESCRIPTION). +The [apache scoreboard](https://metacpan.org/pod/Apache::Scoreboard#DESCRIPTION) is an encoded representation of the state of all the server's workers. This metric decodes the scoreboard and presents a count of workers in each state. | Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic | | ---- | ----------- | ---------- | ----------------------- | --------- | diff --git a/receiver/apachereceiver/metadata.yaml b/receiver/apachereceiver/metadata.yaml index 82b897db1b2d..38ab65b620b1 100644 --- a/receiver/apachereceiver/metadata.yaml +++ b/receiver/apachereceiver/metadata.yaml @@ -164,9 +164,9 @@ metrics: enabled: true description: The number of workers in each state. extended_documentation: >- - The apache scoreboard is an encoded representation of the state of all the server's workers. + The [apache scoreboard](https://metacpan.org/pod/Apache::Scoreboard#DESCRIPTION) + is an encoded representation of the state of all the server's workers. This metric decodes the scoreboard and presents a count of workers in each state. - Additional details can be found [here](https://metacpan.org/pod/Apache::Scoreboard#DESCRIPTION). unit: "{workers}" sum: value_type: int From 12568bee4ccf64bcea16a06d8dffb62787f8e851 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 13:48:09 -0500 Subject: [PATCH 437/450] link: experimentalmetricmetadata/metadata.go Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/k8sclusterreceiver/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/k8sclusterreceiver/README.md b/receiver/k8sclusterreceiver/README.md index 849f0293f07b..9e1f526dc744 100644 --- a/receiver/k8sclusterreceiver/README.md +++ b/receiver/k8sclusterreceiver/README.md @@ -123,7 +123,7 @@ type MetadataDelta struct { } ``` -See [here](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/pkg/experimentalmetricmetadata/metadata.go) for details about the above types. +See [experimentalmetricmetadata/metadata.go](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/pkg/experimentalmetricmetadata/metadata.go) for details about the above types. The same metadata will be also emitted as entity events in the form of log records if this receiver is connected to a logs pipeline. From b16e2cf1a42dcbea8bcacee448b4aa10222d025c Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sat, 4 Jan 2025 22:57:35 -0500 Subject: [PATCH 438/450] link: expression language reference documentation Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/stanza/docs/types/expression.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/stanza/docs/types/expression.md b/pkg/stanza/docs/types/expression.md index 9ae6bf078f7f..c17ba2f824d7 100644 --- a/pkg/stanza/docs/types/expression.md +++ b/pkg/stanza/docs/types/expression.md @@ -4,7 +4,7 @@ Expressions give the config flexibility by allowing dynamic business logic rules Most notably, expressions can be used to route log records and add new fields based on the contents of the log entry being processed. -For reference documentation of the expression language, see [here](https://github.com/expr-lang/expr/blob/master/docs/language-definition.md). +For more information, see the [expression language reference documentation](https://github.com/expr-lang/expr/blob/master/docs/language-definition.md). Available to the expressions are a few special variables: - `body` contains the entry's body From a1a9ed75d35b519b5fd90d8e98a8a2329cf94f2f Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sat, 4 Jan 2025 23:18:29 -0500 Subject: [PATCH 439/450] link: go sdk's default authentication mechanism Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/awsxrayreceiver/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/awsxrayreceiver/README.md b/receiver/awsxrayreceiver/README.md index 5163880970a0..4bc2616d90d6 100644 --- a/receiver/awsxrayreceiver/README.md +++ b/receiver/awsxrayreceiver/README.md @@ -15,7 +15,7 @@ The AWS X-Ray receiver accepts segments (i.e. spans) in the [X-Ray Segment format](https://docs.aws.amazon.com/xray/latest/devguide/xray-api-segmentdocuments.html). This enables the collector to receive spans emitted by the existing X-Ray SDK. [Centralized sampling](https://github.com/aws/aws-xray-daemon/blob/master/CHANGELOG.md#300-2018-08-28) is also supported via a local TCP port. -The requests sent to AWS are authenticated using the mechanism documented [here](https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials). +The requests sent to AWS using the [go sdk's default authentication mechanism](https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials). ## Configuration From 09a68c444f1b519435d5c0e64da46692b79d7b34 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 14:42:41 -0500 Subject: [PATCH 440/450] link: in-depth documentation on the allowable metrics Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/snowflakereceiver/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/snowflakereceiver/README.md b/receiver/snowflakereceiver/README.md index 71d4e5ca071f..86aa4ea5b57c 100644 --- a/receiver/snowflakereceiver/README.md +++ b/receiver/snowflakereceiver/README.md @@ -24,7 +24,7 @@ The following settings are required: The following settings are optional: -* `metrics` (default: see [`DefaultMetricSettings`](./internal/metadata/generated_metrics.go)): Controls the enabling/disabling of specific metrics. For in depth documentation on the allowable metrics see [here](./documentation.md). +* `metrics` (default: see [`DefaultMetricSettings`](./internal/metadata/generated_metrics.go)): Controls the enabling/disabling of specific metrics. See [in-depth documentation on the allowable metrics](./documentation.md). * `schema` (default: 'ACCOUNT_USAGE'): Snowflake DB schema containing usage statistics and metadata to be monitored. * `database` (default: 'SNOWFLAKE'): Snowflake DB containing schema with usage statistics and metadata to be monitored. * `role` (default: 'ACCOUNTADMIN'): Role associated with the username designated above. By default admin privileges are required to access most/all of the usage data. From 455c7561963ab05a8df4e047cccf82d24f24db28 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 16:52:45 -0500 Subject: [PATCH 441/450] link: metadata.yaml Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/kafkametricsreceiver/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/kafkametricsreceiver/README.md b/receiver/kafkametricsreceiver/README.md index 188e4712cce5..c6b9341ca1d2 100644 --- a/receiver/kafkametricsreceiver/README.md +++ b/receiver/kafkametricsreceiver/README.md @@ -31,7 +31,7 @@ Required settings (no defaults): - `consumers` - `brokers` -Metrics collected by the associated scraper are listed [here](metadata.yaml) +Metrics collected by the associated scraper are listed in [metadata.yaml](metadata.yaml) Optional Settings (with defaults): From b9cac261d166affa9d48ec2f72537443bd6c65f1 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 13:49:41 -0500 Subject: [PATCH 442/450] link: node conditions Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/k8sclusterreceiver/README.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/receiver/k8sclusterreceiver/README.md b/receiver/k8sclusterreceiver/README.md index 9e1f526dc744..6fda36a36571 100644 --- a/receiver/k8sclusterreceiver/README.md +++ b/receiver/k8sclusterreceiver/README.md @@ -45,11 +45,9 @@ In addition, metadata of all entities is collected periodically even if no chang This setting controls the interval between periodic collections. Setting the duration to 0 will disable periodic collection (however will not impact metadata collection on changes). -- `node_conditions_to_report` (default = `[Ready]`): An array of node -conditions this receiver should report. See -[here](https://kubernetes.io/docs/concepts/architecture/nodes/#condition) for -list of node conditions. The receiver will emit one metric per entry in the -array. +- `node_conditions_to_report` (default = `[Ready]`): An array of [node +conditions](https://kubernetes.io/docs/concepts/architecture/nodes/#condition) +this receiver should report. The receiver will emit one metric per entry in the array. - `distribution` (default = `kubernetes`): The Kubernetes distribution being used by the cluster. Currently supported versions are `kubernetes` and `openshift`. Setting the value to `openshift` enables OpenShift specific metrics in addition to standard From 31dd8137d860ff1a374337ed123a0b04a22d993e Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 13:48:26 -0500 Subject: [PATCH 443/450] link: opentelemetry-collector-contrib#23565 Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/k8sclusterreceiver/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/k8sclusterreceiver/README.md b/receiver/k8sclusterreceiver/README.md index 6fda36a36571..5c8a28071340 100644 --- a/receiver/k8sclusterreceiver/README.md +++ b/receiver/k8sclusterreceiver/README.md @@ -125,7 +125,7 @@ See [experimentalmetricmetadata/metadata.go](https://github.com/open-telemetry/o The same metadata will be also emitted as entity events in the form of log records if this receiver is connected to a logs pipeline. -See [here](https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/23565) +See [opentelemetry-collector-contrib#23565](https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/23565) for the format of emitted log records. ## Example From 39201e0dcf4c2ec6327dd3ea57515b51db4334d6 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sat, 4 Jan 2025 23:02:47 -0500 Subject: [PATCH 444/450] link: schema URL Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- processor/schemaprocessor/README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/processor/schemaprocessor/README.md b/processor/schemaprocessor/README.md index 1459e163e90e..08e322121d71 100644 --- a/processor/schemaprocessor/README.md +++ b/processor/schemaprocessor/README.md @@ -26,7 +26,7 @@ the translations needed for signals that match the schema URL. ## Schema Formats -A schema URL is made up in two parts, _Schema Family_ and _Schema Version_, the schema URL is broken down like so: +A [schema URL](https://opentelemetry.io/docs/reference/specification/schemas/overview/#schema-url) is made up in two parts, _Schema Family_ and _Schema Version_, the schema URL is broken down like so: ```text | Schema URL | @@ -35,7 +35,6 @@ A schema URL is made up in two parts, _Schema Family_ and _Schema Version_, the ``` The final path in the schema URL _MUST_ be the schema version and the preceding portion of the URL is the _Schema Family_. -To read about schema formats, please read more [here](https://opentelemetry.io/docs/reference/specification/schemas/overview/#schema-url) ## Targets Schemas From 639c8eae546b5aee161477077a0cb59b73bed618 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 16:55:03 -0500 Subject: [PATCH 445/450] link: signalfx/sapm-proto Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/sapmreceiver/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/receiver/sapmreceiver/README.md b/receiver/sapmreceiver/README.md index c423cd58ed35..e42722491185 100644 --- a/receiver/sapmreceiver/README.md +++ b/receiver/sapmreceiver/README.md @@ -16,8 +16,8 @@ The SAPM receiver builds on the Jaeger proto. This allows the collector to receive traces from other collectors or the SignalFx Smart Agent. SAPM proto -and some useful related utilities can be found -[here](https://github.com/signalfx/sapm-proto/). +and some useful related utilities can be found in +[signalfx/sapm-proto](https://github.com/signalfx/sapm-proto/). ## Configuration From 5faa64cdbd7d1bfb80945092a3726c6ea5100cc3 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sat, 4 Jan 2025 23:00:38 -0500 Subject: [PATCH 446/450] link: special attribute names Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- pkg/translator/jaeger/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/translator/jaeger/README.md b/pkg/translator/jaeger/README.md index d4f5870bd1b3..0d58bca55b3c 100644 --- a/pkg/translator/jaeger/README.md +++ b/pkg/translator/jaeger/README.md @@ -162,7 +162,7 @@ generated from [Parent ID](#parent-id), if any. ### Events -Events MUST be converted to Jaeger Logs. OpenTelemetry Event's `time_unix_nano` and `attributes` fields map directly to Jaeger Log's `timestamp` and `fields` fields. Jaeger Log has no direct equivalent for OpenTelemetry Event's `name` field but OpenTracing semantic conventions specify some special attribute names [here](https://github.com/opentracing/specification/blob/master/semantic_conventions.md#log-fields-table). OpenTelemetry Event's `name` field should be added to Jaeger Log's `fields` map as follows: +Events MUST be converted to Jaeger Logs. OpenTelemetry Event's `time_unix_nano` and `attributes` fields map directly to Jaeger Log's `timestamp` and `fields` fields. Jaeger Log has no direct equivalent for OpenTelemetry Event's `name` field but OpenTracing semantic conventions specify some [special attribute names](https://github.com/opentracing/specification/blob/master/semantic_conventions.md#log-fields-table). OpenTelemetry Event's `name` field should be added to Jaeger Log's `fields` map as follows: | OpenTelemetry Event Field | Jaeger Attribute | | -------------------------- | ----------------- | From 5b62d50bca8f5c2d1ccd6670d21417c0ea8645e2 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 5 Jan 2025 15:13:16 -0500 Subject: [PATCH 447/450] link: sql/database Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- receiver/postgresqlreceiver/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/postgresqlreceiver/README.md b/receiver/postgresqlreceiver/README.md index 236125168c19..3c331cbe0068 100644 --- a/receiver/postgresqlreceiver/README.md +++ b/receiver/postgresqlreceiver/README.md @@ -83,7 +83,7 @@ When this feature gate is enabled, the following optional settings are available - `max_idle`: The maximum number of connections in the idle connection pool. - `max_open`: The maximum number of open connections to the database. -Those settings and their defaults are further documented in the `sql/database` package [here](https://pkg.go.dev/database/sql#DB). +Those settings and their defaults are further documented in the [`sql/database`](https://pkg.go.dev/database/sql#DB) package. ### Example Configuration From bad272e181073b52510da92517f8460187a39941 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 3 Jan 2025 11:24:25 -0500 Subject: [PATCH 448/450] link: testdata/config.yaml Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/carbonexporter/README.md | 2 +- exporter/lokiexporter/README.md | 2 +- exporter/sapmexporter/README.md | 2 +- exporter/signalfxexporter/README.md | 4 ++-- exporter/splunkhecexporter/README.md | 2 +- extension/healthcheckextension/README.md | 2 +- extension/httpforwarderextension/README.md | 2 +- extension/pprofextension/README.md | 2 +- processor/resourcedetectionprocessor/README.md | 2 +- receiver/activedirectorydsreceiver/README.md | 2 +- receiver/apachereceiver/README.md | 2 +- receiver/apachesparkreceiver/README.md | 2 +- receiver/bigipreceiver/README.md | 2 +- receiver/carbonreceiver/README.md | 2 +- receiver/cloudfoundryreceiver/README.md | 2 +- receiver/collectdreceiver/README.md | 2 +- receiver/couchdbreceiver/README.md | 2 +- receiver/dockerstatsreceiver/README.md | 2 +- receiver/elasticsearchreceiver/README.md | 2 +- receiver/flinkmetricsreceiver/README.md | 2 +- receiver/k8sclusterreceiver/README.md | 2 +- receiver/k8seventsreceiver/README.md | 2 +- receiver/k8sobjectsreceiver/README.md | 2 +- receiver/kubeletstatsreceiver/README.md | 2 +- receiver/memcachedreceiver/README.md | 2 +- receiver/mongodbreceiver/README.md | 2 +- receiver/mysqlreceiver/README.md | 2 +- receiver/nginxreceiver/README.md | 2 +- receiver/nsxtreceiver/README.md | 2 +- receiver/ntpreceiver/README.md | 2 +- receiver/podmanreceiver/README.md | 2 +- receiver/postgresqlreceiver/README.md | 2 +- receiver/purefareceiver/README.md | 2 +- receiver/purefbreceiver/README.md | 2 +- receiver/rabbitmqreceiver/README.md | 2 +- receiver/receivercreator/README.md | 2 +- receiver/redisreceiver/README.md | 2 +- receiver/saphanareceiver/README.md | 2 +- receiver/sapmreceiver/README.md | 2 +- receiver/signalfxreceiver/README.md | 2 +- receiver/simpleprometheusreceiver/README.md | 2 +- receiver/snmpreceiver/README.md | 2 +- receiver/snowflakereceiver/README.md | 2 +- receiver/splunkenterprisereceiver/README.md | 2 +- receiver/splunkhecreceiver/README.md | 2 +- receiver/sqlserverreceiver/README.md | 2 +- receiver/sshcheckreceiver/README.md | 2 +- receiver/statsdreceiver/README.md | 2 +- receiver/vcenterreceiver/README.md | 2 +- receiver/wavefrontreceiver/README.md | 2 +- receiver/webhookeventreceiver/README.md | 2 +- 51 files changed, 52 insertions(+), 52 deletions(-) diff --git a/exporter/carbonexporter/README.md b/exporter/carbonexporter/README.md index 780f531f34a6..8e02f26b73be 100644 --- a/exporter/carbonexporter/README.md +++ b/exporter/carbonexporter/README.md @@ -40,7 +40,7 @@ exporters: ``` The full list of settings exposed for this receiver are documented in [config.go](./config.go) -with detailed sample configurations [here](./testdata/config.yaml). +with detailed sample configurations in [testdata/config.yaml](./testdata/config.yaml). ## Advanced Configuration diff --git a/exporter/lokiexporter/README.md b/exporter/lokiexporter/README.md index 56b08dcb01bb..02e79fc203de 100644 --- a/exporter/lokiexporter/README.md +++ b/exporter/lokiexporter/README.md @@ -306,7 +306,7 @@ If `service.instance.id` is present then `instance=service.instance.id` is set If `service.instance.id` is not present then `instance` label is not set The full list of settings exposed for this exporter are documented in [config.go](./config.go) with detailed sample -configurations [here](./testdata/config.yaml). +configurations in [testdata/config.yaml](./testdata/config.yaml). For more information, see [how to send logs to Grafana Loki using the OpenTelemetry Collector](https://grafana.com/docs/opentelemetry/collector/send-logs-to-loki/) diff --git a/exporter/sapmexporter/README.md b/exporter/sapmexporter/README.md index 505b5a5144bf..f97dbdd2f945 100644 --- a/exporter/sapmexporter/README.md +++ b/exporter/sapmexporter/README.md @@ -83,6 +83,6 @@ exporters: ``` The full list of settings exposed for this exporter are documented in [config.go](./config.go) -with detailed sample configurations [here](testdata/config.yaml). +with detailed sample configurations in [testdata/config.yaml](./testdata/config.yaml). This exporter also offers [proxy support](https://github.com/open-telemetry/opentelemetry-collector/tree/main/exporter#proxy-support). diff --git a/exporter/signalfxexporter/README.md b/exporter/signalfxexporter/README.md index 7f92c718eb8e..6b554b8cd952 100644 --- a/exporter/signalfxexporter/README.md +++ b/exporter/signalfxexporter/README.md @@ -57,7 +57,7 @@ The following configuration options can also be configured: - `exclude_metrics`: List of metric filters that will determine metrics to be excluded from sending to Signalfx backend. The filtering is applied after the default translations controlled by `disable_default_translation_rules` option. - See [here](./testdata/config.yaml) for examples. Apart from the values explicitly + See in [testdata/config.yaml](./testdata/config.yaml) for examples. Apart from the values explicitly provided via this option, by default, [default metrics](./internal/translation/default_metrics.go) are also appended to this list. Setting this option to `[]` will override all the default excludes. @@ -300,7 +300,7 @@ service: ``` The full list of settings exposed for this exporter are documented in [config.go](./config.go) -with detailed sample configurations [here](testdata/config.yaml). +with detailed sample configurations in [testdata/config.yaml](./testdata/config.yaml). This exporter also [offers proxy support](https://github.com/open-telemetry/opentelemetry-collector/tree/main/exporter#proxy-support). diff --git a/exporter/splunkhecexporter/README.md b/exporter/splunkhecexporter/README.md index 3085a1bcc96c..930dbb5c4f5a 100644 --- a/exporter/splunkhecexporter/README.md +++ b/exporter/splunkhecexporter/README.md @@ -145,7 +145,7 @@ exporters: ``` The full list of settings exposed for this exporter are documented in [config.go](./config.go) -with detailed sample configurations [here](testdata/config.yaml). +with detailed sample configurations in [testdata/config.yaml](./testdata/config.yaml). This exporter also [offers proxy support](https://github.com/open-telemetry/opentelemetry-collector/tree/main/exporter#proxy-support). diff --git a/extension/healthcheckextension/README.md b/extension/healthcheckextension/README.md index 55dbeeb02019..edae0acb83dc 100644 --- a/extension/healthcheckextension/README.md +++ b/extension/healthcheckextension/README.md @@ -48,4 +48,4 @@ extensions: ``` The full list of settings exposed for this exporter is documented in [config.go](./config.go) -with detailed sample configurations [here](./testdata/config.yaml). +with detailed sample configurations in [testdata/config.yaml](./testdata/config.yaml). diff --git a/extension/httpforwarderextension/README.md b/extension/httpforwarderextension/README.md index cfbdac8f9556..e3028a55e865 100644 --- a/extension/httpforwarderextension/README.md +++ b/extension/httpforwarderextension/README.md @@ -45,4 +45,4 @@ The following settings can be optionally configured: ``` The full list of settings exposed for this exporter are documented in [config.go](./config.go) -with detailed sample configurations [here](testdata/config.yaml). +with detailed sample configurations in [testdata/config.yaml](./testdata/config.yaml). diff --git a/extension/pprofextension/README.md b/extension/pprofextension/README.md index 9a4b66f96a68..4dafebda47ea 100644 --- a/extension/pprofextension/README.md +++ b/extension/pprofextension/README.md @@ -43,7 +43,7 @@ extensions: ``` The full list of settings exposed for this exporter are documented in [config.go](./config.go) -with detailed sample configurations [here](./testdata/config.yaml). +with detailed sample configurations in [testdata/config.yaml](./testdata/config.yaml). ### Go Profiling with pprof basics diff --git a/processor/resourcedetectionprocessor/README.md b/processor/resourcedetectionprocessor/README.md index 6ae1551e4a61..6186156d57ab 100644 --- a/processor/resourcedetectionprocessor/README.md +++ b/processor/resourcedetectionprocessor/README.md @@ -589,4 +589,4 @@ Note that if multiple detectors are inserting the same attribute name, the first * ec2 The full list of settings exposed for this extension are documented in [config.go](./config.go) -with detailed sample configurations [here](./testdata/config.yaml). +with detailed sample configurations in [testdata/config.yaml](./testdata/config.yaml). diff --git a/receiver/activedirectorydsreceiver/README.md b/receiver/activedirectorydsreceiver/README.md index fff7f2fafa46..d45ccd6b1eff 100644 --- a/receiver/activedirectorydsreceiver/README.md +++ b/receiver/activedirectorydsreceiver/README.md @@ -31,7 +31,7 @@ receivers: active_directory.ds.replication.network.io: false ``` -The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations in [testdata/config.yaml](./testdata/config.yaml). ## Metrics diff --git a/receiver/apachereceiver/README.md b/receiver/apachereceiver/README.md index b0d68d7e5949..b57a7abfb830 100644 --- a/receiver/apachereceiver/README.md +++ b/receiver/apachereceiver/README.md @@ -40,7 +40,7 @@ receivers: endpoint: "http://localhost:8080/server-status?auto" ``` -The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations in [testdata/config.yaml](./testdata/config.yaml). ## Metrics diff --git a/receiver/apachesparkreceiver/README.md b/receiver/apachesparkreceiver/README.md index 3e642869931c..2dbe79ab733c 100644 --- a/receiver/apachesparkreceiver/README.md +++ b/receiver/apachesparkreceiver/README.md @@ -47,7 +47,7 @@ receivers: - PythonLR ``` -The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations in [testdata/config.yaml](./testdata/config.yaml). ## Metrics diff --git a/receiver/bigipreceiver/README.md b/receiver/bigipreceiver/README.md index 336447e2bdb5..d2a6051a6f5c 100644 --- a/receiver/bigipreceiver/README.md +++ b/receiver/bigipreceiver/README.md @@ -44,7 +44,7 @@ receivers: insecure_skip_verify: true ``` -The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). TLS config is documented further under the [opentelemetry collector's configtls package](https://github.com/open-telemetry/opentelemetry-collector/blob/main/config/configtls/README.md). +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations in [testdata/config.yaml](./testdata/config.yaml). TLS config is documented further under the [opentelemetry collector's configtls package](https://github.com/open-telemetry/opentelemetry-collector/blob/main/config/configtls/README.md). ## Metrics diff --git a/receiver/carbonreceiver/README.md b/receiver/carbonreceiver/README.md index da553c5eed6f..b4e2c5755557 100644 --- a/receiver/carbonreceiver/README.md +++ b/receiver/carbonreceiver/README.md @@ -65,5 +65,5 @@ receivers: ``` The full list of settings exposed for this receiver are documented in [config.go](./config.go) -with detailed sample configurations [here](./testdata/config.yaml). +with detailed sample configurations in [testdata/config.yaml](./testdata/config.yaml). diff --git a/receiver/cloudfoundryreceiver/README.md b/receiver/cloudfoundryreceiver/README.md index 438a419a1e14..941ce4a70d9c 100644 --- a/receiver/cloudfoundryreceiver/README.md +++ b/receiver/cloudfoundryreceiver/README.md @@ -73,7 +73,7 @@ receivers: ``` The full list of settings exposed for this receiver are documented in [config.go](./config.go) -with detailed sample configurations [here](./testdata/config.yaml). +with detailed sample configurations in [testdata/config.yaml](./testdata/config.yaml). ## Telemetry common Attributes diff --git a/receiver/collectdreceiver/README.md b/receiver/collectdreceiver/README.md index 831b78bd5b13..e36bb6a95005 100644 --- a/receiver/collectdreceiver/README.md +++ b/receiver/collectdreceiver/README.md @@ -50,5 +50,5 @@ receivers: ``` The full list of settings exposed for this receiver are documented in [config.go](./config.go) -with detailed sample configurations [here](./testdata/config.yaml). +with detailed sample configurations in [testdata/config.yaml](./testdata/config.yaml). diff --git a/receiver/couchdbreceiver/README.md b/receiver/couchdbreceiver/README.md index 02877c9b5084..6ccb441affb8 100644 --- a/receiver/couchdbreceiver/README.md +++ b/receiver/couchdbreceiver/README.md @@ -42,7 +42,7 @@ receivers: collection_interval: 60s ``` -The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). TLS config is documented further under the [opentelemetry collector's configtls package](https://github.com/open-telemetry/opentelemetry-collector/blob/main/config/configtls/README.md). +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations in [testdata/config.yaml](./testdata/config.yaml). TLS config is documented further under the [opentelemetry collector's configtls package](https://github.com/open-telemetry/opentelemetry-collector/blob/main/config/configtls/README.md). ## Metrics diff --git a/receiver/dockerstatsreceiver/README.md b/receiver/dockerstatsreceiver/README.md index 666e6a5245d3..48e88460b639 100644 --- a/receiver/dockerstatsreceiver/README.md +++ b/receiver/dockerstatsreceiver/README.md @@ -71,7 +71,7 @@ receivers: ``` The full list of settings exposed for this receiver are documented in [config.go](./config.go) -with detailed sample configurations [here](./testdata/config.yaml). +with detailed sample configurations in [testdata/config.yaml](./testdata/config.yaml). ## Deprecations diff --git a/receiver/elasticsearchreceiver/README.md b/receiver/elasticsearchreceiver/README.md index 752a3bb44fe2..8803a1e2c96d 100644 --- a/receiver/elasticsearchreceiver/README.md +++ b/receiver/elasticsearchreceiver/README.md @@ -51,7 +51,7 @@ receivers: collection_interval: 10s ``` -The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations in [testdata/config.yaml](./testdata/config.yaml). ## Metrics diff --git a/receiver/flinkmetricsreceiver/README.md b/receiver/flinkmetricsreceiver/README.md index 2cd000bef0d3..9a1f1267238c 100644 --- a/receiver/flinkmetricsreceiver/README.md +++ b/receiver/flinkmetricsreceiver/README.md @@ -40,7 +40,7 @@ receivers: collection_interval: 10s ``` -The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). TLS config is documented further under the [opentelemetry collector's configtls package](https://github.com/open-telemetry/opentelemetry-collector/blob/main/config/configtls/README.md). +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations in [testdata/config.yaml](./testdata/config.yaml). TLS config is documented further under the [opentelemetry collector's configtls package](https://github.com/open-telemetry/opentelemetry-collector/blob/main/config/configtls/README.md). ## Metrics diff --git a/receiver/k8sclusterreceiver/README.md b/receiver/k8sclusterreceiver/README.md index 5c8a28071340..1ebd6af45761 100644 --- a/receiver/k8sclusterreceiver/README.md +++ b/receiver/k8sclusterreceiver/README.md @@ -78,7 +78,7 @@ Example: ``` The full list of settings exposed for this receiver are documented in [config.go](./config.go) -with detailed sample configurations [here](./testdata/config.yaml). +with detailed sample configurations in [testdata/config.yaml](./testdata/config.yaml). ### node_conditions_to_report diff --git a/receiver/k8seventsreceiver/README.md b/receiver/k8seventsreceiver/README.md index 3ad7f259e25f..f2a0f6a05467 100644 --- a/receiver/k8seventsreceiver/README.md +++ b/receiver/k8seventsreceiver/README.md @@ -40,7 +40,7 @@ Examples: ``` The full list of settings exposed for this receiver are documented in [config.go](./config.go) -with detailed sample configurations [here](./testdata/config.yaml). +with detailed sample configurations in [testdata/config.yaml](./testdata/config.yaml). ## Example diff --git a/receiver/k8sobjectsreceiver/README.md b/receiver/k8sobjectsreceiver/README.md index 3231ff192e9f..c7bc34d7355c 100644 --- a/receiver/k8sobjectsreceiver/README.md +++ b/receiver/k8sobjectsreceiver/README.md @@ -59,7 +59,7 @@ this case, it will select `v1` by default. The full list of settings exposed for this receiver are documented in [config.go](./config.go) -with detailed sample configurations [here](./testdata/config.yaml). +with detailed sample configurations in [testdata/config.yaml](./testdata/config.yaml). Follow the below sections to setup various Kubernetes resources required for the deployment. diff --git a/receiver/kubeletstatsreceiver/README.md b/receiver/kubeletstatsreceiver/README.md index f6c7cb7b8d19..9531dbd4cb49 100644 --- a/receiver/kubeletstatsreceiver/README.md +++ b/receiver/kubeletstatsreceiver/README.md @@ -264,7 +264,7 @@ The following parameters can also be specified: - `insecure_skip_verify` (default = `false`): Whether or not to skip certificate verification. The full list of settings exposed for this receiver are documented in [config.go](./config.go) -with detailed sample configurations [here](./testdata/config.yaml). +with detailed sample configurations in [testdata/config.yaml](./testdata/config.yaml). ### Role-based access control diff --git a/receiver/memcachedreceiver/README.md b/receiver/memcachedreceiver/README.md index 657e61e12190..b9a1ae3f7eef 100644 --- a/receiver/memcachedreceiver/README.md +++ b/receiver/memcachedreceiver/README.md @@ -47,7 +47,7 @@ receivers: ``` The full list of settings exposed for this receiver are documented in [config.go](./config.go) -with detailed sample configurations [here](./testdata/config.yaml). +with detailed sample configurations in [testdata/config.yaml](./testdata/config.yaml). ## Metrics diff --git a/receiver/mongodbreceiver/README.md b/receiver/mongodbreceiver/README.md index 8587fe484c2f..afcd09c14cd9 100644 --- a/receiver/mongodbreceiver/README.md +++ b/receiver/mongodbreceiver/README.md @@ -64,7 +64,7 @@ receivers: insecure_skip_verify: true ``` -The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations in [testdata/config.yaml](./testdata/config.yaml). ## Metrics diff --git a/receiver/mysqlreceiver/README.md b/receiver/mysqlreceiver/README.md index bf684401c41e..541fcb76f9ec 100644 --- a/receiver/mysqlreceiver/README.md +++ b/receiver/mysqlreceiver/README.md @@ -63,7 +63,7 @@ receivers: limit: 250 ``` -The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations in [testdata/config.yaml](./testdata/config.yaml). ## Metrics diff --git a/receiver/nginxreceiver/README.md b/receiver/nginxreceiver/README.md index 4d59d62b2835..d8a09fd28534 100644 --- a/receiver/nginxreceiver/README.md +++ b/receiver/nginxreceiver/README.md @@ -45,4 +45,4 @@ receivers: ``` The full list of settings exposed for this receiver are documented in [config.go](./config.go) -with detailed sample configurations [here](./testdata/config.yaml). +with detailed sample configurations in [testdata/config.yaml](./testdata/config.yaml). diff --git a/receiver/nsxtreceiver/README.md b/receiver/nsxtreceiver/README.md index d619b8b9cda5..50d702979bbb 100644 --- a/receiver/nsxtreceiver/README.md +++ b/receiver/nsxtreceiver/README.md @@ -72,7 +72,7 @@ service: exporters: [file] ``` -The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations in [testdata/config.yaml](./testdata/config.yaml). ## Metrics diff --git a/receiver/ntpreceiver/README.md b/receiver/ntpreceiver/README.md index 8b6cc7694f8e..ccb8c8be16d4 100644 --- a/receiver/ntpreceiver/README.md +++ b/receiver/ntpreceiver/README.md @@ -38,7 +38,7 @@ receivers: initial_delay: 5m ``` -The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./internal/metadata/testdata/config.yaml). +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations in [testdata/config.yaml](./internal/metadata/testdata/config.yaml). ## Metrics diff --git a/receiver/podmanreceiver/README.md b/receiver/podmanreceiver/README.md index 569ef21fa568..80469b7d4a83 100644 --- a/receiver/podmanreceiver/README.md +++ b/receiver/podmanreceiver/README.md @@ -49,7 +49,7 @@ receivers: ``` The full list of settings exposed for this receiver are documented in [config.go](./config.go) -with detailed sample configurations [here](./testdata/config.yaml). +with detailed sample configurations in [testdata/config.yaml](./testdata/config.yaml). ### Connecting over SSH diff --git a/receiver/postgresqlreceiver/README.md b/receiver/postgresqlreceiver/README.md index 3c331cbe0068..3bd3cb423a35 100644 --- a/receiver/postgresqlreceiver/README.md +++ b/receiver/postgresqlreceiver/README.md @@ -69,7 +69,7 @@ receivers: key_file: /home/otel/mypostgreskey.key ``` -The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). TLS config is documented further under the [opentelemetry collector's configtls package](https://github.com/open-telemetry/opentelemetry-collector/blob/main/config/configtls/README.md). +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations in [testdata/config.yaml](./testdata/config.yaml). TLS config is documented further under the [opentelemetry collector's configtls package](https://github.com/open-telemetry/opentelemetry-collector/blob/main/config/configtls/README.md). ## Connection pool feature diff --git a/receiver/purefareceiver/README.md b/receiver/purefareceiver/README.md index faad5aff3232..47e0b616a058 100644 --- a/receiver/purefareceiver/README.md +++ b/receiver/purefareceiver/README.md @@ -107,5 +107,5 @@ service: ``` The full list of settings exposed for this receiver are documented in [config.go](./config.go) -with detailed sample configurations [here](./testdata/config.yaml). +with detailed sample configurations in [testdata/config.yaml](./testdata/config.yaml). diff --git a/receiver/purefbreceiver/README.md b/receiver/purefbreceiver/README.md index b6b11c64acab..bacff705f096 100644 --- a/receiver/purefbreceiver/README.md +++ b/receiver/purefbreceiver/README.md @@ -51,5 +51,5 @@ receivers: ``` The full list of settings exposed for this receiver are documented in [config.go](./config.go) -with detailed sample configurations [here](./testdata/config.yaml). +with detailed sample configurations in [testdata/config.yaml](./testdata/config.yaml). diff --git a/receiver/rabbitmqreceiver/README.md b/receiver/rabbitmqreceiver/README.md index 1444f70abde5..6cba54006b97 100644 --- a/receiver/rabbitmqreceiver/README.md +++ b/receiver/rabbitmqreceiver/README.md @@ -46,7 +46,7 @@ receivers: collection_interval: 10s ``` -The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). TLS config is documented further under the [opentelemetry collector's configtls package](https://github.com/open-telemetry/opentelemetry-collector/blob/main/config/configtls/README.md). +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations in [testdata/config.yaml](./testdata/config.yaml). TLS config is documented further under the [opentelemetry collector's configtls package](https://github.com/open-telemetry/opentelemetry-collector/blob/main/config/configtls/README.md). ## Metrics diff --git a/receiver/receivercreator/README.md b/receiver/receivercreator/README.md index 2f023084fbf2..980261765f9c 100644 --- a/receiver/receivercreator/README.md +++ b/receiver/receivercreator/README.md @@ -438,7 +438,7 @@ service: ``` The full list of settings exposed for this receiver are documented in [config.go](./config.go) -with detailed sample configurations [here](./testdata/config.yaml). +with detailed sample configurations in [testdata/config.yaml](./testdata/config.yaml). ## Generate receiver configurations from provided Hints diff --git a/receiver/redisreceiver/README.md b/receiver/redisreceiver/README.md index 513a6e25505e..6935baf1d551 100644 --- a/receiver/redisreceiver/README.md +++ b/receiver/redisreceiver/README.md @@ -96,5 +96,5 @@ receivers: ``` The full list of settings exposed for this receiver are documented in [config.go](./config.go) -with detailed sample configurations [here](./testdata/config.yaml). +with detailed sample configurations in [testdata/config.yaml](./testdata/config.yaml). diff --git a/receiver/saphanareceiver/README.md b/receiver/saphanareceiver/README.md index 06d77b77ba72..058ad2ad498b 100644 --- a/receiver/saphanareceiver/README.md +++ b/receiver/saphanareceiver/README.md @@ -93,7 +93,7 @@ receivers: ``` The full list of settings exposed for this receiver are documented in [config.go](./config.go) -with detailed sample configurations [here](./testdata/config.yaml). +with detailed sample configurations in [testdata/config.yaml](./testdata/config.yaml). ## Metrics diff --git a/receiver/sapmreceiver/README.md b/receiver/sapmreceiver/README.md index e42722491185..2cef11fb8a01 100644 --- a/receiver/sapmreceiver/README.md +++ b/receiver/sapmreceiver/README.md @@ -53,4 +53,4 @@ receivers: ``` The full list of settings exposed for this receiver are documented in [config.go](./config.go) -with detailed sample configurations [here](./testdata/config.yaml). +with detailed sample configurations in [testdata/config.yaml](./testdata/config.yaml). diff --git a/receiver/signalfxreceiver/README.md b/receiver/signalfxreceiver/README.md index b57503e2d781..0a0d8eb19d91 100644 --- a/receiver/signalfxreceiver/README.md +++ b/receiver/signalfxreceiver/README.md @@ -58,7 +58,7 @@ receivers: ``` The full list of settings exposed for this receiver are documented in [config.go](./config.go) -with detailed sample configurations [here](./testdata/config.yaml). +with detailed sample configurations in [testdata/config.yaml](./testdata/config.yaml). > :warning: When enabling the SignalFx receiver or exporter, configure both the `metrics` and `logs` pipelines. diff --git a/receiver/simpleprometheusreceiver/README.md b/receiver/simpleprometheusreceiver/README.md index 1081d952d2db..cde8339a3315 100644 --- a/receiver/simpleprometheusreceiver/README.md +++ b/receiver/simpleprometheusreceiver/README.md @@ -76,4 +76,4 @@ Example: ``` The full list of settings exposed for this receiver are documented in [config.go](./config.go) -with detailed sample configurations [here](./testdata/config.yaml). +with detailed sample configurations in [testdata/config.yaml](./testdata/config.yaml). diff --git a/receiver/snmpreceiver/README.md b/receiver/snmpreceiver/README.md index b9cdbfd33110..c56dd12789de 100644 --- a/receiver/snmpreceiver/README.md +++ b/receiver/snmpreceiver/README.md @@ -248,5 +248,5 @@ receivers: ``` -The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations in [testdata/config.yaml](./testdata/config.yaml). diff --git a/receiver/snowflakereceiver/README.md b/receiver/snowflakereceiver/README.md index 86aa4ea5b57c..caf353580708 100644 --- a/receiver/snowflakereceiver/README.md +++ b/receiver/snowflakereceiver/README.md @@ -46,4 +46,4 @@ receivers: enabled: false ``` -The full list of settings exposed for this receiver are documented in [config.go](./config.go) with a detailed sample configuration [here](./testdata/config.yaml) +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with a detailed sample configuration in [testdata/config.yaml](./testdata/config.yaml) diff --git a/receiver/splunkenterprisereceiver/README.md b/receiver/splunkenterprisereceiver/README.md index 5e4f4c7bd025..5149567e4dec 100644 --- a/receiver/splunkenterprisereceiver/README.md +++ b/receiver/splunkenterprisereceiver/README.md @@ -71,4 +71,4 @@ service: exporters: [debug] ``` -For a full list of settings exposed by this receiver please look in [config.go](./config.go) with a detailed configuration [here](./testdata/config.yaml). +For a full list of settings exposed by this receiver please look in [config.go](./config.go) with a detailed configuration in [testdata/config.yaml](./testdata/config.yaml). diff --git a/receiver/splunkhecreceiver/README.md b/receiver/splunkhecreceiver/README.md index f5d85f90b53a..906659cdf690 100644 --- a/receiver/splunkhecreceiver/README.md +++ b/receiver/splunkhecreceiver/README.md @@ -76,6 +76,6 @@ receivers: ``` The full list of settings exposed for this receiver are documented in [config.go](./config.go) -with detailed sample configurations [here](./testdata/config.yaml). +with detailed sample configurations in [testdata/config.yaml](./testdata/config.yaml). [configtls]: https://github.com/open-telemetry/opentelemetry-collector/blob/main/config/configtls diff --git a/receiver/sqlserverreceiver/README.md b/receiver/sqlserverreceiver/README.md index 8f4d7f4d2340..86b051cb0291 100644 --- a/receiver/sqlserverreceiver/README.md +++ b/receiver/sqlserverreceiver/README.md @@ -66,7 +66,7 @@ Example with named instance: enabled: true ``` -The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations in [testdata/config.yaml](./testdata/config.yaml). ## Metrics diff --git a/receiver/sshcheckreceiver/README.md b/receiver/sshcheckreceiver/README.md index 71748af90c5b..abaa6308ca76 100644 --- a/receiver/sshcheckreceiver/README.md +++ b/receiver/sshcheckreceiver/README.md @@ -44,7 +44,7 @@ receivers: collection_interval: 60s ``` -The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations in [testdata/config.yaml](./testdata/config.yaml). ## Metrics diff --git a/receiver/statsdreceiver/README.md b/receiver/statsdreceiver/README.md index 24c329ad5c38..eb84ef18e6a2 100644 --- a/receiver/statsdreceiver/README.md +++ b/receiver/statsdreceiver/README.md @@ -70,7 +70,7 @@ receivers: ``` The full list of settings exposed for this receiver are documented in [config.go](./config.go) -with detailed sample configurations [here](./testdata/config.yaml). +with detailed sample configurations in [testdata/config.yaml](./testdata/config.yaml). ## Aggregation diff --git a/receiver/vcenterreceiver/README.md b/receiver/vcenterreceiver/README.md index b73e779f8d8b..c23fae314858 100644 --- a/receiver/vcenterreceiver/README.md +++ b/receiver/vcenterreceiver/README.md @@ -48,7 +48,7 @@ receivers: metrics: [] ``` -The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations [here](./testdata/config.yaml). TLS config is documented further under the [opentelemetry collector's configtls package](https://github.com/open-telemetry/opentelemetry-collector/blob/main/config/configtls/README.md). +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with detailed sample configurations in [testdata/config.yaml](./testdata/config.yaml). TLS config is documented further under the [opentelemetry collector's configtls package](https://github.com/open-telemetry/opentelemetry-collector/blob/main/config/configtls/README.md). ## Metrics diff --git a/receiver/wavefrontreceiver/README.md b/receiver/wavefrontreceiver/README.md index 42a59dae7715..61a1a709a9b6 100644 --- a/receiver/wavefrontreceiver/README.md +++ b/receiver/wavefrontreceiver/README.md @@ -61,5 +61,5 @@ receivers: ``` The full list of settings exposed for this receiver are documented in [config.go](./config.go) -with detailed sample configurations [here](./testdata/config.yaml). +with detailed sample configurations in [testdata/config.yaml](./testdata/config.yaml). diff --git a/receiver/webhookeventreceiver/README.md b/receiver/webhookeventreceiver/README.md index e145ef566df9..370240025a1b 100644 --- a/receiver/webhookeventreceiver/README.md +++ b/receiver/webhookeventreceiver/README.md @@ -44,5 +44,5 @@ receivers: key: "required-header-key" value: "required-header-value" ``` -The full list of settings exposed for this receiver are documented in [config.go](./config.go) with a detailed sample configuration [here](./testdata/config.yaml) +The full list of settings exposed for this receiver are documented in [config.go](./config.go) with a detailed sample configuration in [testdata/config.yaml](./testdata/config.yaml) From bddeeb1af0594993b47af6acd14fa426237eba5a Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 3 Jan 2025 11:24:14 -0500 Subject: [PATCH 449/450] link: trace_to_envelope.go Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/azuremonitorexporter/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/azuremonitorexporter/README.md b/exporter/azuremonitorexporter/README.md index 27c5bc1993bf..0b937a4c6788 100644 --- a/exporter/azuremonitorexporter/README.md +++ b/exporter/azuremonitorexporter/README.md @@ -103,7 +103,7 @@ The exporter follows the semantic conventions to fill the Application Insights s | Dependency.ResultCode | `http.status_code` or `status_code` | `"0"` | | Dependency.Success | `http.status_code` or `status_code` | `true` | -The exact mapping can be found [here](trace_to_envelope.go). +The exact mapping can be found in [trace_to_envelope.go](trace_to_envelope.go). All attributes are also mapped to custom properties if they are booleans or strings and to custom measurements if they are ints or doubles. From ef2aede17abc5b3b4904ff7987f07f3e0e6508b6 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 9 Jan 2025 17:21:48 -0500 Subject: [PATCH 450/450] link: moving the Sumo Logic exporter into this repository Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- exporter/sumologicexporter/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/sumologicexporter/README.md b/exporter/sumologicexporter/README.md index 1f710b17fbc4..b6463b3392c3 100644 --- a/exporter/sumologicexporter/README.md +++ b/exporter/sumologicexporter/README.md @@ -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). The following options are no longer supported: