From e0c15a47cd3e222d7e9fc7153455e85c6a631e81 Mon Sep 17 00:00:00 2001 From: Dominik Rosiek <58699848+sumo-drosiek@users.noreply.github.com> Date: Mon, 30 Oct 2023 18:53:43 +0100 Subject: [PATCH] New component: sumologicprocessor (#23949) **Description:** Adds Sumo Logic Processor The Sumo Logic processor (config name: `sumologic`) modifies the metadata on logs, metrics and traces sent to [Sumo Logic][sumologic_webpage] so that the Sumo Logic [apps][sumologic_apps] can make full use of the ingested data. [sumologic_webpage]: https://www.sumologic.com [sumologic_apps]: https://www.sumologic.com/applications/ **Link to tracking Issue:** #23946 **Testing:** - Unit tests - Component is being used by our customers **Documentation:** `README.md` --------- Signed-off-by: Dominik Rosiek Co-authored-by: Daniel Jaglowski Co-authored-by: Andrzej Stencel --- .../drosiek-sumologic-schema-processor.yaml | 20 + .github/CODEOWNERS | 1 + .github/ISSUE_TEMPLATE/bug_report.yaml | 1 + .github/ISSUE_TEMPLATE/feature_request.yaml | 1 + .github/ISSUE_TEMPLATE/other.yaml | 1 + .github/dependabot.yml | 10 +- cmd/otelcontribcol/builder-config.yaml | 2 + cmd/otelcontribcol/components.go | 2 + cmd/otelcontribcol/go.mod | 3 + cmd/otelcontribcol/processors_test.go | 3 + processor/sumologicprocessor/Makefile | 1 + processor/sumologicprocessor/README.md | 323 ++++ .../aggregate_attributes_processor.go | 172 ++ .../aggregate_attributes_processor_test.go | 239 +++ processor/sumologicprocessor/attributes.go | 94 ++ .../cloud_namespace_processor.go | 79 + processor/sumologicprocessor/config.go | 82 + processor/sumologicprocessor/config_test.go | 278 ++++ processor/sumologicprocessor/factory.go | 84 + processor/sumologicprocessor/go.mod | 95 ++ processor/sumologicprocessor/go.sum | 837 ++++++++++ .../internal/metadata/generated_status.go | 14 + .../log_fields_conversion_processor.go | 152 ++ processor/sumologicprocessor/metadata.yaml | 9 + .../sumologicprocessor/nesting_processor.go | 300 ++++ .../nesting_processor_test.go | 248 +++ processor/sumologicprocessor/processor.go | 109 ++ .../sumologicprocessor/processor_test.go | 1436 +++++++++++++++++ .../sumologicprocessor/testdata/config.yaml | 98 ++ .../translate_attributes_processor.go | 113 ++ .../translate_attributes_processor_test.go | 144 ++ .../translate_docker_metrics_processor.go | 157 ++ ...translate_docker_metrics_processor_test.go | 101 ++ .../translate_telegraf_metrics_processor.go | 125 ++ ...anslate_telegraf_metrics_processor_test.go | 203 +++ versions.yaml | 1 + 36 files changed, 5533 insertions(+), 5 deletions(-) create mode 100755 .chloggen/drosiek-sumologic-schema-processor.yaml create mode 100644 processor/sumologicprocessor/Makefile create mode 100644 processor/sumologicprocessor/README.md create mode 100644 processor/sumologicprocessor/aggregate_attributes_processor.go create mode 100644 processor/sumologicprocessor/aggregate_attributes_processor_test.go create mode 100644 processor/sumologicprocessor/attributes.go create mode 100644 processor/sumologicprocessor/cloud_namespace_processor.go create mode 100644 processor/sumologicprocessor/config.go create mode 100644 processor/sumologicprocessor/config_test.go create mode 100644 processor/sumologicprocessor/factory.go create mode 100644 processor/sumologicprocessor/go.mod create mode 100644 processor/sumologicprocessor/go.sum create mode 100644 processor/sumologicprocessor/internal/metadata/generated_status.go create mode 100644 processor/sumologicprocessor/log_fields_conversion_processor.go create mode 100644 processor/sumologicprocessor/metadata.yaml create mode 100644 processor/sumologicprocessor/nesting_processor.go create mode 100644 processor/sumologicprocessor/nesting_processor_test.go create mode 100644 processor/sumologicprocessor/processor.go create mode 100644 processor/sumologicprocessor/processor_test.go create mode 100644 processor/sumologicprocessor/testdata/config.yaml create mode 100644 processor/sumologicprocessor/translate_attributes_processor.go create mode 100644 processor/sumologicprocessor/translate_attributes_processor_test.go create mode 100644 processor/sumologicprocessor/translate_docker_metrics_processor.go create mode 100644 processor/sumologicprocessor/translate_docker_metrics_processor_test.go create mode 100644 processor/sumologicprocessor/translate_telegraf_metrics_processor.go create mode 100644 processor/sumologicprocessor/translate_telegraf_metrics_processor_test.go diff --git a/.chloggen/drosiek-sumologic-schema-processor.yaml b/.chloggen/drosiek-sumologic-schema-processor.yaml new file mode 100755 index 000000000000..4ed9727be7a7 --- /dev/null +++ b/.chloggen/drosiek-sumologic-schema-processor.yaml @@ -0,0 +1,20 @@ +# Use this changelog template to create an entry for release notes. +# If your change doesn't affect end users, such as a test fix or a tooling change, +# you should instead start your pull request title with [chore] or use the "Skip Changelog" label. + +# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' +change_type: new_component + +# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver) +component: sumologicprocessor + +# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). +note: add Sumo Logic Processor + +# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists. +issues: [23946] + +# (Optional) One or more lines of additional information to render under the primary note. +# These lines will be padded with 2 spaces and then inserted directly into the document. +# Use pipe (|) for multiline entries. +subtext: move processor from https://github.com/SumoLogic/sumologic-otel-collector/ repository diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index cd47996e7d09..171b11ae4e34 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -174,6 +174,7 @@ processor/schemaprocessor/ @open-te processor/servicegraphprocessor/ @open-telemetry/collector-contrib-approvers @jpkrohling @mapno processor/spanmetricsprocessor/ @open-telemetry/collector-contrib-approvers @albertteoh processor/spanprocessor/ @open-telemetry/collector-contrib-approvers @boostchicken +processor/sumologicprocessor/ @open-telemetry/collector-contrib-approvers @astencel-sumo @aboguszewski-sumo @sumo-drosiek processor/tailsamplingprocessor/ @open-telemetry/collector-contrib-approvers @jpkrohling processor/transformprocessor/ @open-telemetry/collector-contrib-approvers @TylerHelmuth @kentquirk @bogdandrutu @evan-bradley diff --git a/.github/ISSUE_TEMPLATE/bug_report.yaml b/.github/ISSUE_TEMPLATE/bug_report.yaml index 5090af4d68e5..06cebb6ea4c4 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yaml +++ b/.github/ISSUE_TEMPLATE/bug_report.yaml @@ -163,6 +163,7 @@ body: - processor/servicegraph - processor/span - processor/spanmetrics + - processor/sumologic - processor/tailsampling - processor/transform - receiver/activedirectoryds diff --git a/.github/ISSUE_TEMPLATE/feature_request.yaml b/.github/ISSUE_TEMPLATE/feature_request.yaml index b74dd8e2815b..416ae42f4817 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yaml +++ b/.github/ISSUE_TEMPLATE/feature_request.yaml @@ -157,6 +157,7 @@ body: - processor/servicegraph - processor/span - processor/spanmetrics + - processor/sumologic - processor/tailsampling - processor/transform - receiver/activedirectoryds diff --git a/.github/ISSUE_TEMPLATE/other.yaml b/.github/ISSUE_TEMPLATE/other.yaml index a6aa07ca17d6..3be4ed50db70 100644 --- a/.github/ISSUE_TEMPLATE/other.yaml +++ b/.github/ISSUE_TEMPLATE/other.yaml @@ -157,6 +157,7 @@ body: - processor/servicegraph - processor/span - processor/spanmetrics + - processor/sumologic - processor/tailsampling - processor/transform - receiver/activedirectoryds diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 68a06aaa070f..4764786710c5 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -162,11 +162,6 @@ updates: schedule: interval: "weekly" day: "wednesday" - - package-ecosystem: "gomod" - directory: "/exporter/kineticaexporter" - schedule: - interval: "weekly" - day: "wednesday" - package-ecosystem: "gomod" directory: "/exporter/loadbalancingexporter" schedule: @@ -632,6 +627,11 @@ updates: schedule: interval: "weekly" day: "wednesday" + - package-ecosystem: "gomod" + directory: "/processor/sumologicprocessor" + schedule: + interval: "weekly" + day: "wednesday" - package-ecosystem: "gomod" directory: "/processor/tailsamplingprocessor" schedule: diff --git a/cmd/otelcontribcol/builder-config.yaml b/cmd/otelcontribcol/builder-config.yaml index d7ef114d26c3..f01625479043 100644 --- a/cmd/otelcontribcol/builder-config.yaml +++ b/cmd/otelcontribcol/builder-config.yaml @@ -98,6 +98,7 @@ processors: - gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/routingprocessor v0.88.0 - gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/servicegraphprocessor v0.88.0 - gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/spanmetricsprocessor v0.88.0 + - gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/sumologicprocessor v0.88.0 - gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/spanprocessor v0.88.0 - gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/tailsamplingprocessor v0.88.0 - gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/transformprocessor v0.88.0 @@ -405,6 +406,7 @@ replaces: - github.com/open-telemetry/opentelemetry-collector-contrib/receiver/webhookeventreceiver => ../../receiver/webhookeventreceiver - github.com/open-telemetry/opentelemetry-collector-contrib/extension/observer/ecsobserver => ../../extension/observer/ecsobserver - github.com/open-telemetry/opentelemetry-collector-contrib/processor/remoteobserverprocessor => ../../processor/remoteobserverprocessor + - github.com/open-telemetry/opentelemetry-collector-contrib/processor/sumologicprocessor => ../../processor/sumologicprocessor # see https://github.com/mattn/go-ieproxy/issues/45 - github.com/mattn/go-ieproxy => github.com/mattn/go-ieproxy v0.0.1 - github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest => ../../pkg/pdatatest diff --git a/cmd/otelcontribcol/components.go b/cmd/otelcontribcol/components.go index 878d2914314c..e5e358e21c56 100644 --- a/cmd/otelcontribcol/components.go +++ b/cmd/otelcontribcol/components.go @@ -106,6 +106,7 @@ import ( servicegraphprocessor "github.com/open-telemetry/opentelemetry-collector-contrib/processor/servicegraphprocessor" spanmetricsprocessor "github.com/open-telemetry/opentelemetry-collector-contrib/processor/spanmetricsprocessor" spanprocessor "github.com/open-telemetry/opentelemetry-collector-contrib/processor/spanprocessor" + sumologicprocessor "github.com/open-telemetry/opentelemetry-collector-contrib/processor/sumologicprocessor" tailsamplingprocessor "github.com/open-telemetry/opentelemetry-collector-contrib/processor/tailsamplingprocessor" transformprocessor "github.com/open-telemetry/opentelemetry-collector-contrib/processor/transformprocessor" activedirectorydsreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/activedirectorydsreceiver" @@ -392,6 +393,7 @@ func components() (otelcol.Factories, error) { routingprocessor.NewFactory(), servicegraphprocessor.NewFactory(), spanmetricsprocessor.NewFactory(), + sumologicprocessor.NewFactory(), spanprocessor.NewFactory(), tailsamplingprocessor.NewFactory(), transformprocessor.NewFactory(), diff --git a/cmd/otelcontribcol/go.mod b/cmd/otelcontribcol/go.mod index 809128e2c2d0..1860794d84bb 100644 --- a/cmd/otelcontribcol/go.mod +++ b/cmd/otelcontribcol/go.mod @@ -93,6 +93,7 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/processor/servicegraphprocessor v0.88.0 github.com/open-telemetry/opentelemetry-collector-contrib/processor/spanmetricsprocessor v0.88.0 github.com/open-telemetry/opentelemetry-collector-contrib/processor/spanprocessor v0.88.0 + github.com/open-telemetry/opentelemetry-collector-contrib/processor/sumologicprocessor v0.88.0 github.com/open-telemetry/opentelemetry-collector-contrib/processor/tailsamplingprocessor v0.88.0 github.com/open-telemetry/opentelemetry-collector-contrib/processor/transformprocessor v0.88.0 github.com/open-telemetry/opentelemetry-collector-contrib/receiver/activedirectorydsreceiver v0.88.0 @@ -1114,6 +1115,8 @@ replace github.com/open-telemetry/opentelemetry-collector-contrib/extension/obse replace github.com/open-telemetry/opentelemetry-collector-contrib/processor/remoteobserverprocessor => ../../processor/remoteobserverprocessor +replace github.com/open-telemetry/opentelemetry-collector-contrib/processor/sumologicprocessor => ../../processor/sumologicprocessor + replace github.com/mattn/go-ieproxy => github.com/mattn/go-ieproxy v0.0.1 replace github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest => ../../pkg/pdatatest diff --git a/cmd/otelcontribcol/processors_test.go b/cmd/otelcontribcol/processors_test.go index a8138b46a342..5e6e433c395a 100644 --- a/cmd/otelcontribcol/processors_test.go +++ b/cmd/otelcontribcol/processors_test.go @@ -146,6 +146,9 @@ func TestDefaultProcessors(t *testing.T) { return cfg }, }, + { + processor: "sumologic", + }, } assert.Equal(t, len(procFactories), len(tests), "All processors must be added to lifecycle tests") diff --git a/processor/sumologicprocessor/Makefile b/processor/sumologicprocessor/Makefile new file mode 100644 index 000000000000..ded7a36092dc --- /dev/null +++ b/processor/sumologicprocessor/Makefile @@ -0,0 +1 @@ +include ../../Makefile.Common diff --git a/processor/sumologicprocessor/README.md b/processor/sumologicprocessor/README.md new file mode 100644 index 000000000000..4152190fc616 --- /dev/null +++ b/processor/sumologicprocessor/README.md @@ -0,0 +1,323 @@ +# Sumo Logic Processor + + +| Status | | +| ------------- |-----------| +| Stability | [beta]: traces, metrics, logs | +| Distributions | [sumo] | +| Issues | [![Open issues](https://img.shields.io/github/issues-search/open-telemetry/opentelemetry-collector-contrib?query=is%3Aissue%20is%3Aopen%20label%3Aprocessor%2Fsumologic%20&label=open&color=orange&logo=opentelemetry)](https://github.com/open-telemetry/opentelemetry-collector-contrib/issues?q=is%3Aopen+is%3Aissue+label%3Aprocessor%2Fsumologic) [![Closed issues](https://img.shields.io/github/issues-search/open-telemetry/opentelemetry-collector-contrib?query=is%3Aissue%20is%3Aclosed%20label%3Aprocessor%2Fsumologic%20&label=closed&color=blue&logo=opentelemetry)](https://github.com/open-telemetry/opentelemetry-collector-contrib/issues?q=is%3Aclosed+is%3Aissue+label%3Aprocessor%2Fsumologic) | +| [Code Owners](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/CONTRIBUTING.md#becoming-a-code-owner) | [@aboguszewski-sumo](https://www.github.com/aboguszewski-sumo), [@astencel-sumo](https://www.github.com/astencel-sumo), [@sumo-drosiek](https://www.github.com/sumo-drosiek) | + +[beta]: https://github.com/open-telemetry/opentelemetry-collector#beta +[sumo]: https://github.com/SumoLogic/sumologic-otel-collector + + +The Sumo Logic processor (config name: `sumologic`) +modifies the metadata on logs, metrics and traces sent to [Sumo Logic][sumologic_webpage] +so that the Sumo Logic [apps][sumologic_apps] can make full use of the ingested data. + +[sumologic_webpage]: https://www.sumologic.com +[sumologic_apps]: https://www.sumologic.com/applications/ + +## Configuration + +```yaml +processors: + sumologic: + # Defines whether the `cloud.namespace` resource attribute should be added. + # default = true + add_cloud_namespace: {true,false} + + # Defines whether attributes should be translated + # from OpenTelemetry to Sumo Logic conventions; + # see "Attribute translation" documentation chapter from this document. + # default = true + translate_attributes: {true,false} + + # Specifies whether telegraf metric names should be translated to match + # Sumo Logic conventions expected in Sumo Logic host related apps (for example + # `procstat_num_threads` => `Proc_Threads` or `cpu_usage_irq` => `CPU_Irq`). + # See `translate_telegraf_metrics_processor.go` for full list of translations. + # default = true + translate_telegraf_attributes: {true, false} + + # Specifies whether docker stats metric names should be translated to match + # Sumo Logic conventions expected in Sumo Logic host related apps (for example + # `container.cpu.usage.kernelmode` => `cpu_usage.usage_in_kernelmode` or `container.memory.usage.max` => `max_usage`). + # It also translates some resource attribute names (for example `container.id` => `container.FullID`). + # See `translate_docker_metrics_processor.go` for full list of translations. + # default = false + translate_docker_metrics: {true, false} + + # Specifies if attributes should be nested, basing on their keys. + # See "Nesting attributes" documentation chapter from this document. + nest_attributes: + # Defines whether attributes should be nested. + # default = false + enabled: {true, false} + + # Defines the string used to separate key names in attributes that are to be nested. + # default = "." + separator: + + # Defines a list of allowed prefixes to be nested. + # For example, if "kubernetes." is in this list, then all "kubernetes.*" attributes will be nested. + # default = [] + include: [] + + # Defines a list of prefixes not allowed to be nested. + # For example, if "k8s." is in this list, then all "k8s.*" attributes will not be nested. + # default = [] + exclude: [] + + # If enabled, then maps that would have only one value will be squashed. + # For example,{"k8s": {"pods": {"a": "A", "b": "B"}}} + # will be squashed to {"k8s.pods": {"a": "A", "b": "B"}} + # default = false + squash_single_values: {true, false} + + # Specifies if attributes matching given pattern should be mapped to a common key. + # See "Aggregating attributes" documentation chapter from this document. + # default = [] + aggregate_attributes: + - attribute: + prefixes: [] + - ... + + # Defines whether attribute should be added to record attributes. + # Currently available attributes are `severity_number`, `severity_text`, + # `trace_id`, `span_id` + # all are disabled by default, enabled: false + field_attributes: + severity_number: + enabled: true + name: "loglevel" + +``` + +## Features + +### 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. +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: + +| `cloud.platform` | `cloud.namespace` | +|:---------------------:|:-----------------:| +| aws_ec2 | aws/ec2 | +| aws_ecs | ecs | +| aws_elastic_beanstalk | ElasticBeanstalk | + +When this processor's `add_cloud_namespace` setting is set to `true`, +the processor looks for the above mentioned `cloud.platform` resource attribute values +and if found, adds the corresponding `cloud.namespace` resource attribute. + +If the `cloud.platform` resource attribute is not found or has a value that is not in the table, nothing is added. + +[opentelemetry_cloud_provider_attribute]: https://github.com/open-telemetry/opentelemetry-specification/blob/v1.9.0/specification/resource/semantic_conventions/cloud.md + +### Attribute translation + +Attribute translation changes some of the attribute keys from OpenTelemetry convention to Sumo Logic convention. +For example, OpenTelemetry convention for the attribute containing Kubernetes pod name is `k8s.pod.name`, +but Sumo Logic expects it to be in attribute named `pod`. + +If attribute with target name eg. `pod` already exists, +translation is not being done for corresponding attribute (`k8s.pod.name` in this example). + +This feature is turned on by default. +To turn it off, set the `translate_attributes` configuration option to `false`. +Note that this may cause some of Sumo Logic apps, built-in dashboards to not work correctly. + +**Note**: the attributes are **not** translated for traces. + +Below is a list of all attribute keys that are being translated. + +| Open Telemetry convention | Sumo Logic convention | +|---------------------------|-----------------------| +| `cloud.account.id` | `AccountId` | +| `cloud.availability_zone` | `AvailabilityZone` | +| `cloud.platform` | `aws_service` | +| `cloud.region` | `Region` | +| `host.id` | `InstanceId` | +| `host.name` | `host` | +| `host.type` | `InstanceType` | +| `k8s.cluster.name` | `Cluster` | +| `k8s.container.name` | `container` | +| `k8s.daemonset.name` | `daemonset` | +| `k8s.deployment.name` | `deployment` | +| `k8s.namespace.name` | `namespace` | +| `k8s.node.name` | `node` | +| `k8s.service.name` | `service` | +| `k8s.pod.hostname` | `host` | +| `k8s.pod.name` | `pod` | +| `k8s.pod.uid` | `pod_id` | +| `k8s.replicaset.name` | `replicaset` | +| `k8s.statefulset.name` | `statefulset` | +| `service.name` | `service` | +| `log.file.path_resolved` | `_sourceName` | + +### Nesting attributes + +Nesting attributes allows to change the structure of attributes (both resource level and record level attributes) +basing on their keys by nesting attributes with common paths into maps. +Common path is defined as a common prefix that consists of strings separated by a given separator string (by default a dot - `.`) +and end with that separator, for example: if the separator is `.`, +then `xyz` is a common prefix path for `xyz.abc.qwe` and `xyz.foo`, +but `sumo` **is not** a prefix path for neither `sumologic.foo.baz` nor `sumologic.bar.baz`. + +#### Example + +The following set of attributes: + +```json +{ + "kubernetes.container_name": "xyz", + "kubernetes.host.name": "the host", + "kubernetes.host.address": "127.0.0.1", + "kubernetes.namespace_name": "sumologic", + "another_attr": "42" +} +``` + +Should be translated into such set: + +```json +{ + "kubernetes": { + "container_name": "xyz", + "namespace_name": "sumologic", + "host": { + "name": "the host", + "address": "127.0.0.1" + } + }, + "another_attr": "42" +} +``` + +#### Allowlist and denylist + +Properties `include` and `exclude` in the config allow to define list of prefixes that are allowed or not allowed to be nested. + +For example, with the following config: + +```yaml +nest_attributes: + enabled: true + include: ["kubernetes.host."] + exclude: ["kubernetes.host.naming"] +``` + +and following input: + +```json +{ +"kubernetes.container_name": "xyz", +"kubernetes.host.name": "the host", +"kubernetes.host.naming_convention": "random", +"kubernetes.host.address": "127.0.0.1", +"kubernetes.namespace_name": "sumologic", +} +``` + +The output is: + +```json +{ +"kubernetes.container_name": "xyz", +"kubernetes": { + "host": { + "name": "the host", + "address": "127.0.0.1" + } + }, +"kubernetes.host.naming_convention": "random", +"kubernetes.namespace_name": "sumologic", +} +``` + +#### Known issues + +This feature has undefined behavior when in input there are various keys that will be mapped to the same nested structure. +For example, given the following attributes: + +```json +{ + "a.b.c.": "d", + "a": { + "b": { + "c": "e" + } + } +} +``` + +It is not possible to predict, what will be the result. It will have the following structure: + +```json +{ + "a": { + "b": { + "c": ... + } + } +} +``` + +However, it is not possible to know beforehand if the value under key `c` will be equal to `d` or `e`. +Refer to [GitHube issue][issue] for details and discussion. + +[issue]: https://github.com/SumoLogic/sumologic-otel-collector/issues/1263 + +### Aggregating attributes + +Aggregating attributes allows to map attributes with keys with given prefixes to a common key. +For example, it is possible to map all attributes with keys with prefixes `pod_` to a key `pods`. +The names in resulting maps are the original key names with trimmed prefix. + +For given input, mapping keys with prefixes `pod_` to a key `pods`: + +```json +{ + "pod_a": "x", + "pod_b": "y", + "pod_c": "z" +} +``` + +The result is: + +```json +{ + "pods": { + "a": "x", + "b": "y", + "c": "z" + } +} +``` + +### Severity Attribute + +Some fields that log entries consist of are not displayed as fields in Sumo Logic out of the box. +It's possible to convert specific attributes to fields. List of currently supported attributes is below: + +`severity_number` +`severity_text` +`span_id` +`trace_id` + +In order to report one of them as field, following configuration is needed (below example for `severity_number`): + +```yaml + field_attributes: + severity_number: + enabled: true + name: "loglevel" +``` + +In this case severity_number from log record will be visible in sumo backend as a field named "loglevel". diff --git a/processor/sumologicprocessor/aggregate_attributes_processor.go b/processor/sumologicprocessor/aggregate_attributes_processor.go new file mode 100644 index 000000000000..020eb425d3a1 --- /dev/null +++ b/processor/sumologicprocessor/aggregate_attributes_processor.go @@ -0,0 +1,172 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +package sumologicprocessor // import "github.com/open-telemetry/opentelemetry-collector-contrib/processor/sumologicprocessor" + +import ( + "fmt" + "strings" + + "go.opentelemetry.io/collector/pdata/pcommon" + "go.opentelemetry.io/collector/pdata/plog" + "go.opentelemetry.io/collector/pdata/pmetric" + "go.opentelemetry.io/collector/pdata/ptrace" +) + +// aggregateAttributesProcessor +type aggregateAttributesProcessor struct { + aggregations []*aggregation +} + +type aggregation struct { + attribute string + prefixes []string +} + +func newAggregateAttributesProcessor(config []aggregationPair) *aggregateAttributesProcessor { + aggregations := []*aggregation{} + + for i := 0; i < len(config); i++ { + pair := &aggregation{ + attribute: config[i].Attribute, + prefixes: config[i].Prefixes, + } + aggregations = append(aggregations, pair) + } + + return &aggregateAttributesProcessor{aggregations: aggregations} +} + +func (proc *aggregateAttributesProcessor) processLogs(logs plog.Logs) error { + for i := 0; i < logs.ResourceLogs().Len(); i++ { + resourceLogs := logs.ResourceLogs().At(i) + err := proc.processAttributes(resourceLogs.Resource().Attributes()) + if err != nil { + return err + } + + for j := 0; j < resourceLogs.ScopeLogs().Len(); j++ { + scopeLogs := resourceLogs.ScopeLogs().At(j) + for k := 0; k < scopeLogs.LogRecords().Len(); k++ { + err := proc.processAttributes(scopeLogs.LogRecords().At(k).Attributes()) + if err != nil { + return err + } + } + } + } + return nil +} + +func (proc *aggregateAttributesProcessor) processMetrics(metrics pmetric.Metrics) error { + for i := 0; i < metrics.ResourceMetrics().Len(); i++ { + resourceMetrics := metrics.ResourceMetrics().At(i) + err := proc.processAttributes(resourceMetrics.Resource().Attributes()) + if err != nil { + return err + } + + for j := 0; j < resourceMetrics.ScopeMetrics().Len(); j++ { + scopeMetrics := resourceMetrics.ScopeMetrics().At(j) + for k := 0; k < scopeMetrics.Metrics().Len(); k++ { + err := processMetricLevelAttributes(proc, scopeMetrics.Metrics().At(k)) + if err != nil { + return err + } + } + } + } + return nil +} + +func (proc *aggregateAttributesProcessor) processTraces(traces ptrace.Traces) error { + for i := 0; i < traces.ResourceSpans().Len(); i++ { + resourceSpans := traces.ResourceSpans().At(i) + err := proc.processAttributes(resourceSpans.Resource().Attributes()) + if err != nil { + return err + } + + for j := 0; j < resourceSpans.ScopeSpans().Len(); j++ { + scopeSpans := resourceSpans.ScopeSpans().At(j) + for k := 0; k < scopeSpans.Spans().Len(); k++ { + err := proc.processAttributes(scopeSpans.Spans().At(k).Attributes()) + if err != nil { + return err + } + } + } + } + return nil +} + +func (proc *aggregateAttributesProcessor) isEnabled() bool { + return len(proc.aggregations) != 0 +} + +func (*aggregateAttributesProcessor) ConfigPropertyName() string { + return "aggregate_attributes" +} + +func (proc *aggregateAttributesProcessor) processAttributes(attributes pcommon.Map) error { + for i := 0; i < len(proc.aggregations); i++ { + curr := proc.aggregations[i] + names := []string{} + attrs := []pcommon.Value{} + + for j := 0; j < len(curr.prefixes); j++ { + prefix := curr.prefixes[j] + // Create a new map. Unused keys will be added here, + // so we can check them against other prefixes. + newMap := pcommon.NewMap() + newMap.EnsureCapacity(attributes.Len()) + + attributes.Range(func(key string, value pcommon.Value) bool { + ok, trimmedKey := getNewKey(key, prefix) + if ok { + // TODO: Potential name conflict to resolve, eg.: + // pod_* matches pod_foo + // pod2_* matches pod2_foo + // both will be renamed to foo + // ref: https://github.com/SumoLogic/sumologic-otel-collector/issues/1263 + names = append(names, trimmedKey) + val := pcommon.NewValueEmpty() + value.CopyTo(val) + attrs = append(attrs, val) + } else { + value.CopyTo(newMap.PutEmpty(key)) + } + return true + }) + newMap.CopyTo(attributes) + } + + if len(names) != len(attrs) { + return fmt.Errorf( + "internal error: number of values does not equal the number of keys; len(keys) = %d, len(values) = %d", + len(names), + len(attrs), + ) + } + + // Add a new attribute only if there's anything that should be put under it. + if len(names) > 0 { + aggregated := attributes.PutEmptyMap(curr.attribute) + + for j := 0; j < len(names); j++ { + attrs[j].CopyTo(aggregated.PutEmpty(names[j])) + } + } + } + + return nil +} + +// Checks if the key has given prefix and trims it if so. +func getNewKey(key string, prefix string) (bool, string) { + if strings.HasPrefix(key, prefix) { + return true, strings.TrimPrefix(key, prefix) + } + + return false, "" +} diff --git a/processor/sumologicprocessor/aggregate_attributes_processor_test.go b/processor/sumologicprocessor/aggregate_attributes_processor_test.go new file mode 100644 index 000000000000..53aa738d00a7 --- /dev/null +++ b/processor/sumologicprocessor/aggregate_attributes_processor_test.go @@ -0,0 +1,239 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +package sumologicprocessor // import "github.com/open-telemetry/opentelemetry-collector-contrib/processor/sumologicprocessor" + +import ( + "testing" + + "github.com/stretchr/testify/require" + "go.opentelemetry.io/collector/pdata/pcommon" + "go.opentelemetry.io/collector/pdata/pmetric" +) + +func TestAggregation(t *testing.T) { + testCases := []struct { + name string + input map[string]pcommon.Value + expected map[string]pcommon.Value + aggregations []*aggregation + }{ + { + name: "three values one key", + input: map[string]pcommon.Value{ + "pod_first": pcommon.NewValueStr("first"), + "pod_second": pcommon.NewValueStr("second"), + "pod_third": pcommon.NewValueStr("third"), + }, + expected: map[string]pcommon.Value{ + "pods": mapToPcommonValue(map[string]pcommon.Value{ + "first": pcommon.NewValueStr("first"), + "second": pcommon.NewValueStr("second"), + "third": pcommon.NewValueStr("third"), + }), + }, + aggregations: []*aggregation{ + { + attribute: "pods", + prefixes: []string{"pod_"}, + }, + }, + }, + { + name: "six values two keys", + input: map[string]pcommon.Value{ + "pod_first": pcommon.NewValueStr("first"), + "pod_second": pcommon.NewValueStr("second"), + "pod_third": pcommon.NewValueStr("third"), + "sono_ichi": pcommon.NewValueInt(1), + "sono_ni": pcommon.NewValueInt(2), + "a totally unrelevant key": pcommon.NewValueBool(true), + }, + expected: map[string]pcommon.Value{ + "pods": mapToPcommonValue(map[string]pcommon.Value{ + "first": pcommon.NewValueStr("first"), + "second": pcommon.NewValueStr("second"), + "third": pcommon.NewValueStr("third"), + }), + "counts": mapToPcommonValue(map[string]pcommon.Value{ + "ichi": pcommon.NewValueInt(1), + "ni": pcommon.NewValueInt(2), + }), + "a totally unrelevant key": pcommon.NewValueBool(true), + }, + aggregations: []*aggregation{ + { + attribute: "pods", + prefixes: []string{"pod_"}, + }, + { + attribute: "counts", + prefixes: []string{"sono_"}, + }, + }, + }, + { + name: "three prefixes, one key", + input: map[string]pcommon.Value{ + "A_12": pcommon.NewValueStr("A12"), + "A_23": pcommon.NewValueStr("A23"), + "C_2": pcommon.NewValueStr("C2"), + "B_3": pcommon.NewValueStr("B3"), + "C_88": pcommon.NewValueStr("C88"), + "B_53": pcommon.NewValueStr("B53"), + }, + expected: map[string]pcommon.Value{ + "id": mapToPcommonValue(map[string]pcommon.Value{ + "2": pcommon.NewValueStr("C2"), + "3": pcommon.NewValueStr("B3"), + "12": pcommon.NewValueStr("A12"), + "23": pcommon.NewValueStr("A23"), + "53": pcommon.NewValueStr("B53"), + "88": pcommon.NewValueStr("C88"), + }), + }, + aggregations: []*aggregation{ + { + attribute: "id", + prefixes: []string{"B_", "A_", "C_"}, + }, + }, + }, + } + + for _, testCase := range testCases { + t.Run(testCase.name, func(t *testing.T) { + processor := aggregateAttributesProcessor{ + aggregations: testCase.aggregations, + } + + attrs := mapToPcommonMap(testCase.input) + + err := processor.processAttributes(attrs) + require.NoError(t, err) + + expected := mapToPcommonMap(testCase.expected) + + require.Equal(t, expected.AsRaw(), attrs.AsRaw()) + }) + } +} + +func TestMetrics(t *testing.T) { + aggregations := []*aggregation{{ + attribute: "a", + prefixes: []string{"b_"}, + }} + testCases := []struct { + name string + createMetric func() pmetric.Metric + test func(pmetric.Metric) + }{ + { + name: "empty", + createMetric: pmetric.NewMetric, + test: func(m pmetric.Metric) { + require.Equal(t, m.Type(), pmetric.MetricTypeEmpty) + }, + }, + { + name: "sum", + createMetric: func() pmetric.Metric { + m := pmetric.NewMetric() + s := m.SetEmptySum() + s.DataPoints().AppendEmpty().Attributes().PutStr("b_c", "x") + + return m + }, + test: func(m pmetric.Metric) { + s := pmetric.NewMetric().SetEmptySum() + s.DataPoints().AppendEmpty().Attributes().PutEmptyMap("a").PutStr("c", "x") + + require.Equal(t, m.Type(), pmetric.MetricTypeSum) + require.Equal(t, s.DataPoints().At(0).Attributes().AsRaw(), m.Sum().DataPoints().At(0).Attributes().AsRaw()) + }, + }, + { + name: "gauge", + createMetric: func() pmetric.Metric { + m := pmetric.NewMetric() + s := m.SetEmptyGauge() + s.DataPoints().AppendEmpty().Attributes().PutStr("b_c", "x") + + return m + }, + test: func(m pmetric.Metric) { + s := pmetric.NewMetric().SetEmptyGauge() + s.DataPoints().AppendEmpty().Attributes().PutEmptyMap("a").PutStr("c", "x") + + require.Equal(t, m.Type(), pmetric.MetricTypeGauge) + require.Equal(t, s.DataPoints().At(0).Attributes().AsRaw(), m.Gauge().DataPoints().At(0).Attributes().AsRaw()) + }, + }, + { + name: "histogram", + createMetric: func() pmetric.Metric { + m := pmetric.NewMetric() + s := m.SetEmptyHistogram() + s.DataPoints().AppendEmpty().Attributes().PutStr("b_c", "x") + + return m + }, + test: func(m pmetric.Metric) { + s := pmetric.NewMetric().SetEmptyHistogram() + s.DataPoints().AppendEmpty().Attributes().PutEmptyMap("a").PutStr("c", "x") + + require.Equal(t, m.Type(), pmetric.MetricTypeHistogram) + require.Equal(t, s.DataPoints().At(0).Attributes().AsRaw(), m.Histogram().DataPoints().At(0).Attributes().AsRaw()) + }, + }, + { + name: "exponential histogram", + createMetric: func() pmetric.Metric { + m := pmetric.NewMetric() + s := m.SetEmptyExponentialHistogram() + s.DataPoints().AppendEmpty().Attributes().PutStr("b_c", "x") + + return m + }, + test: func(m pmetric.Metric) { + s := pmetric.NewMetric().SetEmptyExponentialHistogram() + s.DataPoints().AppendEmpty().Attributes().PutEmptyMap("a").PutStr("c", "x") + + require.Equal(t, m.Type(), pmetric.MetricTypeExponentialHistogram) + require.Equal(t, s.DataPoints().At(0).Attributes().AsRaw(), m.ExponentialHistogram().DataPoints().At(0).Attributes().AsRaw()) + }, + }, + { + name: "summary", + createMetric: func() pmetric.Metric { + m := pmetric.NewMetric() + s := m.SetEmptySummary() + s.DataPoints().AppendEmpty().Attributes().PutStr("b_c", "x") + + return m + }, + test: func(m pmetric.Metric) { + s := pmetric.NewMetric().SetEmptySummary() + s.DataPoints().AppendEmpty().Attributes().PutEmptyMap("a").PutStr("c", "x") + + require.Equal(t, m.Type(), pmetric.MetricTypeSummary) + require.Equal(t, s.DataPoints().At(0).Attributes().AsRaw(), m.Summary().DataPoints().At(0).Attributes().AsRaw()) + }, + }, + } + + for _, testCase := range testCases { + t.Run(testCase.name, func(t *testing.T) { + processor := aggregateAttributesProcessor{ + aggregations: aggregations, + } + + metric := testCase.createMetric() + err := processMetricLevelAttributes(&processor, metric) + require.NoError(t, err) + + testCase.test(metric) + }) + } +} diff --git a/processor/sumologicprocessor/attributes.go b/processor/sumologicprocessor/attributes.go new file mode 100644 index 000000000000..cdaf6c8687c4 --- /dev/null +++ b/processor/sumologicprocessor/attributes.go @@ -0,0 +1,94 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +package sumologicprocessor // import "github.com/open-telemetry/opentelemetry-collector-contrib/processor/sumologicprocessor" + +import ( + "fmt" + + "go.opentelemetry.io/collector/pdata/pcommon" + "go.opentelemetry.io/collector/pdata/pmetric" +) + +// This file contains some common functionalities for subprocessors that modify attributes (represented by pcommon.Map) + +type attributesProcessor interface { + processAttributes(pcommon.Map) error +} + +func processMetricLevelAttributes(proc attributesProcessor, metric pmetric.Metric) error { + switch metric.Type() { + case pmetric.MetricTypeEmpty: + return nil + + case pmetric.MetricTypeSum: + dp := metric.Sum().DataPoints() + for i := 0; i < dp.Len(); i++ { + err := proc.processAttributes(dp.At(i).Attributes()) + if err != nil { + return err + } + } + return nil + + case pmetric.MetricTypeGauge: + dp := metric.Gauge().DataPoints() + for i := 0; i < dp.Len(); i++ { + err := proc.processAttributes(dp.At(i).Attributes()) + if err != nil { + return err + } + } + return nil + + case pmetric.MetricTypeHistogram: + dp := metric.Histogram().DataPoints() + for i := 0; i < dp.Len(); i++ { + err := proc.processAttributes(dp.At(i).Attributes()) + if err != nil { + return err + } + } + return nil + + case pmetric.MetricTypeExponentialHistogram: + dp := metric.ExponentialHistogram().DataPoints() + for i := 0; i < dp.Len(); i++ { + err := proc.processAttributes(dp.At(i).Attributes()) + if err != nil { + return err + } + } + return nil + + case pmetric.MetricTypeSummary: + dp := metric.Summary().DataPoints() + for i := 0; i < dp.Len(); i++ { + err := proc.processAttributes(dp.At(i).Attributes()) + if err != nil { + return err + } + } + return nil + } + + return fmt.Errorf("unknown metric type: %s", metric.Type().String()) +} + +func mapToPcommonMap(m map[string]pcommon.Value) pcommon.Map { + attrs := pcommon.NewMap() + for k, v := range m { + v.CopyTo(attrs.PutEmpty(k)) + } + + return attrs +} + +func mapToPcommonValue(m map[string]pcommon.Value) pcommon.Value { + attrs := pcommon.NewValueMap() + for k, v := range m { + v.CopyTo(attrs.Map().PutEmpty(k)) + } + + return attrs +} diff --git a/processor/sumologicprocessor/cloud_namespace_processor.go b/processor/sumologicprocessor/cloud_namespace_processor.go new file mode 100644 index 000000000000..3db7ed9ea68b --- /dev/null +++ b/processor/sumologicprocessor/cloud_namespace_processor.go @@ -0,0 +1,79 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +package sumologicprocessor // import "github.com/open-telemetry/opentelemetry-collector-contrib/processor/sumologicprocessor" + +import ( + "go.opentelemetry.io/collector/pdata/pcommon" + "go.opentelemetry.io/collector/pdata/plog" + "go.opentelemetry.io/collector/pdata/pmetric" + "go.opentelemetry.io/collector/pdata/ptrace" + conventions "go.opentelemetry.io/collector/semconv/v1.6.1" +) + +// cloudNamespaceProcessor adds the `cloud.namespace` resource attribute to logs, metrics and traces. +type cloudNamespaceProcessor struct { + addCloudNamespace bool +} + +const ( + cloudNamespaceAttributeName = "cloud.namespace" + cloudNamespaceAwsEc2 = "aws/ec2" + cloudNamespaceAwsEcs = "ecs" + cloudNamespaceAwsBeanstalk = "ElasticBeanstalk" +) + +func newCloudNamespaceProcessor(addCloudNamespace bool) *cloudNamespaceProcessor { + return &cloudNamespaceProcessor{ + addCloudNamespace: addCloudNamespace, + } +} + +func (*cloudNamespaceProcessor) processLogs(logs plog.Logs) error { + for i := 0; i < logs.ResourceLogs().Len(); i++ { + addCloudNamespaceAttribute(logs.ResourceLogs().At(i).Resource().Attributes()) + } + return nil +} + +func (*cloudNamespaceProcessor) processMetrics(metrics pmetric.Metrics) error { + for i := 0; i < metrics.ResourceMetrics().Len(); i++ { + addCloudNamespaceAttribute(metrics.ResourceMetrics().At(i).Resource().Attributes()) + } + return nil +} + +func (*cloudNamespaceProcessor) processTraces(traces ptrace.Traces) error { + for i := 0; i < traces.ResourceSpans().Len(); i++ { + addCloudNamespaceAttribute(traces.ResourceSpans().At(i).Resource().Attributes()) + } + return nil +} + +func (proc *cloudNamespaceProcessor) isEnabled() bool { + return proc.addCloudNamespace +} + +func (*cloudNamespaceProcessor) ConfigPropertyName() string { + return "add_cloud_namespace" +} + +// addCloudNamespaceAttribute adds the `cloud.namespace` attribute +// to a collection of attributes that already contains a `cloud.platform` attribute. +// It does not add the `cloud.namespace` attribute for all `cloud.platform` values, +// but only for a few specific ones - namely AWS EC2, AWS ECS, and AWS Elastic Beanstalk. +func addCloudNamespaceAttribute(attributes pcommon.Map) { + cloudPlatformAttributeValue, found := attributes.Get(conventions.AttributeCloudPlatform) + if !found { + return + } + + switch cloudPlatformAttributeValue.Str() { + case conventions.AttributeCloudPlatformAWSEC2: + attributes.PutStr(cloudNamespaceAttributeName, cloudNamespaceAwsEc2) + case conventions.AttributeCloudPlatformAWSECS: + attributes.PutStr(cloudNamespaceAttributeName, cloudNamespaceAwsEcs) + case conventions.AttributeCloudPlatformAWSElasticBeanstalk: + attributes.PutStr(cloudNamespaceAttributeName, cloudNamespaceAwsBeanstalk) + } +} diff --git a/processor/sumologicprocessor/config.go b/processor/sumologicprocessor/config.go new file mode 100644 index 000000000000..ec38c01da927 --- /dev/null +++ b/processor/sumologicprocessor/config.go @@ -0,0 +1,82 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +package sumologicprocessor // import "github.com/open-telemetry/opentelemetry-collector-contrib/processor/sumologicprocessor" + +import ( + "go.opentelemetry.io/collector/component" +) + +type Config struct { + AddCloudNamespace bool `mapstructure:"add_cloud_namespace"` + TranslateAttributes bool `mapstructure:"translate_attributes"` + TranslateTelegrafAttributes bool `mapstructure:"translate_telegraf_attributes"` + NestAttributes *NestingProcessorConfig `mapstructure:"nest_attributes"` + AggregateAttributes []aggregationPair `mapstructure:"aggregate_attributes"` + LogFieldsAttributes *logFieldAttributesConfig `mapstructure:"field_attributes"` + TranslateDockerMetrics bool `mapstructure:"translate_docker_metrics"` +} + +type aggregationPair struct { + Attribute string `mapstructure:"attribute"` + Prefixes []string `mapstructure:"prefixes"` +} + +const ( + defaultAddCloudNamespace = true + defaultTranslateAttributes = true + defaultTranslateTelegrafAttributes = true + defaultTranlateDockerMetrics = false + + // Nesting processor default config + defaultNestingEnabled = false + defaultNestingSeparator = "." + defaultNestingSquashSingleValues = false + + defaultAddSeverityNumberAttribute = false + defaultAddSeverityTextAttribute = false + defaultAddSpanIDAttribute = false + defaultAddTraceIDAttribute = false +) + +var _ component.Config = (*Config)(nil) + +func defaultNestingInclude() []string { + return []string{} +} + +func defaultNestingExclude() []string { + return []string{} +} + +func defaultAggregateAttributes() []aggregationPair { + return []aggregationPair{} +} + +func createDefaultConfig() component.Config { + return &Config{ + AddCloudNamespace: defaultAddCloudNamespace, + TranslateAttributes: defaultTranslateAttributes, + TranslateTelegrafAttributes: defaultTranslateTelegrafAttributes, + NestAttributes: &NestingProcessorConfig{ + Separator: defaultNestingSeparator, + Enabled: defaultNestingEnabled, + Include: defaultNestingInclude(), + Exclude: defaultNestingExclude(), + SquashSingleValues: defaultNestingSquashSingleValues, + }, + AggregateAttributes: defaultAggregateAttributes(), + LogFieldsAttributes: &logFieldAttributesConfig{ + SeverityNumberAttribute: &logFieldAttribute{defaultAddSeverityNumberAttribute, SeverityNumberAttributeName}, + SeverityTextAttribute: &logFieldAttribute{defaultAddSeverityTextAttribute, SeverityTextAttributeName}, + SpanIDAttribute: &logFieldAttribute{defaultAddSpanIDAttribute, SpanIDAttributeName}, + TraceIDAttribute: &logFieldAttribute{defaultAddTraceIDAttribute, TraceIDAttributeName}, + }, + TranslateDockerMetrics: defaultTranlateDockerMetrics, + } +} + +// Validate config +func (cfg *Config) Validate() error { + return nil +} diff --git a/processor/sumologicprocessor/config_test.go b/processor/sumologicprocessor/config_test.go new file mode 100644 index 000000000000..bfefa94379c7 --- /dev/null +++ b/processor/sumologicprocessor/config_test.go @@ -0,0 +1,278 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +package sumologicprocessor // import "github.com/open-telemetry/opentelemetry-collector-contrib/processor/sumologicprocessor" + +import ( + "path/filepath" + "testing" + + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/otelcol/otelcoltest" + + "github.com/open-telemetry/opentelemetry-collector-contrib/processor/sumologicprocessor/internal/metadata" +) + +func TestLoadConfig(t *testing.T) { + factories, err := otelcoltest.NopFactories() + assert.NoError(t, err) + + factory := NewFactory() + factories.Processors[metadata.Type] = factory + cfg, err := otelcoltest.LoadConfigAndValidate(filepath.Join("testdata", "config.yaml"), factories) + + require.Nil(t, err) + require.NotNil(t, cfg) + + p0 := cfg.Processors[component.NewID(metadata.Type)] + assert.Equal(t, p0, factory.CreateDefaultConfig()) + + for _, tt := range []struct { + processor string + config *Config + }{ + { + processor: "disabled-cloud-namespace", + config: &Config{ + AddCloudNamespace: false, + TranslateAttributes: true, + TranslateTelegrafAttributes: true, + NestAttributes: &NestingProcessorConfig{ + Enabled: false, + Separator: ".", + Include: []string{}, + Exclude: []string{}, + SquashSingleValues: false, + }, + AggregateAttributes: []aggregationPair{}, + LogFieldsAttributes: &logFieldAttributesConfig{ + SeverityNumberAttribute: &logFieldAttribute{false, SeverityNumberAttributeName}, + SeverityTextAttribute: &logFieldAttribute{false, SeverityTextAttributeName}, + SpanIDAttribute: &logFieldAttribute{false, SpanIDAttributeName}, + TraceIDAttribute: &logFieldAttribute{false, TraceIDAttributeName}, + }, + TranslateDockerMetrics: false, + }, + }, + { + processor: "disabled-attribute-translation", + config: &Config{ + AddCloudNamespace: true, + TranslateAttributes: false, + TranslateTelegrafAttributes: true, + NestAttributes: &NestingProcessorConfig{ + Enabled: false, + Separator: ".", + Include: []string{}, + Exclude: []string{}, + SquashSingleValues: false, + }, + AggregateAttributes: []aggregationPair{}, + LogFieldsAttributes: &logFieldAttributesConfig{ + SeverityNumberAttribute: &logFieldAttribute{false, SeverityNumberAttributeName}, + SeverityTextAttribute: &logFieldAttribute{false, SeverityTextAttributeName}, + SpanIDAttribute: &logFieldAttribute{false, SpanIDAttributeName}, + TraceIDAttribute: &logFieldAttribute{false, TraceIDAttributeName}, + }, + TranslateDockerMetrics: false, + }, + }, + { + processor: "disabled-telegraf-attribute-translation", + config: &Config{ + AddCloudNamespace: true, + TranslateAttributes: true, + TranslateTelegrafAttributes: false, + NestAttributes: &NestingProcessorConfig{ + Enabled: false, + Separator: ".", + Include: []string{}, + Exclude: []string{}, + SquashSingleValues: false, + }, + AggregateAttributes: []aggregationPair{}, + LogFieldsAttributes: &logFieldAttributesConfig{ + SeverityNumberAttribute: &logFieldAttribute{false, SeverityNumberAttributeName}, + SeverityTextAttribute: &logFieldAttribute{false, SeverityTextAttributeName}, + SpanIDAttribute: &logFieldAttribute{false, SpanIDAttributeName}, + TraceIDAttribute: &logFieldAttribute{false, TraceIDAttributeName}, + }, + TranslateDockerMetrics: false, + }, + }, + { + processor: "enabled-nesting", + config: &Config{ + AddCloudNamespace: true, + TranslateAttributes: true, + TranslateTelegrafAttributes: true, + NestAttributes: &NestingProcessorConfig{ + Enabled: true, + Separator: "!", + Include: []string{"blep"}, + Exclude: []string{"nghu"}, + SquashSingleValues: true, + }, + AggregateAttributes: []aggregationPair{}, + LogFieldsAttributes: &logFieldAttributesConfig{ + SeverityNumberAttribute: &logFieldAttribute{false, SeverityNumberAttributeName}, + SeverityTextAttribute: &logFieldAttribute{false, SeverityTextAttributeName}, + SpanIDAttribute: &logFieldAttribute{false, SpanIDAttributeName}, + TraceIDAttribute: &logFieldAttribute{false, TraceIDAttributeName}, + }, + TranslateDockerMetrics: false, + }, + }, + { + processor: "aggregate-attributes", + config: &Config{ + AddCloudNamespace: true, + TranslateAttributes: true, + TranslateTelegrafAttributes: true, + NestAttributes: &NestingProcessorConfig{ + Enabled: false, + Separator: ".", + Include: []string{}, + Exclude: []string{}, + SquashSingleValues: false, + }, + AggregateAttributes: []aggregationPair{ + { + Attribute: "attr1", + Prefixes: []string{"pattern1", "pattern2", "pattern3"}, + }, + { + Attribute: "attr2", + Prefixes: []string{"pattern4"}, + }, + }, + LogFieldsAttributes: &logFieldAttributesConfig{ + SeverityNumberAttribute: &logFieldAttribute{false, SeverityNumberAttributeName}, + SeverityTextAttribute: &logFieldAttribute{false, SeverityTextAttributeName}, + SpanIDAttribute: &logFieldAttribute{false, SpanIDAttributeName}, + TraceIDAttribute: &logFieldAttribute{false, TraceIDAttributeName}, + }, + TranslateDockerMetrics: false, + }, + }, + { + processor: "enabled-severity-number-attribute", + config: &Config{ + AddCloudNamespace: true, + TranslateAttributes: true, + TranslateTelegrafAttributes: true, + NestAttributes: &NestingProcessorConfig{ + Enabled: false, + Separator: ".", + Include: []string{}, + Exclude: []string{}, + SquashSingleValues: false, + }, + AggregateAttributes: []aggregationPair{}, + LogFieldsAttributes: &logFieldAttributesConfig{ + SeverityNumberAttribute: &logFieldAttribute{true, SeverityNumberAttributeName}, + SeverityTextAttribute: &logFieldAttribute{false, SeverityTextAttributeName}, + SpanIDAttribute: &logFieldAttribute{false, SpanIDAttributeName}, + TraceIDAttribute: &logFieldAttribute{false, TraceIDAttributeName}, + }, + TranslateDockerMetrics: false, + }, + }, + { + processor: "enabled-severity-text-attribute", + config: &Config{ + AddCloudNamespace: true, + TranslateAttributes: true, + TranslateTelegrafAttributes: true, + NestAttributes: &NestingProcessorConfig{ + Enabled: false, + Separator: ".", + Include: []string{}, + Exclude: []string{}, + SquashSingleValues: false, + }, + AggregateAttributes: []aggregationPair{}, + LogFieldsAttributes: &logFieldAttributesConfig{ + SeverityNumberAttribute: &logFieldAttribute{false, SeverityNumberAttributeName}, + SeverityTextAttribute: &logFieldAttribute{true, SeverityTextAttributeName}, + SpanIDAttribute: &logFieldAttribute{false, SpanIDAttributeName}, + TraceIDAttribute: &logFieldAttribute{false, TraceIDAttributeName}, + }, + TranslateDockerMetrics: false, + }, + }, + { + processor: "enabled-span-id-attribute", + config: &Config{ + AddCloudNamespace: true, + TranslateAttributes: true, + TranslateTelegrafAttributes: true, + NestAttributes: &NestingProcessorConfig{ + Enabled: false, + Separator: ".", + Include: []string{}, + Exclude: []string{}, + SquashSingleValues: false, + }, + AggregateAttributes: []aggregationPair{}, + LogFieldsAttributes: &logFieldAttributesConfig{ + SeverityNumberAttribute: &logFieldAttribute{false, SeverityNumberAttributeName}, + SeverityTextAttribute: &logFieldAttribute{false, SeverityTextAttributeName}, + SpanIDAttribute: &logFieldAttribute{true, SpanIDAttributeName}, + TraceIDAttribute: &logFieldAttribute{false, TraceIDAttributeName}, + }, + TranslateDockerMetrics: false, + }, + }, + { + processor: "enabled-trace-id-attribute", + config: &Config{ + AddCloudNamespace: true, + TranslateAttributes: true, + TranslateTelegrafAttributes: true, + NestAttributes: &NestingProcessorConfig{ + Enabled: false, + Separator: ".", + Include: []string{}, + Exclude: []string{}, + SquashSingleValues: false, + }, + AggregateAttributes: []aggregationPair{}, + LogFieldsAttributes: &logFieldAttributesConfig{ + SeverityNumberAttribute: &logFieldAttribute{false, SeverityNumberAttributeName}, + SeverityTextAttribute: &logFieldAttribute{false, SeverityTextAttributeName}, + SpanIDAttribute: &logFieldAttribute{false, SpanIDAttributeName}, + TraceIDAttribute: &logFieldAttribute{true, TraceIDAttributeName}, + }, + TranslateDockerMetrics: false, + }, + }, + { + processor: "enabled-docker-metrics-translation", + config: &Config{ + AddCloudNamespace: true, + TranslateAttributes: true, + TranslateTelegrafAttributes: true, + NestAttributes: &NestingProcessorConfig{ + Enabled: false, + Separator: ".", + Include: []string{}, + Exclude: []string{}, + SquashSingleValues: false, + }, + AggregateAttributes: []aggregationPair{}, + LogFieldsAttributes: &logFieldAttributesConfig{ + SeverityNumberAttribute: &logFieldAttribute{false, SeverityNumberAttributeName}, + SeverityTextAttribute: &logFieldAttribute{false, SeverityTextAttributeName}, + SpanIDAttribute: &logFieldAttribute{false, SpanIDAttributeName}, + TraceIDAttribute: &logFieldAttribute{false, TraceIDAttributeName}, + }, + TranslateDockerMetrics: true, + }, + }, + } { + assert.Equal(t, cfg.Processors[component.NewIDWithName(metadata.Type, tt.processor)], tt.config) + } +} diff --git a/processor/sumologicprocessor/factory.go b/processor/sumologicprocessor/factory.go new file mode 100644 index 000000000000..8c19f7178043 --- /dev/null +++ b/processor/sumologicprocessor/factory.go @@ -0,0 +1,84 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 +// +//go:generate mdatagen metadata.yaml + +package sumologicprocessor // import "github.com/open-telemetry/opentelemetry-collector-contrib/processor/sumologicprocessor" + +import ( + "context" + + "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/consumer" + "go.opentelemetry.io/collector/processor" + "go.opentelemetry.io/collector/processor/processorhelper" + + "github.com/open-telemetry/opentelemetry-collector-contrib/processor/sumologicprocessor/internal/metadata" +) + +var processorCapabilities = consumer.Capabilities{MutatesData: true} + +// NewFactory returns a new factory for the processor. +func NewFactory() processor.Factory { + return processor.NewFactory( + metadata.Type, + createDefaultConfig, + processor.WithTraces(createTracesProcessor, metadata.TracesStability), + processor.WithMetrics(createMetricsProcessor, metadata.MetricsStability), + processor.WithLogs(createLogsProcessor, metadata.LogsStability), + ) +} + +func createLogsProcessor( + ctx context.Context, + set processor.CreateSettings, + cfg component.Config, + nextConsumer consumer.Logs, +) (processor.Logs, error) { + processor := newsumologicProcessor(set, cfg.(*Config)) + return processorhelper.NewLogsProcessor( + ctx, + set, + cfg, + nextConsumer, + processor.processLogs, + processorhelper.WithCapabilities(processorCapabilities), + processorhelper.WithStart(processor.start), + processorhelper.WithShutdown(processor.shutdown)) +} + +func createMetricsProcessor( + ctx context.Context, + set processor.CreateSettings, + cfg component.Config, + nextConsumer consumer.Metrics, +) (processor.Metrics, error) { + processor := newsumologicProcessor(set, cfg.(*Config)) + return processorhelper.NewMetricsProcessor( + ctx, + set, + cfg, + nextConsumer, + processor.processMetrics, + processorhelper.WithCapabilities(processorCapabilities), + processorhelper.WithStart(processor.start), + processorhelper.WithShutdown(processor.shutdown)) +} + +func createTracesProcessor( + ctx context.Context, + set processor.CreateSettings, + cfg component.Config, + nextConsumer consumer.Traces, +) (processor.Traces, error) { + processor := newsumologicProcessor(set, cfg.(*Config)) + return processorhelper.NewTracesProcessor( + ctx, + set, + cfg, + nextConsumer, + processor.processTraces, + processorhelper.WithCapabilities(processorCapabilities), + processorhelper.WithStart(processor.start), + processorhelper.WithShutdown(processor.shutdown)) +} diff --git a/processor/sumologicprocessor/go.mod b/processor/sumologicprocessor/go.mod new file mode 100644 index 000000000000..98c3a79bcfb6 --- /dev/null +++ b/processor/sumologicprocessor/go.mod @@ -0,0 +1,95 @@ +module github.com/open-telemetry/opentelemetry-collector-contrib/processor/sumologicprocessor + +go 1.20 + +require ( + github.com/stretchr/testify v1.8.4 + go.opentelemetry.io/collector/component v0.88.1-0.20231026220224-6405e152a2d9 + go.opentelemetry.io/collector/consumer v0.88.1-0.20231026220224-6405e152a2d9 + go.opentelemetry.io/collector/otelcol v0.88.1-0.20231026220224-6405e152a2d9 + go.opentelemetry.io/collector/pdata v1.0.0-rcv0017.0.20231026220224-6405e152a2d9 + go.opentelemetry.io/collector/processor v0.88.1-0.20231026220224-6405e152a2d9 + go.opentelemetry.io/collector/semconv v0.88.1-0.20231026220224-6405e152a2d9 + go.uber.org/zap v1.26.0 +) + +require ( + contrib.go.opencensus.io/exporter/prometheus v0.4.2 // indirect + github.com/beorn7/perks v1.0.1 // indirect + github.com/cenkalti/backoff/v4 v4.2.1 // indirect + github.com/cespare/xxhash/v2 v2.2.0 // indirect + github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect + github.com/go-kit/log v0.2.1 // indirect + github.com/go-logfmt/logfmt v0.6.0 // indirect + github.com/go-logr/logr v1.2.4 // indirect + github.com/go-logr/stdr v1.2.2 // indirect + github.com/go-ole/go-ole v1.2.6 // indirect + github.com/gogo/protobuf v1.3.2 // indirect + github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect + github.com/golang/protobuf v1.5.3 // indirect + github.com/google/uuid v1.3.1 // indirect + github.com/grpc-ecosystem/grpc-gateway/v2 v2.18.0 // indirect + github.com/inconshreveable/mousetrap v1.1.0 // indirect + github.com/json-iterator/go v1.1.12 // indirect + github.com/knadh/koanf v1.5.0 // indirect + github.com/knadh/koanf/v2 v2.0.1 // indirect + github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect + github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 // indirect + github.com/mitchellh/copystructure v1.2.0 // indirect + github.com/mitchellh/mapstructure v1.5.1-0.20220423185008-bf980b35cac4 // indirect + github.com/mitchellh/reflectwalk v1.0.2 // indirect + github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect + github.com/modern-go/reflect2 v1.0.2 // indirect + github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect + github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect + github.com/prometheus/client_golang v1.17.0 // indirect + github.com/prometheus/client_model v0.5.0 // indirect + github.com/prometheus/common v0.45.0 // indirect + github.com/prometheus/procfs v0.11.1 // indirect + github.com/prometheus/statsd_exporter v0.22.7 // indirect + github.com/shirou/gopsutil/v3 v3.23.9 // indirect + github.com/shoenig/go-m1cpu v0.1.6 // indirect + github.com/spf13/cobra v1.7.0 // indirect + github.com/spf13/pflag v1.0.5 // indirect + github.com/tklauser/go-sysconf v0.3.12 // indirect + github.com/tklauser/numcpus v0.6.1 // indirect + github.com/yusufpapurcu/wmi v1.2.3 // indirect + go.opencensus.io v0.24.0 // indirect + go.opentelemetry.io/collector v0.88.1-0.20231026220224-6405e152a2d9 // indirect + go.opentelemetry.io/collector/config/configtelemetry v0.88.1-0.20231026220224-6405e152a2d9 // indirect + go.opentelemetry.io/collector/confmap v0.88.1-0.20231026220224-6405e152a2d9 // indirect + go.opentelemetry.io/collector/connector v0.88.1-0.20231026220224-6405e152a2d9 // indirect + go.opentelemetry.io/collector/exporter v0.88.1-0.20231026220224-6405e152a2d9 // indirect + go.opentelemetry.io/collector/extension v0.88.1-0.20231026220224-6405e152a2d9 // indirect + go.opentelemetry.io/collector/featuregate v1.0.0-rcv0017.0.20231026220224-6405e152a2d9 // indirect + go.opentelemetry.io/collector/receiver v0.88.1-0.20231026220224-6405e152a2d9 // indirect + go.opentelemetry.io/collector/service v0.88.1-0.20231026220224-6405e152a2d9 // indirect + go.opentelemetry.io/contrib/propagators/b3 v1.20.0 // indirect + go.opentelemetry.io/otel v1.19.0 // indirect + go.opentelemetry.io/otel/bridge/opencensus v0.42.0 // indirect + go.opentelemetry.io/otel/exporters/otlp/otlpmetric v0.42.0 // indirect + go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v0.42.0 // indirect + go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp v0.42.0 // indirect + go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.19.0 // indirect + go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.19.0 // indirect + go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.19.0 // indirect + go.opentelemetry.io/otel/exporters/prometheus v0.42.0 // indirect + go.opentelemetry.io/otel/exporters/stdout/stdoutmetric v0.42.0 // indirect + go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.19.0 // indirect + go.opentelemetry.io/otel/metric v1.19.0 // indirect + go.opentelemetry.io/otel/sdk v1.19.0 // indirect + go.opentelemetry.io/otel/sdk/metric v1.19.0 // indirect + go.opentelemetry.io/otel/trace v1.19.0 // indirect + go.opentelemetry.io/proto/otlp v1.0.0 // indirect + go.uber.org/multierr v1.11.0 // indirect + golang.org/x/net v0.17.0 // indirect + golang.org/x/sys v0.13.0 // indirect + golang.org/x/text v0.13.0 // indirect + gonum.org/v1/gonum v0.14.0 // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20231002182017-d307bd883b97 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20231016165738-49dd2c1f3d0b // indirect + google.golang.org/grpc v1.59.0 // indirect + google.golang.org/protobuf v1.31.0 // indirect + gopkg.in/yaml.v2 v2.4.0 // indirect + gopkg.in/yaml.v3 v3.0.1 // indirect +) diff --git a/processor/sumologicprocessor/go.sum b/processor/sumologicprocessor/go.sum new file mode 100644 index 000000000000..f08c87ed7a54 --- /dev/null +++ b/processor/sumologicprocessor/go.sum @@ -0,0 +1,837 @@ +cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= +cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= +cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= +cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= +cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= +cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= +cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4= +cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M= +cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= +cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk= +cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs= +cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= +cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= +cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= +cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= +cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= +cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= +cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= +cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= +cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= +cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= +cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= +cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= +cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= +cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= +cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= +cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= +cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= +cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= +cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= +contrib.go.opencensus.io/exporter/prometheus v0.4.2 h1:sqfsYl5GIY/L570iT+l93ehxaWJs2/OwXtiWwew3oAg= +contrib.go.opencensus.io/exporter/prometheus v0.4.2/go.mod h1:dvEHbiKmgvbr5pjaF9fpw1KeYcjrnC1J8B+JKjsZyRQ= +dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= +github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= +github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= +github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= +github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= +github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= +github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= +github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= +github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137/go.mod h1:OMCwj8VM1Kc9e19TLln2VL61YJF0x1XFtfdL4JdbSyE= +github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= +github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= +github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= +github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= +github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= +github.com/aws/aws-sdk-go-v2 v1.9.2/go.mod h1:cK/D0BBs0b/oWPIcX/Z/obahJK1TT7IPVjy53i/mX/4= +github.com/aws/aws-sdk-go-v2/config v1.8.3/go.mod h1:4AEiLtAb8kLs7vgw2ZV3p2VZ1+hBavOc84hqxVNpCyw= +github.com/aws/aws-sdk-go-v2/credentials v1.4.3/go.mod h1:FNNC6nQZQUuyhq5aE5c7ata8o9e4ECGmS4lAXC7o1mQ= +github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.6.0/go.mod h1:gqlclDEZp4aqJOancXK6TN24aKhT0W0Ae9MHk3wzTMM= +github.com/aws/aws-sdk-go-v2/internal/ini v1.2.4/go.mod h1:ZcBrrI3zBKlhGFNYWvju0I3TR93I7YIgAfy82Fh4lcQ= +github.com/aws/aws-sdk-go-v2/service/appconfig v1.4.2/go.mod h1:FZ3HkCe+b10uFZZkFdvf98LHW21k49W8o8J366lqVKY= +github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.3.2/go.mod h1:72HRZDLMtmVQiLG2tLfQcaWLCssELvGl+Zf2WVxMmR8= +github.com/aws/aws-sdk-go-v2/service/sso v1.4.2/go.mod h1:NBvT9R1MEF+Ud6ApJKM0G+IkPchKS7p7c2YPKwHmBOk= +github.com/aws/aws-sdk-go-v2/service/sts v1.7.2/go.mod h1:8EzeIqfWt2wWT4rJVu3f21TfrhJ8AEMzVybRNSb/b4g= +github.com/aws/smithy-go v1.8.0/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= +github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= +github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= +github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= +github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= +github.com/cenkalti/backoff/v4 v4.2.1 h1:y4OZtCnogmCPw98Zjyt5a6+QwPLGkiQsYW5oUqylYbM= +github.com/cenkalti/backoff/v4 v4.2.1/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= +github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= +github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44= +github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= +github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= +github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= +github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= +github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= +github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= +github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= +github.com/coreos/go-systemd/v22 v22.3.2/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= +github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= +github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= +github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= +github.com/envoyproxy/go-control-plane v0.9.9-0.20210217033140-668b12f5399d/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= +github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= +github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= +github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU= +github.com/fatih/structs v1.1.0/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga6PJ7M= +github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= +github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= +github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= +github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= +github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= +github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= +github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= +github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= +github.com/go-kit/log v0.2.0/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBjv0= +github.com/go-kit/log v0.2.1 h1:MRVx0/zhvdseW+Gza6N9rVzU/IVzaeE1SFI4raAhmBU= +github.com/go-kit/log v0.2.1/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBjv0= +github.com/go-ldap/ldap v3.0.2+incompatible/go.mod h1:qfd9rJvER9Q0/D/Sqn1DfHRoBp40uXYvFoEVrNEPqRc= +github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= +github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= +github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= +github.com/go-logfmt/logfmt v0.5.1/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs= +github.com/go-logfmt/logfmt v0.6.0 h1:wGYYu3uicYdqXVgoYbvnkrPVXkuLM1p1ifugDMEdRi4= +github.com/go-logfmt/logfmt v0.6.0/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs= +github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= +github.com/go-logr/logr v1.2.4 h1:g01GSCwiDw2xSZfjJ2/T9M+S6pFdcNtFYsp+Y43HYDQ= +github.com/go-logr/logr v1.2.4/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= +github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= +github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= +github.com/go-ole/go-ole v1.2.6 h1:/Fpf6oFPoeFik9ty7siob0G6Ke8QvQEuVcuChpwXzpY= +github.com/go-ole/go-ole v1.2.6/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0= +github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= +github.com/go-test/deep v1.0.2-0.20181118220953-042da051cf31/go.mod h1:wGDj63lr65AM2AQyKZd/NYHGb0R+1RLqB8NKt3aSFNA= +github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= +github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= +github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= +github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= +github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= +github.com/golang/glog v1.1.2 h1:DVjP2PbBOzHyzA+dn3WhHIq4NdVu3Q+pvivFICf/7fo= +github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE= +github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= +github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= +github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= +github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= +github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= +github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= +github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= +github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= +github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= +github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= +github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= +github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= +github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= +github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= +github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= +github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= +github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= +github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= +github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= +github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= +github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE= +github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= +github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= +github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= +github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= +github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= +github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= +github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= +github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.1 h1:KjJaJ9iWZ3jOFZIf1Lqf4laDRCasjl0BCmnEGxkdLb4= +github.com/google/uuid v1.3.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= +github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= +github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= +github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.18.0 h1:RtRsiaGvWxcwd8y3BiRZxsylPT8hLWZ5SPcfI+3IDNk= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.18.0/go.mod h1:TzP6duP4Py2pHLVPPQp42aoYI92+PCrVotyR5e8Vqlk= +github.com/hashicorp/consul/api v1.13.0/go.mod h1:ZlVrynguJKcYr54zGaDbaL3fOvKC9m72FhPvA8T35KQ= +github.com/hashicorp/consul/sdk v0.8.0/go.mod h1:GBvyrGALthsZObzUGsfgHZQDXjg4lOjagTIwIR1vPms= +github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= +github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= +github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= +github.com/hashicorp/go-hclog v0.0.0-20180709165350-ff2cf002a8dd/go.mod h1:9bjs9uLqI8l75knNv3lV1kA55veR+WUPSiKIWcQHudI= +github.com/hashicorp/go-hclog v0.8.0/go.mod h1:5CU+agLiy3J7N7QjHK5d05KxGsuXiQLrjA0H7acj2lQ= +github.com/hashicorp/go-hclog v0.12.0/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= +github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= +github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= +github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= +github.com/hashicorp/go-multierror v1.1.0/go.mod h1:spPvp8C1qA32ftKqdAHm4hHTbPw+vmowP0z+KUhOZdA= +github.com/hashicorp/go-plugin v1.0.1/go.mod h1:++UyYGoz3o5w9ZzAdZxtQKrWWP+iqPBn3cQptSMzBuY= +github.com/hashicorp/go-retryablehttp v0.5.4/go.mod h1:9B5zBasrRhHXnJnui7y6sL7es7NDiJgTc6Er0maI1Xs= +github.com/hashicorp/go-rootcerts v1.0.1/go.mod h1:pqUvnprVnM5bf7AOirdbb01K4ccR319Vf4pU3K5EGc8= +github.com/hashicorp/go-rootcerts v1.0.2/go.mod h1:pqUvnprVnM5bf7AOirdbb01K4ccR319Vf4pU3K5EGc8= +github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= +github.com/hashicorp/go-sockaddr v1.0.2/go.mod h1:rB4wwRAUzs07qva3c5SdrY/NEtAUjGlgmH/UkBUC97A= +github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4= +github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-version v1.1.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= +github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= +github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= +github.com/hashicorp/mdns v1.0.4/go.mod h1:mtBihi+LeNXGtG8L9dX59gAEa12BDtBQSp4v/YAJqrc= +github.com/hashicorp/memberlist v0.3.0/go.mod h1:MS2lj3INKhZjWNqd3N0m3J+Jxf3DAOnAH9VT3Sh9MUE= +github.com/hashicorp/serf v0.9.6/go.mod h1:TXZNMjZQijwlDvp+r0b63xZ45H7JmCmgg4gpTwn9UV4= +github.com/hashicorp/vault/api v1.0.4/go.mod h1:gDcqh3WGcR1cpF5AJz/B1UFheUEneMoIospckxBxk6Q= +github.com/hashicorp/vault/sdk v0.1.13/go.mod h1:B+hVj7TpuQY1Y/GPbCpffmgd+tSEwvhkWnjtSYCaS2M= +github.com/hashicorp/yamux v0.0.0-20180604194846-3520598351bb/go.mod h1:+NfK9FKeTrX5uv1uIXGdwYDTeHna2qgaIlx54MXqjAM= +github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d/go.mod h1:+NfK9FKeTrX5uv1uIXGdwYDTeHna2qgaIlx54MXqjAM= +github.com/hjson/hjson-go/v4 v4.0.0/go.mod h1:KaYt3bTw3zhBjYqnXkYywcYctk0A2nxeEFTse3rH13E= +github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= +github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= +github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= +github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= +github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= +github.com/joho/godotenv v1.3.0/go.mod h1:7hK45KPybAkOC6peb+G5yklZfMxEjkZhHbwpqxOKXbg= +github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= +github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= +github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= +github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= +github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= +github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= +github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= +github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= +github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= +github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/knadh/koanf v1.5.0 h1:q2TSd/3Pyc/5yP9ldIrSdIz26MCcyNQzW0pEAugLPNs= +github.com/knadh/koanf v1.5.0/go.mod h1:Hgyjp4y8v44hpZtPzs7JZfRAW5AhN7KfZcwv1RYggDs= +github.com/knadh/koanf/v2 v2.0.1 h1:1dYGITt1I23x8cfx8ZnldtezdyaZtfAuRtIFOiRzK7g= +github.com/knadh/koanf/v2 v2.0.1/go.mod h1:ZeiIlIDXTE7w1lMT6UVcNiRAS2/rCeLn/GdLNvY1Dus= +github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= +github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= +github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= +github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= +github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= +github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= +github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= +github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 h1:6E+4a0GO5zZEnZ81pIr0yLvtUWk2if982qA3F3QD6H4= +github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0/go.mod h1:zJYVVT2jmtg6P3p1VtQj7WsuWi/y4VnjVBn7F8KPB3I= +github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= +github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= +github.com/mattn/go-colorable v0.1.6/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= +github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= +github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= +github.com/mattn/go-isatty v0.0.10/go.mod h1:qgIWMr58cqv1PHHyhnkY9lrL7etaEgOFcMEpPG5Rm84= +github.com/mattn/go-isatty v0.0.11/go.mod h1:PhnuNfih5lzO57/f3n+odYbM4JtupLOxQOAqxQCu2WE= +github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= +github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= +github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 h1:jWpvCLoY8Z/e3VKvlsiIGKtc+UG6U5vzxaoagmhXfyg= +github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0/go.mod h1:QUyp042oQthUoa9bqDv0ER0wrtXnBruoNd7aNjkbP+k= +github.com/miekg/dns v1.1.26/go.mod h1:bPDLeHnStXmXAq1m/Ch/hvfNHr14JKNPMBo3VZKjuso= +github.com/miekg/dns v1.1.41/go.mod h1:p6aan82bvRIyn+zDIv9xYNUpwa73JcSh9BKwknJysuI= +github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= +github.com/mitchellh/cli v1.1.0/go.mod h1:xcISNoH86gajksDmfB23e/pu+B+GeFRMYmoHXxx3xhI= +github.com/mitchellh/copystructure v1.0.0/go.mod h1:SNtv71yrdKgLRyLFxmLdkAbkKEFWgYaq1OVrnRcwhnw= +github.com/mitchellh/copystructure v1.2.0 h1:vpKXTN4ewci03Vljg/q9QvCGUDttBOGBIa15WveJJGw= +github.com/mitchellh/copystructure v1.2.0/go.mod h1:qLl+cE2AmVv+CoeAwDPye/v+N2HKCj9FbZEVFJRxO9s= +github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= +github.com/mitchellh/go-testing-interface v0.0.0-20171004221916-a61a99592b77/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= +github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= +github.com/mitchellh/go-wordwrap v1.0.0/go.mod h1:ZXFpozHsX6DPmq2I0TCekCxypsnAUbP2oI0UX1GXzOo= +github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= +github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= +github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= +github.com/mitchellh/mapstructure v1.5.1-0.20220423185008-bf980b35cac4 h1:BpfhmLKZf+SjVanKKhCgf3bg+511DmU9eDQTen7LLbY= +github.com/mitchellh/mapstructure v1.5.1-0.20220423185008-bf980b35cac4/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= +github.com/mitchellh/reflectwalk v1.0.0/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= +github.com/mitchellh/reflectwalk v1.0.2 h1:G2LzWKi524PWgd3mLHV8Y5k7s6XUvT0Gef6zxSIeXaQ= +github.com/mitchellh/reflectwalk v1.0.2/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= +github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= +github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= +github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= +github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= +github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= +github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= +github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= +github.com/npillmayer/nestext v0.1.3/go.mod h1:h2lrijH8jpicr25dFY+oAJLyzlya6jhnuG+zWp9L0Uk= +github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= +github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= +github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= +github.com/pelletier/go-toml v1.7.0/go.mod h1:vwGMzjaWMwyfHwgIBhI2YUM4fB6nL6lVAvS1LBMMhTE= +github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= +github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= +github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= +github.com/posener/complete v1.2.3/go.mod h1:WZIdtGGp+qx0sLrYKtIRAruyNpv6hFCicSgv7Sy7s/s= +github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c h1:ncq/mPwQF4JjgDlrVEn3C11VoGHZN7m8qihwgMEtzYw= +github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c/go.mod h1:OmDBASR4679mdNQnz2pUhc2G8CO2JrUAVFDRBDP/hJE= +github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= +github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= +github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= +github.com/prometheus/client_golang v1.11.0/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= +github.com/prometheus/client_golang v1.11.1/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= +github.com/prometheus/client_golang v1.12.1/go.mod h1:3Z9XVyYiZYEO+YQWt3RD2R3jrbd179Rt297l4aS6nDY= +github.com/prometheus/client_golang v1.12.2/go.mod h1:3Z9XVyYiZYEO+YQWt3RD2R3jrbd179Rt297l4aS6nDY= +github.com/prometheus/client_golang v1.13.0/go.mod h1:vTeo+zgvILHsnnj/39Ou/1fPN5nJFOEMgftOUOmlvYQ= +github.com/prometheus/client_golang v1.17.0 h1:rl2sfwZMtSthVU752MqfjQozy7blglC+1SOtjMAMh+Q= +github.com/prometheus/client_golang v1.17.0/go.mod h1:VeL+gMmOAxkS2IqfCq0ZmHSL+LjWfWDUmp1mBz9JgUY= +github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= +github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/client_model v0.5.0 h1:VQw1hfvPvk3Uv6Qf29VrPF32JB6rtbgI6cYPYQjL0Qw= +github.com/prometheus/client_model v0.5.0/go.mod h1:dTiFglRmd66nLR9Pv9f0mZi7B7fk5Pm3gvsjB5tr+kI= +github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= +github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo= +github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9VFqTh1DIvc= +github.com/prometheus/common v0.32.1/go.mod h1:vu+V0TpY+O6vW9J44gczi3Ap/oXXR10b+M/gUGO4Hls= +github.com/prometheus/common v0.35.0/go.mod h1:phzohg0JFMnBEFGxTDbfu3QyL5GI8gTQJFhYO5B3mfA= +github.com/prometheus/common v0.37.0/go.mod h1:phzohg0JFMnBEFGxTDbfu3QyL5GI8gTQJFhYO5B3mfA= +github.com/prometheus/common v0.45.0 h1:2BGz0eBc2hdMDLnO/8n0jeB3oPrt2D08CekT0lneoxM= +github.com/prometheus/common v0.45.0/go.mod h1:YJmSTw9BoKxJplESWWxlbyttQR4uaEcGyv9MZjVOJsY= +github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= +github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= +github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= +github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= +github.com/prometheus/procfs v0.7.3/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= +github.com/prometheus/procfs v0.8.0/go.mod h1:z7EfXMXOkbkqb9IINtpCn86r/to3BnA0uaxHdg830/4= +github.com/prometheus/procfs v0.11.1 h1:xRC8Iq1yyca5ypa9n1EZnWZkt7dwcoRPQwX/5gwaUuI= +github.com/prometheus/procfs v0.11.1/go.mod h1:eesXgaPo1q7lBpVMoMy0ZOFTth9hBn4W/y0/p/ScXhY= +github.com/prometheus/statsd_exporter v0.22.7 h1:7Pji/i2GuhK6Lu7DHrtTkFmNBCudCPT1pX2CziuyQR0= +github.com/prometheus/statsd_exporter v0.22.7/go.mod h1:N/TevpjkIh9ccs6nuzY3jQn9dFqnUakOjnEuMPJJJnI= +github.com/rhnvrm/simples3 v0.6.1/go.mod h1:Y+3vYm2V7Y4VijFoJHHTrja6OgPrJ2cBti8dPGkC3sA= +github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= +github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= +github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ= +github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= +github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= +github.com/ryanuber/columnize v2.1.0+incompatible/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= +github.com/ryanuber/go-glob v1.0.0/go.mod h1:807d1WSdnB0XRJzKNil9Om6lcp/3a0v4qIHxIXzX/Yc= +github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= +github.com/shirou/gopsutil/v3 v3.23.9 h1:ZI5bWVeu2ep4/DIxB4U9okeYJ7zp/QLTO4auRb/ty/E= +github.com/shirou/gopsutil/v3 v3.23.9/go.mod h1:x/NWSb71eMcjFIO0vhyGW5nZ7oSIgVjrCnADckb85GA= +github.com/shoenig/go-m1cpu v0.1.6 h1:nxdKQNcEB6vzgA2E2bvzKIYRuNj7XNJ4S/aRSwKzFtM= +github.com/shoenig/go-m1cpu v0.1.6/go.mod h1:1JJMcUBvfNwpq05QDQVAnx3gUHr9IYF7GNg9SUEw2VQ= +github.com/shoenig/test v0.6.4 h1:kVTaSd7WLz5WZ2IaoM0RSzRsUD+m8wRR+5qvntpn4LU= +github.com/shoenig/test v0.6.4/go.mod h1:byHiCGXqrVaflBLAMq/srcZIHynQPQgeyvkvXnjqq0k= +github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= +github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= +github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= +github.com/spf13/cobra v1.7.0 h1:hyqWnYt1ZQShIddO5kBpj3vu05/++x6tJ6dg8EC572I= +github.com/spf13/cobra v1.7.0/go.mod h1:uLxZILRyS/50WlhOIKD7W6V5bgeIt+4sICxh6uRMrb0= +github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= +github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= +github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= +github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= +github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= +github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= +github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= +github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= +github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= +github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= +github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +github.com/stvp/go-udp-testing v0.0.0-20201019212854-469649b16807/go.mod h1:7jxmlfBCDBXRzr0eAQJ48XC1hBu1np4CS5+cHEYfwpc= +github.com/tklauser/go-sysconf v0.3.12 h1:0QaGUFOdQaIVdPgfITYzaTegZvdCjmYO52cSFAEVmqU= +github.com/tklauser/go-sysconf v0.3.12/go.mod h1:Ho14jnntGE1fpdOqQEEaiKRpvIavV0hSfmBq8nJbHYI= +github.com/tklauser/numcpus v0.6.1 h1:ng9scYS7az0Bk4OZLvrNXNSAO2Pxr1XXRAPyjhIx+Fk= +github.com/tklauser/numcpus v0.6.1/go.mod h1:1XfjsgE2zo8GVw7POkMbHENHzVg3GzmoZ9fESEdAacY= +github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= +github.com/yusufpapurcu/wmi v1.2.3 h1:E1ctvB7uKFMOJw3fdOW32DwGE9I7t++CRUEMKvFoFiw= +github.com/yusufpapurcu/wmi v1.2.3/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= +go.etcd.io/etcd/api/v3 v3.5.4/go.mod h1:5GB2vv4A4AOn3yk7MftYGHkUfGtDHnEraIjym4dYz5A= +go.etcd.io/etcd/client/pkg/v3 v3.5.4/go.mod h1:IJHfcCEKxYu1Os13ZdwCwIUTUVGYTSAM3YSwc9/Ac1g= +go.etcd.io/etcd/client/v3 v3.5.4/go.mod h1:ZaRkVgBZC+L+dLCjTcF1hRXpgZXQPOvnA/Ak/gq3kiY= +go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= +go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= +go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E= +go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= +go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= +go.opentelemetry.io/collector v0.88.1-0.20231026220224-6405e152a2d9 h1:UIbHSFtHlmfXK0vMvuB8j71j5pW5uKOUsSYJMlhVfKg= +go.opentelemetry.io/collector v0.88.1-0.20231026220224-6405e152a2d9/go.mod h1:5iWdJH9WM+Bp+t3Ii72ppPmeZ0B2vci07ApE+0fRGKs= +go.opentelemetry.io/collector/component v0.88.1-0.20231026220224-6405e152a2d9 h1:t9GCaQDZ1MDBjEAC1Y7NvwiqvVppK6ckAfrUEAlFioA= +go.opentelemetry.io/collector/component v0.88.1-0.20231026220224-6405e152a2d9/go.mod h1:4utKxz4Lilym3SPxNXJHosdaTjT1aQxI+TCmnJO54pU= +go.opentelemetry.io/collector/config/confignet v0.88.0 h1:CbVZQpWC8Bm/BKo3x2mnQZVdQKClU0gCa6SVbRCc930= +go.opentelemetry.io/collector/config/configtelemetry v0.88.1-0.20231026220224-6405e152a2d9 h1:4WPy3qE1lJE1LZE7t1kAj1XSZN85w68JknZO5Uo00vw= +go.opentelemetry.io/collector/config/configtelemetry v0.88.1-0.20231026220224-6405e152a2d9/go.mod h1:+LAXM5WFMW/UbTlAuSs6L/W72WC+q8TBJt/6z39FPOU= +go.opentelemetry.io/collector/confmap v0.88.1-0.20231026220224-6405e152a2d9 h1:JKFChlNpigR1Q4hZUjDU2sB2VuQ+RigAh7oOQfdcaiQ= +go.opentelemetry.io/collector/confmap v0.88.1-0.20231026220224-6405e152a2d9/go.mod h1:CSJlMk1KRZloXAygpiPeCLpuQiLVDEZYbGsGHIKHeUg= +go.opentelemetry.io/collector/connector v0.88.1-0.20231026220224-6405e152a2d9 h1:Anbij6psOWt/2Und9/JBCac3tOnW3+Tj5nqMF9mRBco= +go.opentelemetry.io/collector/connector v0.88.1-0.20231026220224-6405e152a2d9/go.mod h1:vkOHpyWNlHQVFHKUB4Dp1yYCIpAFnouZ2REupkzL/PU= +go.opentelemetry.io/collector/consumer v0.88.1-0.20231026220224-6405e152a2d9 h1:xiosDLoF99krBlBdiZvw22CSCYU0picQMKskzjaIU8I= +go.opentelemetry.io/collector/consumer v0.88.1-0.20231026220224-6405e152a2d9/go.mod h1:VVoafgyhjpO6fuJu12GqspmuLrn91JCOou0sOtb9GOg= +go.opentelemetry.io/collector/exporter v0.88.1-0.20231026220224-6405e152a2d9 h1:mc69mIeHCwIqbyFsb26BI4VJA0s3xZ3Dpm0j2sGbDqI= +go.opentelemetry.io/collector/exporter v0.88.1-0.20231026220224-6405e152a2d9/go.mod h1:KJneQqj1XoDJoy2ztN5TbgTjNXRhFfFqKRndz2AXQxM= +go.opentelemetry.io/collector/extension v0.88.1-0.20231026220224-6405e152a2d9 h1:6lnGLRgbuTQR7sR1xRqTfJMX2UNkOKbqVAwJDzobvGY= +go.opentelemetry.io/collector/extension v0.88.1-0.20231026220224-6405e152a2d9/go.mod h1:5wPlOyWtVJcZS9CMhFUnuRvNQ0XIoV/iUSaZWtCjoHA= +go.opentelemetry.io/collector/extension/zpagesextension v0.88.0 h1:cpkwzjhq6jfkVq3ltUl9wdb/8RrWbn0utHTCU3K5Mhc= +go.opentelemetry.io/collector/featuregate v1.0.0-rcv0017.0.20231026220224-6405e152a2d9 h1:luvDPu+FNy6LIylBOO8PH/ca6ym7JKAdMe1J1aJbsF4= +go.opentelemetry.io/collector/featuregate v1.0.0-rcv0017.0.20231026220224-6405e152a2d9/go.mod h1:fLmJMf1AoHttkF8p5oJAc4o5ZpHu8yO5XYJ7gbLCLzo= +go.opentelemetry.io/collector/otelcol v0.88.1-0.20231026220224-6405e152a2d9 h1:1xwiAV3ld5at8QCIUtHoUBK1DWijGydatUq6mkaI4S4= +go.opentelemetry.io/collector/otelcol v0.88.1-0.20231026220224-6405e152a2d9/go.mod h1:m4m69T9SB+SzHzoSfu97KGQePxSjQPFPron4LoLd07k= +go.opentelemetry.io/collector/pdata v1.0.0-rcv0017.0.20231026220224-6405e152a2d9 h1:TVYPzf0ZwFDTSoQ6gPk4lpQgVK4g43cWYuo710E0RHI= +go.opentelemetry.io/collector/pdata v1.0.0-rcv0017.0.20231026220224-6405e152a2d9/go.mod h1:Rv9fOclA5AtM/JGm0d4jBOIAo1+jBA13UT5Bx0ovXi4= +go.opentelemetry.io/collector/processor v0.88.1-0.20231026220224-6405e152a2d9 h1:0VTHWB4fFD03vFyxIUWEaSs+eI0B3eVTM3wKAg7APW8= +go.opentelemetry.io/collector/processor v0.88.1-0.20231026220224-6405e152a2d9/go.mod h1:cuUsCKMuQEOX5/9QfUZLiHZjkLND26Dbfief+iwKr/A= +go.opentelemetry.io/collector/receiver v0.88.1-0.20231026220224-6405e152a2d9 h1:h+1btMM+rRpZsCnR2vFmvmczeQxKhVwEohV8urOvZho= +go.opentelemetry.io/collector/receiver v0.88.1-0.20231026220224-6405e152a2d9/go.mod h1:3lhOi7CWMwiiolm6d579ZX+pIVwKPCRP+7ScontYOuI= +go.opentelemetry.io/collector/semconv v0.88.1-0.20231026220224-6405e152a2d9 h1:iRAs+Zp4jmwVXRNAqgl5x8of2zuFty3QWNSqNNQY0NQ= +go.opentelemetry.io/collector/semconv v0.88.1-0.20231026220224-6405e152a2d9/go.mod h1:j/8THcqVxFna1FpvA2zYIsUperEtOaRaqoLYIN4doWw= +go.opentelemetry.io/collector/service v0.88.1-0.20231026220224-6405e152a2d9 h1:C/MtKPc53e72EgYbnD4VPXWbWLl/6EO7euDAQkgz3tU= +go.opentelemetry.io/collector/service v0.88.1-0.20231026220224-6405e152a2d9/go.mod h1:y70KVPa6/sZme1ZHUi5pmFnKh1x0o3S//2TtWp5m9kk= +go.opentelemetry.io/contrib/propagators/b3 v1.20.0 h1:Yty9Vs4F3D6/liF1o6FNt0PvN85h/BJJ6DQKJ3nrcM0= +go.opentelemetry.io/contrib/propagators/b3 v1.20.0/go.mod h1:On4VgbkqYL18kbJlWsa18+cMNe6rYpBnPi1ARI/BrsU= +go.opentelemetry.io/contrib/zpages v0.45.0 h1:jIwHHGoWzJoZdbIUtWdErjL85Gni6BignnAFqDtMRL4= +go.opentelemetry.io/otel v1.19.0 h1:MuS/TNf4/j4IXsZuJegVzI1cwut7Qc00344rgH7p8bs= +go.opentelemetry.io/otel v1.19.0/go.mod h1:i0QyjOq3UPoTzff0PJB2N66fb4S0+rSbSB15/oyH9fY= +go.opentelemetry.io/otel/bridge/opencensus v0.42.0 h1:QvC+bcZkWMphWPiVqRQygMj6M0/3TOuJEO+erRA7kI8= +go.opentelemetry.io/otel/bridge/opencensus v0.42.0/go.mod h1:XJojP7g5DqYdiyArix/H9i1XzPPlIUc9dGLKtF9copI= +go.opentelemetry.io/otel/exporters/otlp/otlpmetric v0.42.0 h1:ZtfnDL+tUrs1F0Pzfwbg2d59Gru9NCH3bgSHBM6LDwU= +go.opentelemetry.io/otel/exporters/otlp/otlpmetric v0.42.0/go.mod h1:hG4Fj/y8TR/tlEDREo8tWstl9fO9gcFkn4xrx0Io8xU= +go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v0.42.0 h1:NmnYCiR0qNufkldjVvyQfZTHSdzeHoZ41zggMsdMcLM= +go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v0.42.0/go.mod h1:UVAO61+umUsHLtYb8KXXRoHtxUkdOPkYidzW3gipRLQ= +go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp v0.42.0 h1:wNMDy/LVGLj2h3p6zg4d0gypKfWKSWI14E1C4smOgl8= +go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp v0.42.0/go.mod h1:YfbDdXAAkemWJK3H/DshvlrxqFB2rtW4rY6ky/3x/H0= +go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.19.0 h1:Mne5On7VWdx7omSrSSZvM4Kw7cS7NQkOOmLcgscI51U= +go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.19.0/go.mod h1:IPtUMKL4O3tH5y+iXVyAXqpAwMuzC1IrxVS81rummfE= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.19.0 h1:3d+S281UTjM+AbF31XSOYn1qXn3BgIdWl8HNEpx08Jk= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.19.0/go.mod h1:0+KuTDyKL4gjKCF75pHOX4wuzYDUZYfAQdSu43o+Z2I= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.19.0 h1:IeMeyr1aBvBiPVYihXIaeIZba6b8E1bYp7lbdxK8CQg= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.19.0/go.mod h1:oVdCUtjq9MK9BlS7TtucsQwUcXcymNiEDjgDD2jMtZU= +go.opentelemetry.io/otel/exporters/prometheus v0.42.0 h1:jwV9iQdvp38fxXi8ZC+lNpxjK16MRcZlpDYvbuO1FiA= +go.opentelemetry.io/otel/exporters/prometheus v0.42.0/go.mod h1:f3bYiqNqhoPxkvI2LrXqQVC546K7BuRDL/kKuxkujhA= +go.opentelemetry.io/otel/exporters/stdout/stdoutmetric v0.42.0 h1:4jJuoeOo9W6hZnz+r046fyoH5kykZPRvKfUXJVfMpB0= +go.opentelemetry.io/otel/exporters/stdout/stdoutmetric v0.42.0/go.mod h1:/MtYTE1SfC2QIcE0bDot6fIX+h+WvXjgTqgn9P0LNPE= +go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.19.0 h1:Nw7Dv4lwvGrI68+wULbcq7su9K2cebeCUrDjVrUJHxM= +go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.19.0/go.mod h1:1MsF6Y7gTqosgoZvHlzcaaM8DIMNZgJh87ykokoNH7Y= +go.opentelemetry.io/otel/metric v1.19.0 h1:aTzpGtV0ar9wlV4Sna9sdJyII5jTVJEvKETPiOKwvpE= +go.opentelemetry.io/otel/metric v1.19.0/go.mod h1:L5rUsV9kM1IxCj1MmSdS+JQAcVm319EUrDVLrt7jqt8= +go.opentelemetry.io/otel/sdk v1.19.0 h1:6USY6zH+L8uMH8L3t1enZPR3WFEmSTADlqldyHtJi3o= +go.opentelemetry.io/otel/sdk v1.19.0/go.mod h1:NedEbbS4w3C6zElbLdPJKOpJQOrGUJ+GfzpjUvI0v1A= +go.opentelemetry.io/otel/sdk/metric v1.19.0 h1:EJoTO5qysMsYCa+w4UghwFV/ptQgqSL/8Ni+hx+8i1k= +go.opentelemetry.io/otel/sdk/metric v1.19.0/go.mod h1:XjG0jQyFJrv2PbMvwND7LwCEhsJzCzV5210euduKcKY= +go.opentelemetry.io/otel/trace v1.19.0 h1:DFVQmlVbfVeOuBRrwdtaehRrWiL1JoVs9CPIQ1Dzxpg= +go.opentelemetry.io/otel/trace v1.19.0/go.mod h1:mfaSyvGyEJEI0nyV2I4qhNQnbBOUUmYZpYojqMnX2vo= +go.opentelemetry.io/proto/otlp v1.0.0 h1:T0TX0tmXU8a3CbNXzEKGeU5mIVOdf0oykP+u2lIVU/I= +go.opentelemetry.io/proto/otlp v1.0.0/go.mod h1:Sy6pihPLfYHkr3NkUbEhGHFhINUSI/v80hjKIs5JXpM= +go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= +go.uber.org/goleak v1.2.1 h1:NBol2c7O1ZokfZ0LEU9K6Whx/KnwvepVetCUhtKja4A= +go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= +go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= +go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= +go.uber.org/zap v1.17.0/go.mod h1:MXVU+bhUf/A7Xi2HNOnopQOrmycQ5Ih87HtOu4q5SSo= +go.uber.org/zap v1.26.0 h1:sI7k6L95XOKS281NhVKOFCUNIvv9e0w4BF8N3u+tCRo= +go.uber.org/zap v1.26.0/go.mod h1:dtElttAiwGvoJ/vj4IwHBS/gXsEu/pZ50mUIRWuG0so= +golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190923035154-9ee001bba392/go.mod h1:/lpIB1dKB+9EgE3H3cr1v9wB50oz8l4C4h62xy7jSTY= +golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= +golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= +golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= +golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= +golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= +golang.org/x/exp v0.0.0-20230321023759-10a507213a29 h1:ooxPy7fPvB4kwsA2h+iBNHkAbp/4JxTSwCmvdjEYmug= +golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= +golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= +golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= +golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= +golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/lint v0.0.0-20210508222113-6edffad5e616/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= +golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= +golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= +golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= +golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= +golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= +golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= +golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190923162816-aa69164e4478/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= +golang.org/x/net v0.0.0-20210410081132-afb366fc7cd1/go.mod h1:9tjilg8BloeKEkVJvy7fQ90B1CfIiPueXVOjqfkSzI8= +golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= +golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= +golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= +golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= +golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190129075346-302c3dd5f1cc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190403152447-81d4e9dc473e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190922100055-0a153f010e69/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190924154521-2837fb4f24fe/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191008105621-543471e840be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200124204421-9fbb57f87de9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201204225414-ed752295db88/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210303074136-134d130e1a04/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220708085239-5a0f0661e09d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.13.0 h1:Af8nKPmuFypiUBjVoU9V20FiaFXOcuZI21p0ycVYYGE= +golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= +golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= +golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.1-0.20181227161524-e6919f6577db/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= +golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= +golang.org/x/text v0.13.0 h1:ablQoSUd0tRdKxZewP80B+BaqeKJuVhuRxj/dkrun3k= +golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= +golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= +golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20190907020128-2ca718005c18/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= +golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= +golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= +golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gonum.org/v1/gonum v0.14.0 h1:2NiG67LD1tEH0D7kM+ps2V+fXmsAnpUeec7n8tcr4S0= +gonum.org/v1/gonum v0.14.0/go.mod h1:AoWeoz0becf9QMWtE8iWXNXc27fK4fNeHNf/oMejGfU= +google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= +google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= +google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= +google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= +google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= +google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= +google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= +google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= +google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= +google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= +google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190404172233-64821d5d2107/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= +google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= +google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= +google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= +google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= +google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= +google.golang.org/genproto v0.0.0-20231012201019-e917dd12ba7a h1:fwgW9j3vHirt4ObdHoYNwuO24BEZjSzbh+zPaNWoiY8= +google.golang.org/genproto/googleapis/api v0.0.0-20231002182017-d307bd883b97 h1:W18sezcAYs+3tDZX4F80yctqa12jcP1PUS2gQu1zTPU= +google.golang.org/genproto/googleapis/api v0.0.0-20231002182017-d307bd883b97/go.mod h1:iargEX0SFPm3xcfMI0d1domjg0ZF4Aa0p2awqyxhvF0= +google.golang.org/genproto/googleapis/rpc v0.0.0-20231016165738-49dd2c1f3d0b h1:ZlWIi1wSK56/8hn4QcBp/j9M7Gt3U/3hZw3mC7vDICo= +google.golang.org/genproto/googleapis/rpc v0.0.0-20231016165738-49dd2c1f3d0b/go.mod h1:swOH3j0KzcDDgGUWr+SNpyTen5YrXjS3eyPzFYKc6lc= +google.golang.org/grpc v1.14.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= +google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= +google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= +google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= +google.golang.org/grpc v1.22.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= +google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= +google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= +google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0= +google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= +google.golang.org/grpc v1.38.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= +google.golang.org/grpc v1.59.0 h1:Z5Iec2pjwb+LEOqzpB2MR12/eKFhDPhuqW91O+4bwUk= +google.golang.org/grpc v1.59.0/go.mod h1:aUPDwccQo6OTjy7Hct4AfBPD1GptF4fyUjIkQ9YtF98= +google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= +google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= +google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= +google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= +google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= +google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= +google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= +google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= +google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= +google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8= +google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= +gopkg.in/asn1-ber.v1 v1.0.0-20181015200546-f715ec2f112d/go.mod h1:cuepJuh7vyXfUyUwEgHQXw849cJrilpS5NeIjOWESAw= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= +gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= +gopkg.in/square/go-jose.v2 v2.3.1/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= +gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= +gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= +honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= +honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= +rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= +rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= +rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= +sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc= diff --git a/processor/sumologicprocessor/internal/metadata/generated_status.go b/processor/sumologicprocessor/internal/metadata/generated_status.go new file mode 100644 index 000000000000..a48e8d04a401 --- /dev/null +++ b/processor/sumologicprocessor/internal/metadata/generated_status.go @@ -0,0 +1,14 @@ +// Code generated by mdatagen. DO NOT EDIT. + +package metadata + +import ( + "go.opentelemetry.io/collector/component" +) + +const ( + Type = "sumologic" + TracesStability = component.StabilityLevelBeta + MetricsStability = component.StabilityLevelBeta + LogsStability = component.StabilityLevelBeta +) diff --git a/processor/sumologicprocessor/log_fields_conversion_processor.go b/processor/sumologicprocessor/log_fields_conversion_processor.go new file mode 100644 index 000000000000..3d7721ccedce --- /dev/null +++ b/processor/sumologicprocessor/log_fields_conversion_processor.go @@ -0,0 +1,152 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +package sumologicprocessor // import "github.com/open-telemetry/opentelemetry-collector-contrib/processor/sumologicprocessor" + +import ( + "encoding/hex" + + "go.opentelemetry.io/collector/pdata/pcommon" + "go.opentelemetry.io/collector/pdata/plog" + "go.opentelemetry.io/collector/pdata/pmetric" + "go.opentelemetry.io/collector/pdata/ptrace" +) + +const ( + SeverityNumberAttributeName = "loglevel" + SeverityTextAttributeName = "severitytext" + SpanIDAttributeName = "spanid" + TraceIDAttributeName = "traceid" +) + +type logFieldAttribute struct { + Enabled bool `mapstructure:"enabled"` + Name string `mapstructure:"name"` +} + +type logFieldAttributesConfig struct { + SeverityNumberAttribute *logFieldAttribute `mapstructure:"severity_number"` + SeverityTextAttribute *logFieldAttribute `mapstructure:"severity_text"` + SpanIDAttribute *logFieldAttribute `mapstructure:"span_id"` + TraceIDAttribute *logFieldAttribute `mapstructure:"trace_id"` +} + +// spanIDToHexOrEmptyString returns a hex string from SpanID. +// An empty string is returned, if SpanID is empty. +func spanIDToHexOrEmptyString(id pcommon.SpanID) string { + if id.IsEmpty() { + return "" + } + return hex.EncodeToString(id[:]) +} + +// traceIDToHexOrEmptyString returns a hex string from TraceID. +// An empty string is returned, if TraceID is empty. +func traceIDToHexOrEmptyString(id pcommon.TraceID) string { + if id.IsEmpty() { + return "" + } + return hex.EncodeToString(id[:]) +} + +var severityNumberToLevel = map[string]string{ + plog.SeverityNumberUnspecified.String(): "UNSPECIFIED", + plog.SeverityNumberTrace.String(): "TRACE", + plog.SeverityNumberTrace2.String(): "TRACE2", + plog.SeverityNumberTrace3.String(): "TRACE3", + plog.SeverityNumberTrace4.String(): "TRACE4", + plog.SeverityNumberDebug.String(): "DEBUG", + plog.SeverityNumberDebug2.String(): "DEBUG2", + plog.SeverityNumberDebug3.String(): "DEBUG3", + plog.SeverityNumberDebug4.String(): "DEBUG4", + plog.SeverityNumberInfo.String(): "INFO", + plog.SeverityNumberInfo2.String(): "INFO2", + plog.SeverityNumberInfo3.String(): "INFO3", + plog.SeverityNumberInfo4.String(): "INFO4", + plog.SeverityNumberWarn.String(): "WARN", + plog.SeverityNumberWarn2.String(): "WARN2", + plog.SeverityNumberWarn3.String(): "WARN3", + plog.SeverityNumberWarn4.String(): "WARN4", + plog.SeverityNumberError.String(): "ERROR", + plog.SeverityNumberError2.String(): "ERROR2", + plog.SeverityNumberError3.String(): "ERROR3", + plog.SeverityNumberError4.String(): "ERROR4", + plog.SeverityNumberFatal.String(): "FATAL", + plog.SeverityNumberFatal2.String(): "FATAL2", + plog.SeverityNumberFatal3.String(): "FATAL3", + plog.SeverityNumberFatal4.String(): "FATAL4", +} + +// logFieldsConversionProcessor converts specific log entries to attributes which leads to presenting them as fields +// in the backend +type logFieldsConversionProcessor struct { + LogFieldsAttributes *logFieldAttributesConfig +} + +func newLogFieldConversionProcessor(logFieldsAttributes *logFieldAttributesConfig) *logFieldsConversionProcessor { + return &logFieldsConversionProcessor{ + logFieldsAttributes, + } +} + +func (proc *logFieldsConversionProcessor) addAttributes(log plog.LogRecord) { + if log.SeverityNumber() != plog.SeverityNumberUnspecified { + if _, found := log.Attributes().Get(SeverityNumberAttributeName); !found && + proc.LogFieldsAttributes.SeverityNumberAttribute.Enabled { + level := severityNumberToLevel[log.SeverityNumber().String()] + log.Attributes().PutStr(proc.LogFieldsAttributes.SeverityNumberAttribute.Name, level) + } + } + if _, found := log.Attributes().Get(SeverityTextAttributeName); !found && + proc.LogFieldsAttributes.SeverityTextAttribute.Enabled { + log.Attributes().PutStr(proc.LogFieldsAttributes.SeverityTextAttribute.Name, log.SeverityText()) + } + if _, found := log.Attributes().Get(SpanIDAttributeName); !found && + proc.LogFieldsAttributes.SpanIDAttribute.Enabled { + log.Attributes().PutStr(proc.LogFieldsAttributes.SpanIDAttribute.Name, spanIDToHexOrEmptyString(log.SpanID())) + } + if _, found := log.Attributes().Get(TraceIDAttributeName); !found && + proc.LogFieldsAttributes.TraceIDAttribute.Enabled { + log.Attributes().PutStr(proc.LogFieldsAttributes.TraceIDAttribute.Name, traceIDToHexOrEmptyString(log.TraceID())) + } +} + +func (proc *logFieldsConversionProcessor) processLogs(logs plog.Logs) error { + if !proc.isEnabled() { + return nil + } + + rls := logs.ResourceLogs() + for i := 0; i < rls.Len(); i++ { + ills := rls.At(i).ScopeLogs() + + for j := 0; j < ills.Len(); j++ { + logs := ills.At(j).LogRecords() + for k := 0; k < logs.Len(); k++ { + proc.addAttributes(logs.At(k)) + } + } + } + return nil +} + +func (proc *logFieldsConversionProcessor) processMetrics(_ pmetric.Metrics) error { + // No-op. Metrics should not be translated. + return nil +} + +func (proc *logFieldsConversionProcessor) processTraces(_ ptrace.Traces) error { + // No-op. Traces should not be translated. + return nil +} + +func (proc *logFieldsConversionProcessor) isEnabled() bool { + return proc.LogFieldsAttributes.SeverityNumberAttribute.Enabled || + proc.LogFieldsAttributes.SeverityTextAttribute.Enabled || + proc.LogFieldsAttributes.SpanIDAttribute.Enabled || + proc.LogFieldsAttributes.TraceIDAttribute.Enabled +} + +func (*logFieldsConversionProcessor) ConfigPropertyName() string { + return "field_attributes" +} diff --git a/processor/sumologicprocessor/metadata.yaml b/processor/sumologicprocessor/metadata.yaml new file mode 100644 index 000000000000..2a2c7b1561a6 --- /dev/null +++ b/processor/sumologicprocessor/metadata.yaml @@ -0,0 +1,9 @@ +type: sumologic + +status: + class: processor + stability: + beta: [traces, metrics, logs] + distributions: [sumo] + codeowners: + active: [aboguszewski-sumo, astencel-sumo, sumo-drosiek] diff --git a/processor/sumologicprocessor/nesting_processor.go b/processor/sumologicprocessor/nesting_processor.go new file mode 100644 index 000000000000..49ad38e9cc2e --- /dev/null +++ b/processor/sumologicprocessor/nesting_processor.go @@ -0,0 +1,300 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +package sumologicprocessor // import "github.com/open-telemetry/opentelemetry-collector-contrib/processor/sumologicprocessor" + +import ( + "strings" + + "go.opentelemetry.io/collector/pdata/pcommon" + "go.opentelemetry.io/collector/pdata/plog" + "go.opentelemetry.io/collector/pdata/pmetric" + "go.opentelemetry.io/collector/pdata/ptrace" +) + +type NestingProcessorConfig struct { + Separator string `mapstructure:"separator"` + Enabled bool `mapstructure:"enabled"` + Include []string `mapstructure:"include"` + Exclude []string `mapstructure:"exclude"` + SquashSingleValues bool `mapstructure:"squash_single_values"` +} + +type NestingProcessor struct { + separator string + enabled bool + allowlist []string + denylist []string + squashSingleValues bool +} + +func newNestingProcessor(config *NestingProcessorConfig) *NestingProcessor { + proc := &NestingProcessor{ + separator: config.Separator, + enabled: config.Enabled, + allowlist: config.Include, + denylist: config.Exclude, + squashSingleValues: config.SquashSingleValues, + } + + return proc +} + +func (proc *NestingProcessor) processLogs(logs plog.Logs) error { + if !proc.enabled { + return nil + } + + for i := 0; i < logs.ResourceLogs().Len(); i++ { + rl := logs.ResourceLogs().At(i) + + if err := proc.processAttributes(rl.Resource().Attributes()); err != nil { + return err + } + + for j := 0; j < rl.ScopeLogs().Len(); j++ { + logsRecord := rl.ScopeLogs().At(j).LogRecords() + + for k := 0; k < logsRecord.Len(); k++ { + if err := proc.processAttributes(logsRecord.At(k).Attributes()); err != nil { + return err + } + } + } + } + + return nil +} + +func (proc *NestingProcessor) processMetrics(metrics pmetric.Metrics) error { + if !proc.enabled { + return nil + } + + for i := 0; i < metrics.ResourceMetrics().Len(); i++ { + rm := metrics.ResourceMetrics().At(i) + + if err := proc.processAttributes(rm.Resource().Attributes()); err != nil { + return err + } + + for j := 0; j < rm.ScopeMetrics().Len(); j++ { + metricsSlice := rm.ScopeMetrics().At(j).Metrics() + + for k := 0; k < metricsSlice.Len(); k++ { + if err := processMetricLevelAttributes(proc, metricsSlice.At(k)); err != nil { + return err + } + } + } + } + + return nil +} + +func (proc *NestingProcessor) processTraces(traces ptrace.Traces) error { + if !proc.enabled { + return nil + } + + for i := 0; i < traces.ResourceSpans().Len(); i++ { + rs := traces.ResourceSpans().At(i) + + if err := proc.processAttributes(rs.Resource().Attributes()); err != nil { + return err + } + + for j := 0; j < rs.ScopeSpans().Len(); j++ { + spans := rs.ScopeSpans().At(j).Spans() + + for k := 0; k < spans.Len(); k++ { + if err := proc.processAttributes(spans.At(k).Attributes()); err != nil { + return err + } + } + } + } + + return nil +} + +func (proc *NestingProcessor) processAttributes(attributes pcommon.Map) error { + newMap := pcommon.NewMap() + + attributes.Range(func(k string, v pcommon.Value) bool { + // If key is not on allow list or is on deny list, skip translating it. + if !proc.shouldTranslateKey(k) { + v.CopyTo(newMap.PutEmpty(k)) + return true + } + + keys := strings.Split(k, proc.separator) + if len(keys) == 0 { + // Split returns empty slice only if both string and separator are empty + // set map[""] = v and return + newVal := newMap.PutEmpty(k) + v.CopyTo(newVal) + return true + } + + prevValue := pcommon.NewValueMap() + nextMap := prevValue.Map() + newMap.CopyTo(nextMap) + + for i := 0; i < len(keys); i++ { + if prevValue.Type() != pcommon.ValueTypeMap { + // If previous value was not a map, change it into a map. + // The former value will be set under the key "". + tempMap := pcommon.NewValueMap() + prevValue.CopyTo(tempMap.Map().PutEmpty("")) + tempMap.CopyTo(prevValue) + } + + newValue, ok := prevValue.Map().Get(keys[i]) + if ok { + prevValue = newValue + } else { + if i == len(keys)-1 { + // If we're checking the last key, insert empty value, to which v will be copied. + prevValue = prevValue.Map().PutEmpty(keys[i]) + } else { + // If we're not checking the last key, put a map. + prevValue = prevValue.Map().PutEmpty(keys[i]) + prevValue.SetEmptyMap() + } + } + } + + if prevValue.Type() == pcommon.ValueTypeMap { + // Now check the value we want to copy. If it is a map, we should merge both maps. + // Else, just place the value under the key "". + if v.Type() == pcommon.ValueTypeMap { + v.Map().Range(func(k string, val pcommon.Value) bool { + val.CopyTo(prevValue.Map().PutEmpty(k)) + return true + }) + } else { + v.CopyTo(prevValue.Map().PutEmpty("")) + } + } else { + v.CopyTo(prevValue) + } + + nextMap.CopyTo(newMap) + return true + }) + + if proc.squashSingleValues { + newMap = proc.squash(newMap) + } + + newMap.CopyTo(attributes) + + return nil +} + +// Checks if given key fulfills the following conditions: +// - has a prefix that exists in the allowlist (if it's not empty) +// - does not have a prefix that exists in the denylist +func (proc *NestingProcessor) shouldTranslateKey(k string) bool { + if len(proc.allowlist) > 0 { + isOk := false + for i := 0; i < len(proc.allowlist); i++ { + if strings.HasPrefix(k, proc.allowlist[i]) { + isOk = true + break + } + } + if !isOk { + return false + } + } + + if len(proc.denylist) > 0 { + for i := 0; i < len(proc.denylist); i++ { + if strings.HasPrefix(k, proc.denylist[i]) { + return false + } + } + } + + return true +} + +// Squashes maps that have single values, eg. map {"a": {"b": {"c": "C", "d": "D"}}}} +// gets squashes into {"a.b": {"c": "C", "d": "D"}}} +func (proc *NestingProcessor) squash(attributes pcommon.Map) pcommon.Map { + newMap := pcommon.NewValueMap() + attributes.CopyTo(newMap.Map()) + key := proc.squashAttribute(newMap) + + if key != "" { + retMap := pcommon.NewMap() + newMap.Map().CopyTo(retMap.PutEmptyMap(key)) + return retMap + } + + return newMap.Map() +} + +// A function that squashes keys in a value. +// If this value contained a map with one element, it gets squished and its key gets returned. +// +// If this value contained a map with many elements, this function is called on these elements, +// and the key gets replaced if needed, "" is returned. +// +// Else, nothing happens and "" is returned. +func (proc *NestingProcessor) squashAttribute(value pcommon.Value) string { + if value.Type() != pcommon.ValueTypeMap { + return "" + } + + m := value.Map() + if m.Len() == 1 { + // If the map contains only one key-value pair, squash it. + key := "" + val := pcommon.NewValueEmpty() + // This will iterate only over one value (the only one) + m.Range(func(k string, v pcommon.Value) bool { + keySuffix := proc.squashAttribute(v) + key = proc.squashKey(k, keySuffix) + val = v + return false + }) + + val.CopyTo(value) + return key + } + + // This map doesn't get squashed, but its content might have keys replaced. + newMap := pcommon.NewMap() + m.Range(func(k string, v pcommon.Value) bool { + keySuffix := proc.squashAttribute(v) + // If "" was returned, the value was not a one-element map and did not get squashed. + if keySuffix == "" { + v.CopyTo(newMap.PutEmpty(k)) + } else { + v.CopyTo(newMap.PutEmpty(proc.squashKey(k, keySuffix))) + } + + return true + }) + newMap.CopyTo(value.Map()) + + return "" +} + +func (proc *NestingProcessor) squashKey(key string, keySuffix string) string { + if keySuffix == "" { + return key + } + return key + proc.separator + keySuffix +} + +func (proc *NestingProcessor) isEnabled() bool { + return proc.enabled +} + +func (*NestingProcessor) ConfigPropertyName() string { + return "nest_attributes" +} diff --git a/processor/sumologicprocessor/nesting_processor_test.go b/processor/sumologicprocessor/nesting_processor_test.go new file mode 100644 index 000000000000..29b55cab9962 --- /dev/null +++ b/processor/sumologicprocessor/nesting_processor_test.go @@ -0,0 +1,248 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +package sumologicprocessor // import "github.com/open-telemetry/opentelemetry-collector-contrib/processor/sumologicprocessor" + +import ( + "testing" + + "github.com/stretchr/testify/require" + "go.opentelemetry.io/collector/pdata/pcommon" +) + +func TestNestingAttributes(t *testing.T) { + testCases := []struct { + name string + input map[string]pcommon.Value + expected map[string]pcommon.Value + include []string + exclude []string + }{ + { + name: "sample nesting", + input: map[string]pcommon.Value{ + "kubernetes.container_name": pcommon.NewValueStr("xyz"), + "kubernetes.host.name": pcommon.NewValueStr("the host"), + "kubernetes.host.address": pcommon.NewValueStr("127.0.0.1"), + "kubernetes.namespace_name": pcommon.NewValueStr("sumologic"), + "another_attr": pcommon.NewValueStr("42"), + }, + expected: map[string]pcommon.Value{ + "kubernetes": mapToPcommonValue(map[string]pcommon.Value{ + "container_name": pcommon.NewValueStr("xyz"), + "namespace_name": pcommon.NewValueStr("sumologic"), + "host": mapToPcommonValue(map[string]pcommon.Value{ + "name": pcommon.NewValueStr("the host"), + "address": pcommon.NewValueStr("127.0.0.1"), + }), + }), + "another_attr": pcommon.NewValueStr("42"), + }, + include: []string{}, + exclude: []string{}, + }, + { + name: "single values", + input: map[string]pcommon.Value{ + "a": mapToPcommonValue(map[string]pcommon.Value{ + "b": mapToPcommonValue(map[string]pcommon.Value{ + "c": pcommon.NewValueStr("d"), + }), + }), + "a.b.c": pcommon.NewValueStr("d"), + "d.g.e": pcommon.NewValueStr("l"), + "b.g.c": pcommon.NewValueStr("bonus"), + }, + expected: map[string]pcommon.Value{ + "a": mapToPcommonValue(map[string]pcommon.Value{ + "b": mapToPcommonValue(map[string]pcommon.Value{ + "c": pcommon.NewValueStr("d"), + }), + }), + "d": mapToPcommonValue(map[string]pcommon.Value{ + "g": mapToPcommonValue(map[string]pcommon.Value{ + "e": pcommon.NewValueStr("l"), + }), + }), + "b": mapToPcommonValue(map[string]pcommon.Value{ + "g": mapToPcommonValue(map[string]pcommon.Value{ + "c": pcommon.NewValueStr("bonus"), + }), + }), + }, + include: []string{}, + exclude: []string{}, + }, + { + name: "overwrite map with simple value", + input: map[string]pcommon.Value{ + "sumo.logic": pcommon.NewValueBool(true), + "sumo": pcommon.NewValueBool(false), + }, + expected: map[string]pcommon.Value{ + "sumo": mapToPcommonValue(map[string]pcommon.Value{ + "": pcommon.NewValueBool(false), + "logic": pcommon.NewValueBool(true), + }), + }, + include: []string{}, + exclude: []string{}, + }, + { + name: "allowlist", + input: map[string]pcommon.Value{ + "kubernetes.container_name": pcommon.NewValueStr("xyz"), + "kubernetes.host.name": pcommon.NewValueStr("the host"), + "kubernetes.host.address": pcommon.NewValueStr("127.0.0.1"), + "kubernetes.namespace_name": pcommon.NewValueStr("sumologic"), + "another_attr": pcommon.NewValueStr("42"), + }, + expected: map[string]pcommon.Value{ + "kubernetes": mapToPcommonValue(map[string]pcommon.Value{ + "container_name": pcommon.NewValueStr("xyz"), + "host": mapToPcommonValue(map[string]pcommon.Value{ + "name": pcommon.NewValueStr("the host"), + }), + }), + "kubernetes.host.address": pcommon.NewValueStr("127.0.0.1"), + "kubernetes.namespace_name": pcommon.NewValueStr("sumologic"), + "another_attr": pcommon.NewValueStr("42"), + }, + include: []string{"kubernetes.container", "kubernetes.host.name"}, + exclude: []string{}, + }, + { + name: "denylist", + input: map[string]pcommon.Value{ + "kubernetes.container_name": pcommon.NewValueStr("xyz"), + "kubernetes.host.name": pcommon.NewValueStr("the host"), + "kubernetes.host.address": pcommon.NewValueStr("127.0.0.1"), + "kubernetes.namespace_name": pcommon.NewValueStr("sumologic"), + "another_attr": pcommon.NewValueStr("42"), + }, + expected: map[string]pcommon.Value{ + "kubernetes.container_name": pcommon.NewValueStr("xyz"), + "kubernetes.host.name": pcommon.NewValueStr("the host"), + "kubernetes.host.address": pcommon.NewValueStr("127.0.0.1"), + "kubernetes": mapToPcommonValue(map[string]pcommon.Value{ + "namespace_name": pcommon.NewValueStr("sumologic"), + }), + "another_attr": pcommon.NewValueStr("42"), + }, + include: []string{}, + exclude: []string{"kubernetes.container", "kubernetes.host"}, + }, + { + name: "denylist and allowlist", + input: map[string]pcommon.Value{ + "kubernetes.container_name": pcommon.NewValueStr("xyz"), + "kubernetes.host.name": pcommon.NewValueStr("the host"), + "kubernetes.host.naming_convention": pcommon.NewValueStr("random"), + "kubernetes.host.address": pcommon.NewValueStr("127.0.0.1"), + "kubernetes.namespace_name": pcommon.NewValueStr("sumologic"), + "another_attr": pcommon.NewValueStr("42"), + "and_end": pcommon.NewValueStr("fin"), + }, + expected: map[string]pcommon.Value{ + "kubernetes.container_name": pcommon.NewValueStr("xyz"), + "kubernetes.host.naming_convention": pcommon.NewValueStr("random"), + "kubernetes.namespace_name": pcommon.NewValueStr("sumologic"), + "kubernetes": mapToPcommonValue(map[string]pcommon.Value{ + "host": mapToPcommonValue(map[string]pcommon.Value{ + "name": pcommon.NewValueStr("the host"), + "address": pcommon.NewValueStr("127.0.0.1"), + }), + }), + "another_attr": pcommon.NewValueStr("42"), + "and_end": pcommon.NewValueStr("fin"), + }, + include: []string{"kubernetes.host."}, + exclude: []string{"kubernetes.host.naming"}, + }, + } + + for _, testCase := range testCases { + t.Run(testCase.name, func(t *testing.T) { + proc := newNestingProcessor(&NestingProcessorConfig{ + Separator: ".", Enabled: true, Include: testCase.include, Exclude: testCase.exclude, SquashSingleValues: false, + }) + + attrs := mapToPcommonMap(testCase.input) + err := proc.processAttributes(attrs) + require.NoError(t, err) + + expected := mapToPcommonMap(testCase.expected) + + require.Equal(t, expected.AsRaw(), attrs.AsRaw()) + }) + } +} + +func TestSquashing(t *testing.T) { + testCases := []struct { + name string + input map[string]pcommon.Value + expected map[string]pcommon.Value + }{ + { + name: "squash from example", + input: map[string]pcommon.Value{ + "k8s": mapToPcommonValue(map[string]pcommon.Value{ + "pods": mapToPcommonValue(map[string]pcommon.Value{ + "a": pcommon.NewValueStr("A"), + "b": pcommon.NewValueStr("B"), + }), + }), + }, + expected: map[string]pcommon.Value{ + "k8s.pods": mapToPcommonValue(map[string]pcommon.Value{ + "a": pcommon.NewValueStr("A"), + "b": pcommon.NewValueStr("B"), + }), + }, + }, + { + name: "many-value maps with squashed keys", + input: map[string]pcommon.Value{ + "k8s": mapToPcommonValue(map[string]pcommon.Value{ + "pods": mapToPcommonValue(map[string]pcommon.Value{ + "a": mapToPcommonValue(map[string]pcommon.Value{ + "b": mapToPcommonValue(map[string]pcommon.Value{ + "c": pcommon.NewValueStr("A"), + }), + }), + "b": pcommon.NewValueStr("B"), + }), + }), + "sumo": mapToPcommonValue(map[string]pcommon.Value{ + "logic": mapToPcommonValue(map[string]pcommon.Value{ + "schema": pcommon.NewValueStr("processor"), + }), + }), + }, + expected: map[string]pcommon.Value{ + "k8s.pods": mapToPcommonValue(map[string]pcommon.Value{ + "a.b.c": pcommon.NewValueStr("A"), + "b": pcommon.NewValueStr("B"), + }), + "sumo.logic.schema": pcommon.NewValueStr("processor"), + }, + }, + } + + for _, testCase := range testCases { + t.Run(testCase.name, func(t *testing.T) { + proc := newNestingProcessor(&NestingProcessorConfig{ + Separator: ".", Enabled: true, Include: []string{}, Exclude: []string{}, SquashSingleValues: true, + }) + + attrs := mapToPcommonMap(testCase.input) + err := proc.processAttributes(attrs) + require.NoError(t, err) + + expected := mapToPcommonMap(testCase.expected) + + require.Equal(t, expected.AsRaw(), attrs.AsRaw()) + }) + } +} diff --git a/processor/sumologicprocessor/processor.go b/processor/sumologicprocessor/processor.go new file mode 100644 index 000000000000..2beb314d3732 --- /dev/null +++ b/processor/sumologicprocessor/processor.go @@ -0,0 +1,109 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +package sumologicprocessor // import "github.com/open-telemetry/opentelemetry-collector-contrib/processor/sumologicprocessor" + +import ( + "context" + "fmt" + + "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/pdata/plog" + "go.opentelemetry.io/collector/pdata/pmetric" + "go.opentelemetry.io/collector/pdata/ptrace" + "go.opentelemetry.io/collector/processor" + "go.uber.org/zap" + "go.uber.org/zap/zapcore" +) + +type sumologicSubprocessor interface { + processLogs(plog.Logs) error + processMetrics(pmetric.Metrics) error + processTraces(ptrace.Traces) error + isEnabled() bool + ConfigPropertyName() string +} + +type sumologicProcessor struct { + logger *zap.Logger + subprocessors []sumologicSubprocessor +} + +func newsumologicProcessor(set processor.CreateSettings, config *Config) *sumologicProcessor { + cloudNamespaceProcessor := newCloudNamespaceProcessor(config.AddCloudNamespace) + + translateAttributesProcessor := newTranslateAttributesProcessor(config.TranslateAttributes) + + translateTelegrafMetricsProcessor := newTranslateTelegrafMetricsProcessor(config.TranslateTelegrafAttributes) + + nestingProcessor := newNestingProcessor(config.NestAttributes) + + aggregateAttributesProcessor := newAggregateAttributesProcessor(config.AggregateAttributes) + + logFieldsConversionProcessor := newLogFieldConversionProcessor(config.LogFieldsAttributes) + + translateDockerMetricsProcessor := newTranslateDockerMetricsProcessor(config.TranslateDockerMetrics) + + processors := []sumologicSubprocessor{ + cloudNamespaceProcessor, + translateAttributesProcessor, + translateTelegrafMetricsProcessor, + nestingProcessor, + aggregateAttributesProcessor, + logFieldsConversionProcessor, + translateDockerMetricsProcessor, + } + + processor := &sumologicProcessor{ + logger: set.Logger, + subprocessors: processors, + } + + return processor +} + +func (processor *sumologicProcessor) start(_ context.Context, _ component.Host) error { + enabledSubprocessors := []zapcore.Field{} + + for _, proc := range processor.subprocessors { + enabledSubprocessors = append(enabledSubprocessors, zap.Bool(proc.ConfigPropertyName(), proc.isEnabled())) + } + + processor.logger.Info("Sumo Logic Processor has started.", enabledSubprocessors...) + return nil +} + +func (processor *sumologicProcessor) shutdown(_ context.Context) error { + processor.logger.Info("Sumo Logic Processor has shut down.") + return nil +} + +func (processor *sumologicProcessor) processLogs(_ context.Context, logs plog.Logs) (plog.Logs, error) { + for _, subprocessor := range processor.subprocessors { + if err := subprocessor.processLogs(logs); err != nil { + return logs, fmt.Errorf("failed to process logs for property %s: %w", subprocessor.ConfigPropertyName(), err) + } + } + + return logs, nil +} + +func (processor *sumologicProcessor) processMetrics(_ context.Context, metrics pmetric.Metrics) (pmetric.Metrics, error) { + for _, subprocessor := range processor.subprocessors { + if err := subprocessor.processMetrics(metrics); err != nil { + return metrics, fmt.Errorf("failed to process metrics for property %s: %w", subprocessor.ConfigPropertyName(), err) + } + } + + return metrics, nil +} + +func (processor *sumologicProcessor) processTraces(_ context.Context, traces ptrace.Traces) (ptrace.Traces, error) { + for _, subprocessor := range processor.subprocessors { + if err := subprocessor.processTraces(traces); err != nil { + return traces, fmt.Errorf("failed to process traces for property %s: %w", subprocessor.ConfigPropertyName(), err) + } + } + + return traces, nil +} diff --git a/processor/sumologicprocessor/processor_test.go b/processor/sumologicprocessor/processor_test.go new file mode 100644 index 000000000000..93aa412a7699 --- /dev/null +++ b/processor/sumologicprocessor/processor_test.go @@ -0,0 +1,1436 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +package sumologicprocessor // import "github.com/open-telemetry/opentelemetry-collector-contrib/processor/sumologicprocessor" + +import ( + "context" + "testing" + + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/pdata/pcommon" + "go.opentelemetry.io/collector/pdata/plog" + "go.opentelemetry.io/collector/pdata/pmetric" + "go.opentelemetry.io/collector/pdata/ptrace" + "go.opentelemetry.io/collector/processor" + "go.uber.org/zap" +) + +func TestAddCloudNamespaceForLogs(t *testing.T) { + testCases := []struct { + name string + addCloudNamespace bool + createLogs func() plog.Logs + test func(plog.Logs) + }{ + { + name: "adds cloud.namespace attribute for EC2", + addCloudNamespace: true, + createLogs: func() plog.Logs { + inputLogs := plog.NewLogs() + inputLogs.ResourceLogs().AppendEmpty().Resource().Attributes().PutStr("cloud.platform", "aws_ec2") + return inputLogs + }, + test: func(outputLogs plog.Logs) { + cloudNamespaceAttribute, found := outputLogs.ResourceLogs().At(0).Resource().Attributes().Get("cloud.namespace") + assert.True(t, found) + assert.Equal(t, "aws/ec2", cloudNamespaceAttribute.Str()) + }, + }, + { + name: "adds cloud.namespace attribute for ECS", + addCloudNamespace: true, + createLogs: func() plog.Logs { + inputLogs := plog.NewLogs() + inputLogs.ResourceLogs().AppendEmpty().Resource().Attributes().PutStr("cloud.platform", "aws_ecs") + return inputLogs + }, + test: func(outputLogs plog.Logs) { + cloudNamespaceAttribute, found := outputLogs.ResourceLogs().At(0).Resource().Attributes().Get("cloud.namespace") + assert.True(t, found) + assert.Equal(t, "ecs", cloudNamespaceAttribute.Str()) + }, + }, + { + name: "adds cloud.namespace attribute for Beanstalk", + addCloudNamespace: true, + createLogs: func() plog.Logs { + inputLogs := plog.NewLogs() + inputLogs.ResourceLogs().AppendEmpty().Resource().Attributes().PutStr("cloud.platform", "aws_elastic_beanstalk") + return inputLogs + }, + test: func(outputLogs plog.Logs) { + cloudNamespaceAttribute, found := outputLogs.ResourceLogs().At(0).Resource().Attributes().Get("cloud.namespace") + assert.True(t, found) + assert.Equal(t, "ElasticBeanstalk", cloudNamespaceAttribute.Str()) + }, + }, + { + name: "does not add cloud.namespace attribute for unknown cloud.platform attribute values", + addCloudNamespace: false, + createLogs: func() plog.Logs { + inputLogs := plog.NewLogs() + inputLogs.ResourceLogs().AppendEmpty().Resource().Attributes().PutStr("cloud.platform", "aws_eks") + inputLogs.ResourceLogs().AppendEmpty().Resource().Attributes().PutStr("cloud.platform", "aws_lambda") + inputLogs.ResourceLogs().AppendEmpty().Resource().Attributes().PutStr("cloud.platform", "azure_vm") + inputLogs.ResourceLogs().AppendEmpty().Resource().Attributes().PutStr("cloud.platform", "gcp_app_engine") + return inputLogs + }, + test: func(outputLogs plog.Logs) { + for i := 0; i < outputLogs.ResourceLogs().Len(); i++ { + _, found := outputLogs.ResourceLogs().At(i).Resource().Attributes().Get("cloud.namespace") + assert.False(t, found) + } + }, + }, + { + name: "does not add cloud.namespce attribute when disabled", + addCloudNamespace: false, + createLogs: func() plog.Logs { + inputLogs := plog.NewLogs() + inputLogs.ResourceLogs().AppendEmpty().Resource().Attributes().PutStr("cloud.platform", "aws_ec2") + return inputLogs + }, + test: func(outputLogs plog.Logs) { + cloudNamespaceAttribute, found := outputLogs.ResourceLogs().At(0).Resource().Attributes().Get("cloud.namespace") + assert.True(t, found) + assert.Equal(t, "aws/ec2", cloudNamespaceAttribute.Str()) + }, + }, + { + name: "adds different cloud.namespace attributes to different resources", + addCloudNamespace: true, + createLogs: func() plog.Logs { + inputLogs := plog.NewLogs() + inputLogs.ResourceLogs().AppendEmpty().Resource().Attributes().PutStr("cloud.platform", "aws_ec2") + inputLogs.ResourceLogs().AppendEmpty().Resource().Attributes().PutStr("cloud.platform", "aws_lambda") + inputLogs.ResourceLogs().AppendEmpty().Resource().Attributes().PutStr("cloud.platform", "aws_ecs") + inputLogs.ResourceLogs().AppendEmpty().Resource().Attributes().PutStr("cloud.platform", "aws_elastic_beanstalk") + return inputLogs + }, + test: func(outputLogs plog.Logs) { + ec2ResourceAttribute, found := outputLogs.ResourceLogs().At(0).Resource().Attributes().Get("cloud.namespace") + assert.True(t, found) + assert.Equal(t, "aws/ec2", ec2ResourceAttribute.Str()) + + _, found = outputLogs.ResourceLogs().At(1).Resource().Attributes().Get("cloud.namespace") + assert.False(t, found) + + ecsResourceAttribute, found := outputLogs.ResourceLogs().At(2).Resource().Attributes().Get("cloud.namespace") + assert.True(t, found) + assert.Equal(t, "ecs", ecsResourceAttribute.Str()) + + beanstalkResourceAttribute, found := outputLogs.ResourceLogs().At(3).Resource().Attributes().Get("cloud.namespace") + assert.True(t, found) + assert.Equal(t, "ElasticBeanstalk", beanstalkResourceAttribute.Str()) + }, + }, + } + + for _, testCase := range testCases { + t.Run(testCase.name, func(t *testing.T) { + // Arrange + processor := newsumologicProcessor(newProcessorCreateSettings(), newCloudNamespaceConfig(testCase.addCloudNamespace)) + + // Act + outputLogs, err := processor.processLogs(context.Background(), testCase.createLogs()) + require.NoError(t, err) + + // Assert + testCase.test(outputLogs) + }) + } +} + +func TestAddCloudNamespaceForMetrics(t *testing.T) { + testCases := []struct { + name string + addCloudNamespace bool + createMetrics func() pmetric.Metrics + test func(pmetric.Metrics) + }{ + { + name: "adds cloud.namespace attribute for EC2", + addCloudNamespace: true, + createMetrics: func() pmetric.Metrics { + inputMetrics := pmetric.NewMetrics() + inputMetrics.ResourceMetrics().AppendEmpty().Resource().Attributes().PutStr("cloud.platform", "aws_ec2") + return inputMetrics + }, + test: func(outputMetrics pmetric.Metrics) { + cloudNamespaceAttribute, found := outputMetrics.ResourceMetrics().At(0).Resource().Attributes().Get("cloud.namespace") + assert.True(t, found) + assert.Equal(t, "aws/ec2", cloudNamespaceAttribute.Str()) + }, + }, + { + name: "adds cloud.namespace attribute for ECS", + addCloudNamespace: true, + createMetrics: func() pmetric.Metrics { + inputMetrics := pmetric.NewMetrics() + inputMetrics.ResourceMetrics().AppendEmpty().Resource().Attributes().PutStr("cloud.platform", "aws_ecs") + return inputMetrics + }, + test: func(outputMetrics pmetric.Metrics) { + cloudNamespaceAttribute, found := outputMetrics.ResourceMetrics().At(0).Resource().Attributes().Get("cloud.namespace") + assert.True(t, found) + assert.Equal(t, "ecs", cloudNamespaceAttribute.Str()) + }, + }, + { + name: "adds cloud.namespace attribute for Beanstalk", + addCloudNamespace: true, + createMetrics: func() pmetric.Metrics { + inputMetrics := pmetric.NewMetrics() + inputMetrics.ResourceMetrics().AppendEmpty().Resource().Attributes().PutStr("cloud.platform", "aws_elastic_beanstalk") + return inputMetrics + }, + test: func(outputMetrics pmetric.Metrics) { + cloudNamespaceAttribute, found := outputMetrics.ResourceMetrics().At(0).Resource().Attributes().Get("cloud.namespace") + assert.True(t, found) + assert.Equal(t, "ElasticBeanstalk", cloudNamespaceAttribute.Str()) + }, + }, + { + name: "does not add cloud.namespace attribute for unknown cloud.platform attribute values", + addCloudNamespace: false, + createMetrics: func() pmetric.Metrics { + inputMetrics := pmetric.NewMetrics() + inputMetrics.ResourceMetrics().AppendEmpty().Resource().Attributes().PutStr("cloud.platform", "aws_eks") + inputMetrics.ResourceMetrics().AppendEmpty().Resource().Attributes().PutStr("cloud.platform", "aws_lambda") + inputMetrics.ResourceMetrics().AppendEmpty().Resource().Attributes().PutStr("cloud.platform", "azure_vm") + inputMetrics.ResourceMetrics().AppendEmpty().Resource().Attributes().PutStr("cloud.platform", "gcp_app_engine") + return inputMetrics + }, + test: func(outputMetrics pmetric.Metrics) { + for i := 0; i < outputMetrics.ResourceMetrics().Len(); i++ { + _, found := outputMetrics.ResourceMetrics().At(i).Resource().Attributes().Get("cloud.namespace") + assert.False(t, found) + } + }, + }, + { + name: "does not add cloud.namespce attribute when disabled", + addCloudNamespace: false, + createMetrics: func() pmetric.Metrics { + inputMetrics := pmetric.NewMetrics() + inputMetrics.ResourceMetrics().AppendEmpty().Resource().Attributes().PutStr("cloud.platform", "aws_ec2") + return inputMetrics + }, + test: func(outputMetrics pmetric.Metrics) { + cloudNamespaceAttribute, found := outputMetrics.ResourceMetrics().At(0).Resource().Attributes().Get("cloud.namespace") + assert.True(t, found) + assert.Equal(t, "aws/ec2", cloudNamespaceAttribute.Str()) + }, + }, + { + name: "adds different cloud.namespace attributes to different resources", + addCloudNamespace: true, + createMetrics: func() pmetric.Metrics { + inputMetrics := pmetric.NewMetrics() + inputMetrics.ResourceMetrics().AppendEmpty().Resource().Attributes().PutStr("cloud.platform", "aws_ec2") + inputMetrics.ResourceMetrics().AppendEmpty().Resource().Attributes().PutStr("cloud.platform", "aws_lambda") + inputMetrics.ResourceMetrics().AppendEmpty().Resource().Attributes().PutStr("cloud.platform", "aws_ecs") + inputMetrics.ResourceMetrics().AppendEmpty().Resource().Attributes().PutStr("cloud.platform", "aws_elastic_beanstalk") + return inputMetrics + }, + test: func(outputMetrics pmetric.Metrics) { + ec2ResourceAttribute, found := outputMetrics.ResourceMetrics().At(0).Resource().Attributes().Get("cloud.namespace") + assert.True(t, found) + assert.Equal(t, "aws/ec2", ec2ResourceAttribute.Str()) + + _, found = outputMetrics.ResourceMetrics().At(1).Resource().Attributes().Get("cloud.namespace") + assert.False(t, found) + + ecsResourceAttribute, found := outputMetrics.ResourceMetrics().At(2).Resource().Attributes().Get("cloud.namespace") + assert.True(t, found) + assert.Equal(t, "ecs", ecsResourceAttribute.Str()) + + beanstalkResourceAttribute, found := outputMetrics.ResourceMetrics().At(3).Resource().Attributes().Get("cloud.namespace") + assert.True(t, found) + assert.Equal(t, "ElasticBeanstalk", beanstalkResourceAttribute.Str()) + }, + }, + } + + for _, testCase := range testCases { + t.Run(testCase.name, func(t *testing.T) { + // Arrange + processor := newsumologicProcessor(newProcessorCreateSettings(), newCloudNamespaceConfig(testCase.addCloudNamespace)) + + // Act + outputMetrics, err := processor.processMetrics(context.Background(), testCase.createMetrics()) + require.NoError(t, err) + + // Assert + testCase.test(outputMetrics) + }) + } +} + +func TestAddCloudNamespaceForTraces(t *testing.T) { + testCases := []struct { + name string + addCloudNamespace bool + createTraces func() ptrace.Traces + test func(ptrace.Traces) + }{ + { + name: "adds cloud.namespace attribute for EC2", + addCloudNamespace: true, + createTraces: func() ptrace.Traces { + inputTraces := ptrace.NewTraces() + inputTraces.ResourceSpans().AppendEmpty().Resource().Attributes().PutStr("cloud.platform", "aws_ec2") + return inputTraces + }, + test: func(outputTraces ptrace.Traces) { + cloudNamespaceAttribute, found := outputTraces.ResourceSpans().At(0).Resource().Attributes().Get("cloud.namespace") + assert.True(t, found) + assert.Equal(t, "aws/ec2", cloudNamespaceAttribute.Str()) + }, + }, + { + name: "adds cloud.namespace attribute for ECS", + addCloudNamespace: true, + createTraces: func() ptrace.Traces { + inputTraces := ptrace.NewTraces() + inputTraces.ResourceSpans().AppendEmpty().Resource().Attributes().PutStr("cloud.platform", "aws_ecs") + return inputTraces + }, + test: func(outputTraces ptrace.Traces) { + cloudNamespaceAttribute, found := outputTraces.ResourceSpans().At(0).Resource().Attributes().Get("cloud.namespace") + assert.True(t, found) + assert.Equal(t, "ecs", cloudNamespaceAttribute.Str()) + }, + }, + { + name: "adds cloud.namespace attribute for Beanstalk", + addCloudNamespace: true, + createTraces: func() ptrace.Traces { + inputTraces := ptrace.NewTraces() + inputTraces.ResourceSpans().AppendEmpty().Resource().Attributes().PutStr("cloud.platform", "aws_elastic_beanstalk") + return inputTraces + }, + test: func(outputTraces ptrace.Traces) { + cloudNamespaceAttribute, found := outputTraces.ResourceSpans().At(0).Resource().Attributes().Get("cloud.namespace") + assert.True(t, found) + assert.Equal(t, "ElasticBeanstalk", cloudNamespaceAttribute.Str()) + }, + }, + { + name: "does not add cloud.namespace attribute for unknown cloud.platform attribute values", + addCloudNamespace: false, + createTraces: func() ptrace.Traces { + inputTraces := ptrace.NewTraces() + inputTraces.ResourceSpans().AppendEmpty().Resource().Attributes().PutStr("cloud.platform", "aws_eks") + inputTraces.ResourceSpans().AppendEmpty().Resource().Attributes().PutStr("cloud.platform", "aws_lambda") + inputTraces.ResourceSpans().AppendEmpty().Resource().Attributes().PutStr("cloud.platform", "azure_vm") + inputTraces.ResourceSpans().AppendEmpty().Resource().Attributes().PutStr("cloud.platform", "gcp_app_engine") + return inputTraces + }, + test: func(outputTraces ptrace.Traces) { + for i := 0; i < outputTraces.ResourceSpans().Len(); i++ { + _, found := outputTraces.ResourceSpans().At(i).Resource().Attributes().Get("cloud.namespace") + assert.False(t, found) + } + }, + }, + { + name: "does not add cloud.namespce attribute when disabled", + addCloudNamespace: false, + createTraces: func() ptrace.Traces { + inputTraces := ptrace.NewTraces() + inputTraces.ResourceSpans().AppendEmpty().Resource().Attributes().PutStr("cloud.platform", "aws_ec2") + return inputTraces + }, + test: func(outputTraces ptrace.Traces) { + cloudNamespaceAttribute, found := outputTraces.ResourceSpans().At(0).Resource().Attributes().Get("cloud.namespace") + assert.True(t, found) + assert.Equal(t, "aws/ec2", cloudNamespaceAttribute.Str()) + }, + }, + { + name: "adds different cloud.namespace attributes to different resources", + addCloudNamespace: true, + createTraces: func() ptrace.Traces { + inputTraces := ptrace.NewTraces() + inputTraces.ResourceSpans().AppendEmpty().Resource().Attributes().PutStr("cloud.platform", "aws_ec2") + inputTraces.ResourceSpans().AppendEmpty().Resource().Attributes().PutStr("cloud.platform", "aws_lambda") + inputTraces.ResourceSpans().AppendEmpty().Resource().Attributes().PutStr("cloud.platform", "aws_ecs") + inputTraces.ResourceSpans().AppendEmpty().Resource().Attributes().PutStr("cloud.platform", "aws_elastic_beanstalk") + return inputTraces + }, + test: func(outputTraces ptrace.Traces) { + ec2ResourceAttribute, found := outputTraces.ResourceSpans().At(0).Resource().Attributes().Get("cloud.namespace") + assert.True(t, found) + assert.Equal(t, "aws/ec2", ec2ResourceAttribute.Str()) + + _, found = outputTraces.ResourceSpans().At(1).Resource().Attributes().Get("cloud.namespace") + assert.False(t, found) + + ecsResourceAttribute, found := outputTraces.ResourceSpans().At(2).Resource().Attributes().Get("cloud.namespace") + assert.True(t, found) + assert.Equal(t, "ecs", ecsResourceAttribute.Str()) + + beanstalkResourceAttribute, found := outputTraces.ResourceSpans().At(3).Resource().Attributes().Get("cloud.namespace") + assert.True(t, found) + assert.Equal(t, "ElasticBeanstalk", beanstalkResourceAttribute.Str()) + }, + }, + } + + for _, testCase := range testCases { + t.Run(testCase.name, func(t *testing.T) { + // Arrange + processor := newsumologicProcessor(newProcessorCreateSettings(), newCloudNamespaceConfig(testCase.addCloudNamespace)) + + // Act + outputTraces, err := processor.processTraces(context.Background(), testCase.createTraces()) + require.NoError(t, err) + + // Assert + testCase.test(outputTraces) + }) + } +} + +func TestTranslateAttributesForLogs(t *testing.T) { + testCases := []struct { + name string + translateAttributes bool + createLogs func() plog.Logs + test func(plog.Logs) + }{ + { + name: "translates one attribute", + translateAttributes: true, + createLogs: func() plog.Logs { + inputLogs := plog.NewLogs() + inputLogs.ResourceLogs().AppendEmpty().Resource().Attributes().PutStr("cloud.account.id", "MyId1") + inputLogs.ResourceLogs().AppendEmpty().Resource().Attributes().PutStr("cloud.account.id", "MyId2") + + return inputLogs + }, + test: func(outputLogs plog.Logs) { + attribute1, found := outputLogs.ResourceLogs().At(0).Resource().Attributes().Get("AccountId") + assert.True(t, found) + assert.Equal(t, "MyId1", attribute1.Str()) + + attribute2, found := outputLogs.ResourceLogs().At(1).Resource().Attributes().Get("AccountId") + assert.True(t, found) + assert.Equal(t, "MyId2", attribute2.Str()) + }, + }, + { + name: "does not translate", + translateAttributes: false, + createLogs: func() plog.Logs { + inputLogs := plog.NewLogs() + inputLogs.ResourceLogs().AppendEmpty().Resource().Attributes().PutStr("cloud.account.id", "MyId1") + inputLogs.ResourceLogs().AppendEmpty().Resource().Attributes().PutStr("cloud.account.id", "MyId2") + + return inputLogs + }, + test: func(outputLogs plog.Logs) { + attribute1, found := outputLogs.ResourceLogs().At(0).Resource().Attributes().Get("cloud.account.id") + assert.True(t, found) + assert.Equal(t, "MyId1", attribute1.Str()) + + attribute2, found := outputLogs.ResourceLogs().At(1).Resource().Attributes().Get("cloud.account.id") + assert.True(t, found) + assert.Equal(t, "MyId2", attribute2.Str()) + }, + }, + { + name: "translates no attributes", + translateAttributes: true, + createLogs: func() plog.Logs { + inputLogs := plog.NewLogs() + inputLogs.ResourceLogs().AppendEmpty().Resource().Attributes().PutStr("not.actual.attr", "a1") + inputLogs.ResourceLogs().AppendEmpty().Resource().Attributes().PutStr("maybe.an.attr", "a2") + return inputLogs + }, + test: func(outputLogs plog.Logs) { + attribute1, found := outputLogs.ResourceLogs().At(0).Resource().Attributes().Get("not.actual.attr") + assert.True(t, found) + assert.Equal(t, "a1", attribute1.Str()) + + attribute2, found := outputLogs.ResourceLogs().At(1).Resource().Attributes().Get("maybe.an.attr") + assert.True(t, found) + assert.Equal(t, "a2", attribute2.Str()) + }, + }, + { + name: "translates many attributes, but not all", + translateAttributes: true, + createLogs: func() plog.Logs { + inputLogs := plog.NewLogs() + inputLogs.ResourceLogs().AppendEmpty().Resource().Attributes().PutStr("cloud.account.id", "MyId") + inputLogs.ResourceLogs().AppendEmpty().Resource().Attributes().PutStr("maybe.an.attr", "a2") + inputLogs.ResourceLogs().AppendEmpty().Resource().Attributes().PutStr("k8s.cluster.name", "A cool cluster") + + return inputLogs + }, + test: func(outputLogs plog.Logs) { + attribute1, found := outputLogs.ResourceLogs().At(0).Resource().Attributes().Get("AccountId") + assert.True(t, found) + assert.Equal(t, "MyId", attribute1.Str()) + + attribute2, found := outputLogs.ResourceLogs().At(1).Resource().Attributes().Get("maybe.an.attr") + assert.True(t, found) + assert.Equal(t, "a2", attribute2.Str()) + + attribute3, found := outputLogs.ResourceLogs().At(2).Resource().Attributes().Get("Cluster") + assert.True(t, found) + assert.Equal(t, "A cool cluster", attribute3.Str()) + }, + }, + } + + for _, testCase := range testCases { + t.Run(testCase.name, func(t *testing.T) { + // Arrange + processor := newsumologicProcessor(newProcessorCreateSettings(), newTranslateAttributesConfig(testCase.translateAttributes)) + + // Act + outputLogs, err := processor.processLogs(context.Background(), testCase.createLogs()) + require.NoError(t, err) + + // Assert + testCase.test(outputLogs) + }) + } +} + +func TestTranslateAttributesForMetrics(t *testing.T) { + testCases := []struct { + name string + translateAttributes bool + createMetrics func() pmetric.Metrics + test func(pmetric.Metrics) + }{ + { + name: "translates many attributes, but not all", + translateAttributes: true, + createMetrics: func() pmetric.Metrics { + inputMetrics := pmetric.NewMetrics() + inputMetrics.ResourceMetrics().AppendEmpty().Resource().Attributes().PutStr("cloud.account.id", "MyId") + inputMetrics.ResourceMetrics().AppendEmpty().Resource().Attributes().PutStr("maybe.an.attr", "a2") + inputMetrics.ResourceMetrics().AppendEmpty().Resource().Attributes().PutStr("k8s.cluster.name", "A cool cluster") + + return inputMetrics + }, + test: func(outputMetrics pmetric.Metrics) { + attribute1, found := outputMetrics.ResourceMetrics().At(0).Resource().Attributes().Get("AccountId") + assert.True(t, found) + assert.Equal(t, "MyId", attribute1.Str()) + + attribute2, found := outputMetrics.ResourceMetrics().At(1).Resource().Attributes().Get("maybe.an.attr") + assert.True(t, found) + assert.Equal(t, "a2", attribute2.Str()) + + attribute3, found := outputMetrics.ResourceMetrics().At(2).Resource().Attributes().Get("Cluster") + assert.True(t, found) + assert.Equal(t, "A cool cluster", attribute3.Str()) + }, + }, + } + + for _, testCase := range testCases { + t.Run(testCase.name, func(t *testing.T) { + // Arrange + processor := newsumologicProcessor(newProcessorCreateSettings(), newTranslateAttributesConfig(testCase.translateAttributes)) + + // Act + outputMetrics, err := processor.processMetrics(context.Background(), testCase.createMetrics()) + require.NoError(t, err) + + // Assert + testCase.test(outputMetrics) + }) + } +} + +func TestTranslateAttributesForTraces(t *testing.T) { + // Traces are NOT translated. + testCases := []struct { + name string + translateAttributes bool + createTraces func() ptrace.Traces + test func(ptrace.Traces) + }{ + { + name: "does not translate even translatable attributes", + translateAttributes: true, + createTraces: func() ptrace.Traces { + inputTraces := ptrace.NewTraces() + inputTraces.ResourceSpans().AppendEmpty().Resource().Attributes().PutStr("cloud.account.id", "MyId") + inputTraces.ResourceSpans().AppendEmpty().Resource().Attributes().PutStr("maybe.an.attr", "a2") + inputTraces.ResourceSpans().AppendEmpty().Resource().Attributes().PutStr("k8s.cluster.name", "A cool cluster") + + return inputTraces + }, + test: func(outputTraces ptrace.Traces) { + attribute1, found := outputTraces.ResourceSpans().At(0).Resource().Attributes().Get("cloud.account.id") + assert.True(t, found) + assert.Equal(t, "MyId", attribute1.Str()) + + attribute2, found := outputTraces.ResourceSpans().At(1).Resource().Attributes().Get("maybe.an.attr") + assert.True(t, found) + assert.Equal(t, "a2", attribute2.Str()) + + attribute3, found := outputTraces.ResourceSpans().At(2).Resource().Attributes().Get("k8s.cluster.name") + assert.True(t, found) + assert.Equal(t, "A cool cluster", attribute3.Str()) + }, + }, + } + + for _, testCase := range testCases { + t.Run(testCase.name, func(t *testing.T) { + // Arrange + processor := newsumologicProcessor(newProcessorCreateSettings(), newTranslateAttributesConfig(testCase.translateAttributes)) + + // Act + outputTraces, err := processor.processTraces(context.Background(), testCase.createTraces()) + require.NoError(t, err) + + // Assert + testCase.test(outputTraces) + }) + } +} + +func TestTranslateTelegrafMetrics(t *testing.T) { + testCases := []struct { + testName string + originalNames []string + translatedNames []string + shouldTranslate bool + }{ + { + testName: "translates two names", + originalNames: []string{"cpu_usage_irq", "system_load1"}, + translatedNames: []string{"CPU_Irq", "CPU_LoadAvg_1min"}, + shouldTranslate: true, + }, + { + testName: "does not translate", + originalNames: []string{"cpu_usage_irq", "system_load1"}, + translatedNames: []string{"cpu_usage_irq", "system_load1"}, + shouldTranslate: false, + }, + } + + for _, testCase := range testCases { + t.Run(testCase.testName, func(t *testing.T) { + // Arrange + processor := newsumologicProcessor(newProcessorCreateSettings(), newTranslateTelegrafAttributesConfig(testCase.shouldTranslate)) + + // Prepare metrics + metrics := pmetric.NewMetrics() + for _, name := range testCase.originalNames { + metrics.ResourceMetrics().AppendEmpty().ScopeMetrics().AppendEmpty().Metrics().AppendEmpty().SetName(name) + } + + // Act + resultMetrics, err := processor.processMetrics(context.Background(), metrics) + require.NoError(t, err) + + // Assert + for index, name := range testCase.translatedNames { + assert.Equal(t, name, resultMetrics.ResourceMetrics().At(index).ScopeMetrics().At(0).Metrics().At(0).Name()) + } + }) + } +} + +func TestTranslateDockerMetrics(t *testing.T) { + testCases := []struct { + testName string + originalNames []string + translatedNames []string + originalResourceAttributes map[string]string + translatedResourceAttributes map[string]interface{} + shouldTranslate bool + }{ + { + testName: "translates two names", + originalNames: []string{"container.cpu.usage.percpu", "container.blockio.io_serviced_recursive"}, + translatedNames: []string{"cpu_usage.percpu_usage", "io_serviced_recursive"}, + originalResourceAttributes: map[string]string{ + "container.id": "a", + "container.image.name": "a", + "container.name": "a", + }, + translatedResourceAttributes: map[string]interface{}{ + "container.FullID": "a", + "container.ImageName": "a", + "container.Name": "a", + }, + shouldTranslate: true, + }, + { + testName: "does not translate", + originalNames: []string{"container.cpu.usage.percpu", "container.blockio.io_serviced_recursive"}, + translatedNames: []string{"container.cpu.usage.percpu", "container.blockio.io_serviced_recursive"}, + originalResourceAttributes: map[string]string{ + "container.id": "a", + "container.image.name": "a", + "container.name": "a", + }, + translatedResourceAttributes: map[string]interface{}{ + "container.id": "a", + "container.image.name": "a", + "container.name": "a", + }, + shouldTranslate: false, + }, + } + + for _, testCase := range testCases { + t.Run(testCase.testName, func(t *testing.T) { + // Arrange + processor := newsumologicProcessor(newProcessorCreateSettings(), newTranslateDockerMetricsConfig(testCase.shouldTranslate)) + + // Prepare metrics + metrics := pmetric.NewMetrics() + for _, name := range testCase.originalNames { + metrics.ResourceMetrics().AppendEmpty().ScopeMetrics().AppendEmpty().Metrics().AppendEmpty().SetName(name) + } + + // Prepare resource attributes + ra := metrics.ResourceMetrics().At(0).Resource().Attributes() + for k, v := range testCase.originalResourceAttributes { + ra.PutStr(k, v) + } + + // Act + resultMetrics, err := processor.processMetrics(context.Background(), metrics) + require.NoError(t, err) + + // Assert + for index, name := range testCase.translatedNames { + assert.Equal(t, name, resultMetrics.ResourceMetrics().At(index).ScopeMetrics().At(0).Metrics().At(0).Name()) + } + assert.Equal(t, testCase.translatedResourceAttributes, metrics.ResourceMetrics().At(0).Resource().Attributes().AsRaw()) + }) + } +} + +func TestNestingAttributesForLogs(t *testing.T) { + testCases := []struct { + name string + createLogs func() plog.Logs + test func(*testing.T, plog.Logs) + }{ + { + name: "sample nesting", + createLogs: func() plog.Logs { + attrs := mapToPcommonMap(map[string]pcommon.Value{ + "kubernetes.container_name": pcommon.NewValueStr("xyz"), + "kubernetes.host.name": pcommon.NewValueStr("the host"), + "kubernetes.host.address": pcommon.NewValueStr("127.0.0.1"), + "kubernetes.namespace_name": pcommon.NewValueStr("sumologic"), + "another_attr": pcommon.NewValueStr("42"), + }) + + resourceAttrs := mapToPcommonMap(map[string]pcommon.Value{ + "a": mapToPcommonValue(map[string]pcommon.Value{ + "b": mapToPcommonValue(map[string]pcommon.Value{ + "c": pcommon.NewValueStr("d"), + }), + }), + "a.b.c": pcommon.NewValueStr("d"), + "d.g.e": pcommon.NewValueStr("l"), + "b.g.c": pcommon.NewValueStr("bonus"), + }) + + logs := plog.NewLogs() + resourceAttrs.CopyTo(logs.ResourceLogs().AppendEmpty().Resource().Attributes()) + attrs.CopyTo(logs.ResourceLogs().At(0).ScopeLogs().AppendEmpty().LogRecords().AppendEmpty().Attributes()) + + return logs + }, + test: func(t *testing.T, l plog.Logs) { + expectedAttrs := mapToPcommonMap(map[string]pcommon.Value{ + "kubernetes": mapToPcommonValue(map[string]pcommon.Value{ + "container_name": pcommon.NewValueStr("xyz"), + "namespace_name": pcommon.NewValueStr("sumologic"), + "host": mapToPcommonValue(map[string]pcommon.Value{ + "name": pcommon.NewValueStr("the host"), + "address": pcommon.NewValueStr("127.0.0.1"), + }), + }), + "another_attr": pcommon.NewValueStr("42"), + }) + + expectedResourceAttrs := mapToPcommonMap(map[string]pcommon.Value{ + "a": mapToPcommonValue(map[string]pcommon.Value{ + "b": mapToPcommonValue(map[string]pcommon.Value{ + "c": pcommon.NewValueStr("d"), + }), + }), + "d": mapToPcommonValue(map[string]pcommon.Value{ + "g": mapToPcommonValue(map[string]pcommon.Value{ + "e": pcommon.NewValueStr("l"), + }), + }), + "b": mapToPcommonValue(map[string]pcommon.Value{ + "g": mapToPcommonValue(map[string]pcommon.Value{ + "c": pcommon.NewValueStr("bonus"), + }), + }), + }) + + require.Equal(t, 1, l.ResourceLogs().Len()) + require.Equal(t, expectedResourceAttrs.AsRaw(), l.ResourceLogs().At(0).Resource().Attributes().AsRaw()) + + require.Equal(t, 1, l.ResourceLogs().At(0).ScopeLogs().Len()) + require.Equal(t, 1, l.ResourceLogs().At(0).ScopeLogs().At(0).LogRecords().Len()) + require.Equal(t, expectedAttrs.AsRaw(), l.ResourceLogs().At(0).ScopeLogs().At(0).LogRecords().At(0).Attributes().AsRaw()) + }, + }, + } + + for _, testCase := range testCases { + t.Run(testCase.name, func(t *testing.T) { + processor := newsumologicProcessor(newProcessorCreateSettings(), newNestAttributesConfig(".", true)) + + logs := testCase.createLogs() + + resultLogs, err := processor.processLogs(context.Background(), logs) + require.NoError(t, err) + + testCase.test(t, resultLogs) + }) + } +} + +func TestNestingAttributesForMetrics(t *testing.T) { + testCases := []struct { + name string + createMetrics func() pmetric.Metrics + test func(*testing.T, pmetric.Metrics) + }{ + { + name: "sample nesting", + createMetrics: func() pmetric.Metrics { + attrs := mapToPcommonMap(map[string]pcommon.Value{ + "kubernetes.container_name": pcommon.NewValueStr("xyz"), + "kubernetes.host.name": pcommon.NewValueStr("the host"), + "kubernetes.host.address": pcommon.NewValueStr("127.0.0.1"), + "kubernetes.namespace_name": pcommon.NewValueStr("sumologic"), + "another_attr": pcommon.NewValueStr("42"), + }) + + resourceAttrs := mapToPcommonMap(map[string]pcommon.Value{ + "a": mapToPcommonValue(map[string]pcommon.Value{ + "b": mapToPcommonValue(map[string]pcommon.Value{ + "c": pcommon.NewValueStr("d"), + }), + }), + "a.b.c": pcommon.NewValueStr("d"), + "d.g.e": pcommon.NewValueStr("l"), + "b.g.c": pcommon.NewValueStr("bonus"), + }) + + metrics := pmetric.NewMetrics() + resourceAttrs.CopyTo(metrics.ResourceMetrics().AppendEmpty().Resource().Attributes()) + metric := metrics.ResourceMetrics().At(0).ScopeMetrics().AppendEmpty().Metrics().AppendEmpty() + attrs.CopyTo(metric.SetEmptySum().DataPoints().AppendEmpty().Attributes()) + + return metrics + }, + test: func(t *testing.T, m pmetric.Metrics) { + expectedAttrs := mapToPcommonMap(map[string]pcommon.Value{ + "kubernetes": mapToPcommonValue(map[string]pcommon.Value{ + "container_name": pcommon.NewValueStr("xyz"), + "namespace_name": pcommon.NewValueStr("sumologic"), + "host": mapToPcommonValue(map[string]pcommon.Value{ + "name": pcommon.NewValueStr("the host"), + "address": pcommon.NewValueStr("127.0.0.1"), + }), + }), + "another_attr": pcommon.NewValueStr("42"), + }) + + expectedResourceAttrs := mapToPcommonMap(map[string]pcommon.Value{ + "a": mapToPcommonValue(map[string]pcommon.Value{ + "b": mapToPcommonValue(map[string]pcommon.Value{ + "c": pcommon.NewValueStr("d"), + }), + }), + "d": mapToPcommonValue(map[string]pcommon.Value{ + "g": mapToPcommonValue(map[string]pcommon.Value{ + "e": pcommon.NewValueStr("l"), + }), + }), + "b": mapToPcommonValue(map[string]pcommon.Value{ + "g": mapToPcommonValue(map[string]pcommon.Value{ + "c": pcommon.NewValueStr("bonus"), + }), + }), + }) + + require.Equal(t, 1, m.ResourceMetrics().Len()) + require.Equal(t, expectedResourceAttrs.AsRaw(), m.ResourceMetrics().At(0).Resource().Attributes().AsRaw()) + + require.Equal(t, 1, m.ResourceMetrics().At(0).ScopeMetrics().Len()) + require.Equal(t, 1, m.ResourceMetrics().At(0).ScopeMetrics().At(0).Metrics().Len()) + require.Equal(t, 1, m.ResourceMetrics().At(0).ScopeMetrics().At(0).Metrics().At(0).Sum().DataPoints().Len()) + + sum := m.ResourceMetrics().At(0).ScopeMetrics().At(0).Metrics().At(0).Sum() + require.Equal(t, expectedAttrs.AsRaw(), sum.DataPoints().At(0).Attributes().AsRaw()) + }, + }, + } + + for _, testCase := range testCases { + t.Run(testCase.name, func(t *testing.T) { + processor := newsumologicProcessor(newProcessorCreateSettings(), newNestAttributesConfig(".", true)) + + metrics := testCase.createMetrics() + + resultMetrics, err := processor.processMetrics(context.Background(), metrics) + require.NoError(t, err) + + testCase.test(t, resultMetrics) + }) + } +} + +func TestNestingAttributesForTraces(t *testing.T) { + testCases := []struct { + name string + createTraces func() ptrace.Traces + test func(*testing.T, ptrace.Traces) + }{ + { + name: "sample nesting", + createTraces: func() ptrace.Traces { + attrs := mapToPcommonMap(map[string]pcommon.Value{ + "kubernetes.container_name": pcommon.NewValueStr("xyz"), + "kubernetes.host.name": pcommon.NewValueStr("the host"), + "kubernetes.host.address": pcommon.NewValueStr("127.0.0.1"), + "kubernetes.namespace_name": pcommon.NewValueStr("sumologic"), + "another_attr": pcommon.NewValueStr("42"), + }) + + resourceAttrs := mapToPcommonMap(map[string]pcommon.Value{ + "a": mapToPcommonValue(map[string]pcommon.Value{ + "b": mapToPcommonValue(map[string]pcommon.Value{ + "c": pcommon.NewValueStr("d"), + }), + }), + "a.b.c": pcommon.NewValueStr("d"), + "d.g.e": pcommon.NewValueStr("l"), + "b.g.c": pcommon.NewValueStr("bonus"), + }) + + traces := ptrace.NewTraces() + resourceAttrs.CopyTo(traces.ResourceSpans().AppendEmpty().Resource().Attributes()) + attrs.CopyTo(traces.ResourceSpans().At(0).ScopeSpans().AppendEmpty().Spans().AppendEmpty().Attributes()) + + return traces + }, + test: func(t *testing.T, l ptrace.Traces) { + expectedAttrs := mapToPcommonMap(map[string]pcommon.Value{ + "kubernetes": mapToPcommonValue(map[string]pcommon.Value{ + "container_name": pcommon.NewValueStr("xyz"), + "namespace_name": pcommon.NewValueStr("sumologic"), + "host": mapToPcommonValue(map[string]pcommon.Value{ + "name": pcommon.NewValueStr("the host"), + "address": pcommon.NewValueStr("127.0.0.1"), + }), + }), + "another_attr": pcommon.NewValueStr("42"), + }) + + expectedResourceAttrs := mapToPcommonMap(map[string]pcommon.Value{ + "a": mapToPcommonValue(map[string]pcommon.Value{ + "b": mapToPcommonValue(map[string]pcommon.Value{ + "c": pcommon.NewValueStr("d"), + }), + }), + "d": mapToPcommonValue(map[string]pcommon.Value{ + "g": mapToPcommonValue(map[string]pcommon.Value{ + "e": pcommon.NewValueStr("l"), + }), + }), + "b": mapToPcommonValue(map[string]pcommon.Value{ + "g": mapToPcommonValue(map[string]pcommon.Value{ + "c": pcommon.NewValueStr("bonus"), + }), + }), + }) + + require.Equal(t, 1, l.ResourceSpans().Len()) + require.Equal(t, expectedResourceAttrs.AsRaw(), l.ResourceSpans().At(0).Resource().Attributes().AsRaw()) + + require.Equal(t, 1, l.ResourceSpans().At(0).ScopeSpans().Len()) + require.Equal(t, 1, l.ResourceSpans().At(0).ScopeSpans().At(0).Spans().Len()) + require.Equal(t, expectedAttrs.AsRaw(), l.ResourceSpans().At(0).ScopeSpans().At(0).Spans().At(0).Attributes().AsRaw()) + }, + }, + } + + for _, testCase := range testCases { + t.Run(testCase.name, func(t *testing.T) { + processor := newsumologicProcessor(newProcessorCreateSettings(), newNestAttributesConfig(".", true)) + + traces := testCase.createTraces() + + resultTraces, err := processor.processTraces(context.Background(), traces) + require.NoError(t, err) + + testCase.test(t, resultTraces) + }) + } +} + +// Tests for aggregating attributes. +// Testing different edge cases should be done in translate_attributes_processor_test.go, +// here are only e2e tests that mainly check if both resource and normal attributes are aggregated correctly. +func TestAggregateAttributesForLogs(t *testing.T) { + testCases := []struct { + name string + config []aggregationPair + createLogs func() plog.Logs + test func(plog.Logs) + }{ + { + name: "simple aggregation", + config: []aggregationPair{ + { + Attribute: "kubernetes.labels", + Prefixes: []string{"pod_labels_"}, + }, + }, + createLogs: func() plog.Logs { + inputLogs := plog.NewLogs() + resourceAttrs := inputLogs.ResourceLogs().AppendEmpty().Resource().Attributes() + resourceAttrs.PutStr("pod_labels_app", "demo") + resourceAttrs.PutStr("pod_labels_pod_template_hash", "123456#&") + resourceAttrs.PutStr("pod_labels_foo", "bar") + + logAttrs := inputLogs.ResourceLogs().At(0).ScopeLogs().AppendEmpty().LogRecords().AppendEmpty().Attributes() + logAttrs.PutStr("pod_labels_log_id", "42") + + return inputLogs + }, + test: func(l plog.Logs) { + resourceAttrs := l.ResourceLogs().At(0).Resource().Attributes() + require.Equal(t, resourceAttrs.AsRaw(), mapToPcommonMap(map[string]pcommon.Value{ + "kubernetes.labels": mapToPcommonValue(map[string]pcommon.Value{ + "app": pcommon.NewValueStr("demo"), + "pod_template_hash": pcommon.NewValueStr("123456#&"), + "foo": pcommon.NewValueStr("bar"), + }), + }).AsRaw()) + + logAttrs := l.ResourceLogs().At(0).ScopeLogs().At(0).LogRecords().At(0).Attributes() + require.Equal(t, logAttrs.AsRaw(), mapToPcommonMap(map[string]pcommon.Value{ + "kubernetes.labels": mapToPcommonValue(map[string]pcommon.Value{ + "log_id": pcommon.NewValueStr("42"), + }), + }).AsRaw()) + }, + }, + { + name: "no-op", + config: []aggregationPair{ + { + Attribute: "kubernetes.labels", + Prefixes: []string{}, + }, + }, + createLogs: func() plog.Logs { + inputLogs := plog.NewLogs() + resourceAttrs := inputLogs.ResourceLogs().AppendEmpty().Resource().Attributes() + resourceAttrs.PutStr("pod_labels_app", "demo") + resourceAttrs.PutStr("pod_labels_pod_template_hash", "123456#&") + resourceAttrs.PutStr("pod_labels_foo", "bar") + + logAttrs := inputLogs.ResourceLogs().At(0).ScopeLogs().AppendEmpty().LogRecords().AppendEmpty().Attributes() + logAttrs.PutStr("pod_labels_log_id", "42") + + return inputLogs + }, + test: func(l plog.Logs) { + resourceAttrs := l.ResourceLogs().At(0).Resource().Attributes() + require.Equal(t, resourceAttrs.AsRaw(), mapToPcommonMap(map[string]pcommon.Value{ + "pod_labels_app": pcommon.NewValueStr("demo"), + "pod_labels_pod_template_hash": pcommon.NewValueStr("123456#&"), + "pod_labels_foo": pcommon.NewValueStr("bar"), + }).AsRaw()) + + logAttrs := l.ResourceLogs().At(0).ScopeLogs().At(0).LogRecords().At(0).Attributes() + require.Equal(t, logAttrs.AsRaw(), mapToPcommonMap(map[string]pcommon.Value{ + "pod_labels_log_id": pcommon.NewValueStr("42"), + }).AsRaw()) + }, + }, + } + + for _, testCase := range testCases { + t.Run(testCase.name, func(t *testing.T) { + // Arrange + processor := newsumologicProcessor(newProcessorCreateSettings(), newAggregateAttributesConfig(testCase.config)) + + // Act + outputLogs, err := processor.processLogs(context.Background(), testCase.createLogs()) + require.NoError(t, err) + + // Assert + testCase.test(outputLogs) + }) + } +} + +func TestAggregateAttributesForMetrics(t *testing.T) { + testCases := []struct { + name string + config []aggregationPair + createMetrics func() pmetric.Metrics + test func(pmetric.Metrics) + }{ + { + name: "simple aggregation", + config: []aggregationPair{ + { + Attribute: "kubernetes.labels", + Prefixes: []string{"pod_labels_"}, + }, + }, + createMetrics: func() pmetric.Metrics { + inputMetrics := pmetric.NewMetrics() + resourceAttrs := inputMetrics.ResourceMetrics().AppendEmpty().Resource().Attributes() + resourceAttrs.PutStr("pod_labels_app", "demo") + resourceAttrs.PutStr("pod_labels_pod_template_hash", "123456#&") + resourceAttrs.PutStr("pod_labels_foo", "bar") + + metric := inputMetrics.ResourceMetrics().At(0).ScopeMetrics().AppendEmpty().Metrics() + // Test only for sum: tests for different metric types are in aggregate_attributes_processor_test.go + metricAttrs := metric.AppendEmpty().SetEmptySum().DataPoints().AppendEmpty().Attributes() + metricAttrs.PutStr("pod_labels_metric_id", "42") + + return inputMetrics + }, + test: func(l pmetric.Metrics) { + resourceAttrs := l.ResourceMetrics().At(0).Resource().Attributes() + require.Equal(t, resourceAttrs.AsRaw(), mapToPcommonMap(map[string]pcommon.Value{ + "kubernetes.labels": mapToPcommonValue(map[string]pcommon.Value{ + "app": pcommon.NewValueStr("demo"), + "pod_template_hash": pcommon.NewValueStr("123456#&"), + "foo": pcommon.NewValueStr("bar"), + }), + }).AsRaw()) + + metricAttrs := l.ResourceMetrics().At(0).ScopeMetrics().At(0).Metrics().At(0).Sum().DataPoints().At(0).Attributes() + require.Equal(t, metricAttrs.AsRaw(), mapToPcommonMap(map[string]pcommon.Value{ + "kubernetes.labels": mapToPcommonValue(map[string]pcommon.Value{ + "metric_id": pcommon.NewValueStr("42"), + }), + }).AsRaw()) + }, + }, + { + name: "no-op", + config: []aggregationPair{ + { + Attribute: "kubernetes.labels", + Prefixes: []string{}, + }, + }, + createMetrics: func() pmetric.Metrics { + inputMetrics := pmetric.NewMetrics() + resourceAttrs := inputMetrics.ResourceMetrics().AppendEmpty().Resource().Attributes() + resourceAttrs.PutStr("pod_labels_app", "demo") + resourceAttrs.PutStr("pod_labels_pod_template_hash", "123456#&") + resourceAttrs.PutStr("pod_labels_foo", "bar") + + metric := inputMetrics.ResourceMetrics().At(0).ScopeMetrics().AppendEmpty().Metrics() + // Test only for sum: tests for different metric types are in aggregate_attributes_processor_test.go + metricAttrs := metric.AppendEmpty().SetEmptySum().DataPoints().AppendEmpty().Attributes() + metricAttrs.PutStr("pod_labels_metric_id", "42") + + return inputMetrics + }, + test: func(l pmetric.Metrics) { + resourceAttrs := l.ResourceMetrics().At(0).Resource().Attributes() + require.Equal(t, resourceAttrs.AsRaw(), mapToPcommonMap(map[string]pcommon.Value{ + "pod_labels_app": pcommon.NewValueStr("demo"), + "pod_labels_pod_template_hash": pcommon.NewValueStr("123456#&"), + "pod_labels_foo": pcommon.NewValueStr("bar"), + }).AsRaw()) + + metricAttrs := l.ResourceMetrics().At(0).ScopeMetrics().At(0).Metrics().At(0).Sum().DataPoints().At(0).Attributes() + require.Equal(t, metricAttrs.AsRaw(), mapToPcommonMap(map[string]pcommon.Value{ + "pod_labels_metric_id": pcommon.NewValueStr("42"), + }).AsRaw()) + }, + }, + } + + for _, testCase := range testCases { + t.Run(testCase.name, func(t *testing.T) { + // Arrange + processor := newsumologicProcessor(newProcessorCreateSettings(), newAggregateAttributesConfig(testCase.config)) + + // Act + outputMetrics, err := processor.processMetrics(context.Background(), testCase.createMetrics()) + require.NoError(t, err) + + // Assert + testCase.test(outputMetrics) + }) + } +} + +func TestAggregateAttributesForTraces(t *testing.T) { + testCases := []struct { + name string + config []aggregationPair + createTraces func() ptrace.Traces + test func(ptrace.Traces) + }{ + { + name: "simple aggregation", + config: []aggregationPair{ + { + Attribute: "kubernetes.labels", + Prefixes: []string{"pod_labels_"}, + }, + }, + createTraces: func() ptrace.Traces { + inputTraces := ptrace.NewTraces() + resourceAttrs := inputTraces.ResourceSpans().AppendEmpty().Resource().Attributes() + resourceAttrs.PutStr("pod_labels_app", "demo") + resourceAttrs.PutStr("pod_labels_pod_template_hash", "123456#&") + resourceAttrs.PutStr("pod_labels_foo", "bar") + + logAttrs := inputTraces.ResourceSpans().At(0).ScopeSpans().AppendEmpty().Spans().AppendEmpty().Attributes() + logAttrs.PutStr("pod_labels_span_id", "42") + + return inputTraces + }, + test: func(l ptrace.Traces) { + resourceAttrs := l.ResourceSpans().At(0).Resource().Attributes() + require.Equal(t, resourceAttrs.AsRaw(), mapToPcommonMap(map[string]pcommon.Value{ + "kubernetes.labels": mapToPcommonValue(map[string]pcommon.Value{ + "app": pcommon.NewValueStr("demo"), + "pod_template_hash": pcommon.NewValueStr("123456#&"), + "foo": pcommon.NewValueStr("bar"), + }), + }).AsRaw()) + + logAttrs := l.ResourceSpans().At(0).ScopeSpans().At(0).Spans().At(0).Attributes() + require.Equal(t, logAttrs.AsRaw(), mapToPcommonMap(map[string]pcommon.Value{ + "kubernetes.labels": mapToPcommonValue(map[string]pcommon.Value{ + "span_id": pcommon.NewValueStr("42"), + }), + }).AsRaw()) + }, + }, + { + name: "no-op", + config: []aggregationPair{ + { + Attribute: "kubernetes.labels", + Prefixes: []string{}, + }, + }, + createTraces: func() ptrace.Traces { + inputTraces := ptrace.NewTraces() + resourceAttrs := inputTraces.ResourceSpans().AppendEmpty().Resource().Attributes() + resourceAttrs.PutStr("pod_labels_app", "demo") + resourceAttrs.PutStr("pod_labels_pod_template_hash", "123456#&") + resourceAttrs.PutStr("pod_labels_foo", "bar") + + logAttrs := inputTraces.ResourceSpans().At(0).ScopeSpans().AppendEmpty().Spans().AppendEmpty().Attributes() + logAttrs.PutStr("pod_labels_span_id", "42") + + return inputTraces + }, + test: func(l ptrace.Traces) { + resourceAttrs := l.ResourceSpans().At(0).Resource().Attributes() + require.Equal(t, resourceAttrs.AsRaw(), mapToPcommonMap(map[string]pcommon.Value{ + "pod_labels_app": pcommon.NewValueStr("demo"), + "pod_labels_pod_template_hash": pcommon.NewValueStr("123456#&"), + "pod_labels_foo": pcommon.NewValueStr("bar"), + }).AsRaw()) + + logAttrs := l.ResourceSpans().At(0).ScopeSpans().At(0).Spans().At(0).Attributes() + require.Equal(t, logAttrs.AsRaw(), mapToPcommonMap(map[string]pcommon.Value{ + "pod_labels_span_id": pcommon.NewValueStr("42"), + }).AsRaw()) + }, + }, + } + + for _, testCase := range testCases { + t.Run(testCase.name, func(t *testing.T) { + // Arrange + processor := newsumologicProcessor(newProcessorCreateSettings(), newAggregateAttributesConfig(testCase.config)) + + // Act + outputTraces, err := processor.processTraces(context.Background(), testCase.createTraces()) + require.NoError(t, err) + + // Assert + testCase.test(outputTraces) + }) + } +} + +func TestLogFieldsConversionLogs(t *testing.T) { + testCases := []struct { + name string + createLogs func() plog.Logs + test func(plog.Logs) + }{ + { + name: "logFieldsConversion", + createLogs: func() plog.Logs { + logs := plog.NewLogs() + log := logs.ResourceLogs().AppendEmpty().ScopeLogs().AppendEmpty().LogRecords().AppendEmpty() + log.SetSeverityNumber(plog.SeverityNumberInfo) + log.SetSeverityText("severity") + var spanIDBytes = [8]byte{1, 1, 1, 1, 1, 1, 1, 1} + log.SetSpanID(spanIDBytes) + var traceIDBytes = [16]byte{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1} + log.SetTraceID(traceIDBytes) + return logs + }, + test: func(outputLogs plog.Logs) { + attribute1, found := outputLogs.ResourceLogs().At(0).ScopeLogs().At(0).LogRecords().At(0).Attributes().Get("definitely_not_default_name") + assert.True(t, found) + assert.Equal(t, "INFO", attribute1.Str()) + attribute2, found := outputLogs.ResourceLogs().At(0).ScopeLogs().At(0).LogRecords().At(0).Attributes().Get("severitytext") + assert.True(t, found) + assert.Equal(t, "severity", attribute2.Str()) + attribute3, found := outputLogs.ResourceLogs().At(0).ScopeLogs().At(0).LogRecords().At(0).Attributes().Get("spanid") + assert.True(t, found) + assert.Equal(t, "0101010101010101", attribute3.Str()) + attribute4, found := outputLogs.ResourceLogs().At(0).ScopeLogs().At(0).LogRecords().At(0).Attributes().Get("traceid") + assert.True(t, found) + assert.Equal(t, "01010101010101010101010101010101", attribute4.Str()) + + }, + }, + } + + for _, testCase := range testCases { + t.Run(testCase.name, func(t *testing.T) { + // Arrange + processor := newsumologicProcessor(newProcessorCreateSettings(), newLogFieldsConversionConfig()) + + // Act + outputLogs, err := processor.processLogs(context.Background(), testCase.createLogs()) + require.NoError(t, err) + + // Assert + testCase.test(outputLogs) + }) + } +} + +func newProcessorCreateSettings() processor.CreateSettings { + return processor.CreateSettings{ + TelemetrySettings: component.TelemetrySettings{ + Logger: zap.NewNop(), + }, + } +} + +func newCloudNamespaceConfig(addCloudNamespace bool) *Config { + config := createDefaultConfig().(*Config) + config.AddCloudNamespace = addCloudNamespace + config.TranslateAttributes = false + config.TranslateTelegrafAttributes = false + config.TranslateDockerMetrics = false + config.NestAttributes = &NestingProcessorConfig{ + Enabled: false, + } + return config +} + +func newTranslateAttributesConfig(translateAttributes bool) *Config { + config := createDefaultConfig().(*Config) + config.AddCloudNamespace = false + config.TranslateAttributes = translateAttributes + config.TranslateTelegrafAttributes = false + config.TranslateDockerMetrics = false + config.NestAttributes = &NestingProcessorConfig{ + Enabled: false, + } + return config +} + +func newTranslateTelegrafAttributesConfig(translateTelegrafAttributes bool) *Config { + config := createDefaultConfig().(*Config) + config.AddCloudNamespace = false + config.TranslateAttributes = false + config.TranslateTelegrafAttributes = translateTelegrafAttributes + config.TranslateDockerMetrics = false + config.NestAttributes = &NestingProcessorConfig{ + Enabled: false, + } + return config +} + +func newTranslateDockerMetricsConfig(translateDockerMetrics bool) *Config { + config := createDefaultConfig().(*Config) + config.AddCloudNamespace = false + config.TranslateAttributes = false + config.TranslateTelegrafAttributes = false + config.TranslateDockerMetrics = translateDockerMetrics + config.NestAttributes = &NestingProcessorConfig{ + Enabled: false, + } + return config +} + +func newNestAttributesConfig(separator string, enabled bool) *Config { + config := createDefaultConfig().(*Config) + config.AddCloudNamespace = false + config.TranslateAttributes = false + config.TranslateTelegrafAttributes = false + config.TranslateDockerMetrics = false + config.NestAttributes = &NestingProcessorConfig{ + Separator: separator, + Enabled: enabled, + } + return config +} + +func newAggregateAttributesConfig(aggregations []aggregationPair) *Config { + config := createDefaultConfig().(*Config) + config.AddCloudNamespace = false + config.TranslateAttributes = false + config.TranslateTelegrafAttributes = false + config.TranslateDockerMetrics = false + config.AggregateAttributes = aggregations + return config +} + +func newLogFieldsConversionConfig() *Config { + config := createDefaultConfig().(*Config) + config.AddCloudNamespace = false + config.TranslateAttributes = false + config.TranslateTelegrafAttributes = false + config.TranslateDockerMetrics = false + config.NestAttributes = &NestingProcessorConfig{ + Enabled: false, + } + config.LogFieldsAttributes = &logFieldAttributesConfig{ + &logFieldAttribute{Enabled: true, Name: "definitely_not_default_name"}, + &logFieldAttribute{Enabled: true, Name: SeverityTextAttributeName}, + &logFieldAttribute{Enabled: true, Name: SpanIDAttributeName}, + &logFieldAttribute{Enabled: true, Name: TraceIDAttributeName}, + } + return config +} diff --git a/processor/sumologicprocessor/testdata/config.yaml b/processor/sumologicprocessor/testdata/config.yaml new file mode 100644 index 000000000000..27f7335ec7af --- /dev/null +++ b/processor/sumologicprocessor/testdata/config.yaml @@ -0,0 +1,98 @@ +receivers: + nop: + +processors: + sumologic: + sumologic/disabled-cloud-namespace: + add_cloud_namespace: false + sumologic/disabled-attribute-translation: + translate_attributes: false + sumologic/disabled-telegraf-attribute-translation: + translate_telegraf_attributes: false + sumologic/enabled-nesting: + nest_attributes: + enabled: true + separator: "!" + include: ["blep"] + exclude: ["nghu"] + squash_single_values: true + sumologic/aggregate-attributes: + aggregate_attributes: + - attribute: "attr1" + prefixes: ["pattern1", "pattern2", "pattern3"] + - attribute: "attr2" + prefixes: ["pattern4"] + sumologic/enabled-severity-number-attribute: + field_attributes: + severity_number: + enabled: true + name: "loglevel" + sumologic/enabled-severity-text-attribute: + field_attributes: + severity_text: + enabled: true + name: "severitytext" + sumologic/enabled-span-id-attribute: + field_attributes: + span_id: + enabled: true + name: "spanid" + sumologic/enabled-trace-id-attribute: + field_attributes: + trace_id: + enabled: true + name: "traceid" + sumologic/enabled-docker-metrics-translation: + translate_docker_metrics: true +exporters: + nop: + +service: + pipelines: + logs/1: + receivers: + - nop + processors: + - sumologic/disabled-attribute-translation + exporters: + - nop + + logs/2: + receivers: + - nop + processors: + - sumologic/aggregate-attributes + exporters: + - nop + + metrics/1: + receivers: + - nop + processors: + - sumologic/disabled-cloud-namespace + exporters: + - nop + + metrics/2: + receivers: + - nop + processors: + - sumologic/disabled-telegraf-attribute-translation + exporters: + - nop + + metrics/3: + receivers: + - nop + processors: + - sumologic/enabled-nesting + exporters: + - nop + + traces: + receivers: + - nop + processors: + - sumologic + exporters: + - nop diff --git a/processor/sumologicprocessor/translate_attributes_processor.go b/processor/sumologicprocessor/translate_attributes_processor.go new file mode 100644 index 000000000000..e157458deb33 --- /dev/null +++ b/processor/sumologicprocessor/translate_attributes_processor.go @@ -0,0 +1,113 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +package sumologicprocessor // import "github.com/open-telemetry/opentelemetry-collector-contrib/processor/sumologicprocessor" + +import ( + "go.opentelemetry.io/collector/pdata/pcommon" + "go.opentelemetry.io/collector/pdata/plog" + "go.opentelemetry.io/collector/pdata/pmetric" + "go.opentelemetry.io/collector/pdata/ptrace" +) + +// translateAttributesProcessor translates attribute names from OpenTelemetry to Sumo Logic convention +type translateAttributesProcessor struct { + shouldTranslate bool +} + +// attributeTranslations maps OpenTelemetry attribute names to Sumo Logic attribute names +var attributeTranslations = map[string]string{ + "cloud.account.id": "AccountId", + "cloud.availability_zone": "AvailabilityZone", + "cloud.platform": "aws_service", + "cloud.region": "Region", + "host.id": "InstanceId", + "host.name": "host", + "host.type": "InstanceType", + "k8s.cluster.name": "Cluster", + "k8s.container.name": "container", + "k8s.daemonset.name": "daemonset", + "k8s.deployment.name": "deployment", + "k8s.namespace.name": "namespace", + "k8s.node.name": "node", + "k8s.service.name": "service", + "k8s.pod.hostname": "host", + "k8s.pod.name": "pod", + "k8s.pod.uid": "pod_id", + "k8s.replicaset.name": "replicaset", + "k8s.statefulset.name": "statefulset", + "service.name": "service", + "log.file.path_resolved": "_sourceName", +} + +func newTranslateAttributesProcessor(shouldTranslate bool) *translateAttributesProcessor { + return &translateAttributesProcessor{ + shouldTranslate: shouldTranslate, + } +} + +func (proc *translateAttributesProcessor) processLogs(logs plog.Logs) error { + if !proc.shouldTranslate { + return nil + } + + for i := 0; i < logs.ResourceLogs().Len(); i++ { + translateAttributes(logs.ResourceLogs().At(i).Resource().Attributes()) + } + + return nil +} + +func (proc *translateAttributesProcessor) processMetrics(metrics pmetric.Metrics) error { + if !proc.shouldTranslate { + return nil + } + + for i := 0; i < metrics.ResourceMetrics().Len(); i++ { + translateAttributes(metrics.ResourceMetrics().At(i).Resource().Attributes()) + } + + return nil +} + +func (proc *translateAttributesProcessor) processTraces(_ ptrace.Traces) error { + // No-op. Traces should not be translated. + return nil +} + +func (proc *translateAttributesProcessor) isEnabled() bool { + return proc.shouldTranslate +} + +func (*translateAttributesProcessor) ConfigPropertyName() string { + return "translate_attributes" +} + +func translateAttributes(attributes pcommon.Map) { + result := pcommon.NewMap() + result.EnsureCapacity(attributes.Len()) + + attributes.Range(func(otKey string, value pcommon.Value) bool { + if sumoKey, ok := attributeTranslations[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. + if _, exists := attributes.Get(sumoKey); !exists { + if _, ok := result.Get(sumoKey); !ok { + value.CopyTo(result.PutEmpty(sumoKey)) + } + } else { + if _, ok := result.Get(otKey); !ok { + value.CopyTo(result.PutEmpty(otKey)) + } + } + } else { + if _, ok := result.Get(otKey); !ok { + value.CopyTo(result.PutEmpty(otKey)) + } + } + return true + }) + + result.CopyTo(attributes) +} diff --git a/processor/sumologicprocessor/translate_attributes_processor_test.go b/processor/sumologicprocessor/translate_attributes_processor_test.go new file mode 100644 index 000000000000..7ea13b9614a7 --- /dev/null +++ b/processor/sumologicprocessor/translate_attributes_processor_test.go @@ -0,0 +1,144 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +package sumologicprocessor // import "github.com/open-telemetry/opentelemetry-collector-contrib/processor/sumologicprocessor" + +import ( + "testing" + + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "go.opentelemetry.io/collector/pdata/pcommon" +) + +func TestTranslateAttributes(t *testing.T) { + attributes := pcommon.NewMap() + attributes.PutStr("host.name", "testing-host") + attributes.PutStr("host.id", "my-host-id") + attributes.PutStr("host.type", "my-host-type") + attributes.PutStr("k8s.cluster.name", "testing-cluster") + attributes.PutStr("k8s.deployment.name", "my-deployment-name") + attributes.PutStr("k8s.namespace.name", "my-namespace-name") + attributes.PutStr("k8s.service.name", "my-service-name, other-service") + attributes.PutStr("cloud.account.id", "my-account-id") + attributes.PutStr("cloud.availability_zone", "my-zone") + attributes.PutStr("cloud.region", "my-region") + require.Equal(t, 10, attributes.Len()) + + translateAttributes(attributes) + + assert.Equal(t, 10, attributes.Len()) + assertAttribute(t, attributes, "host", "testing-host") + assertAttribute(t, attributes, "host.name", "") + assertAttribute(t, attributes, "AccountId", "my-account-id") + assertAttribute(t, attributes, "cloud.account.id", "") + assertAttribute(t, attributes, "AvailabilityZone", "my-zone") + assertAttribute(t, attributes, "clout.availability_zone", "") + assertAttribute(t, attributes, "Region", "my-region") + assertAttribute(t, attributes, "cloud.region", "") + assertAttribute(t, attributes, "InstanceId", "my-host-id") + assertAttribute(t, attributes, "host.id", "") + assertAttribute(t, attributes, "InstanceType", "my-host-type") + assertAttribute(t, attributes, "host.type", "") + assertAttribute(t, attributes, "Cluster", "testing-cluster") + assertAttribute(t, attributes, "k8s.cluster.name", "") + assertAttribute(t, attributes, "deployment", "my-deployment-name") + assertAttribute(t, attributes, "k8s.deployment.name", "") + assertAttribute(t, attributes, "namespace", "my-namespace-name") + assertAttribute(t, attributes, "k8s.namespace.name", "") + assertAttribute(t, attributes, "service", "my-service-name, other-service") + assertAttribute(t, attributes, "k8s.service.name", "") +} + +func TestTranslateAttributesDoesNothingWhenAttributeDoesNotExist(t *testing.T) { + attributes := pcommon.NewMap() + require.Equal(t, 0, attributes.Len()) + + translateAttributes(attributes) + + assert.Equal(t, 0, attributes.Len()) + assertAttribute(t, attributes, "host", "") +} + +func TestTranslateAttributesLeavesOtherAttributesUnchanged(t *testing.T) { + attributes := pcommon.NewMap() + attributes.PutStr("one", "one1") + attributes.PutStr("host.name", "host1") + attributes.PutStr("three", "three1") + require.Equal(t, 3, attributes.Len()) + + translateAttributes(attributes) + + assert.Equal(t, 3, attributes.Len()) + assertAttribute(t, attributes, "one", "one1") + assertAttribute(t, attributes, "host", "host1") + assertAttribute(t, attributes, "three", "three1") +} + +func TestTranslateAttributesDoesNotOverwriteExistingAttribute(t *testing.T) { + attributes := pcommon.NewMap() + attributes.PutStr("host", "host1") + attributes.PutStr("host.name", "hostname1") + require.Equal(t, 2, attributes.Len()) + + translateAttributes(attributes) + + assert.Equal(t, 2, attributes.Len()) + assertAttribute(t, attributes, "host", "host1") + assertAttribute(t, attributes, "host.name", "hostname1") +} + +func TestTranslateAttributesDoesNotOverwriteMultipleExistingAttributes(t *testing.T) { + attributes := pcommon.NewMap() + attributes.PutStr("host", "host1") + require.Equal(t, 1, attributes.Len()) + attributes.PutStr("host.name", "hostname1") + require.Equal(t, 2, attributes.Len()) + + translateAttributes(attributes) + + assert.Equal(t, 2, attributes.Len()) + assertAttribute(t, attributes, "host", "host1") + assertAttribute(t, attributes, "host.name", "hostname1") +} + +func assertAttribute(t *testing.T, metadata pcommon.Map, attributeName string, expectedValue string) { + value, exists := metadata.Get(attributeName) + + if expectedValue == "" { + assert.False(t, exists) + } else { + assert.True(t, exists) + assert.Equal(t, expectedValue, value.Str()) + + } +} + +var ( + benchPdataAttributes = map[string]interface{}{ + "host.name": pcommon.NewValueStr("testing-host"), + "host.id": pcommon.NewValueStr("my-host-id"), + "host.type": pcommon.NewValueStr("my-host-type"), + "k8s.cluster.name": pcommon.NewValueStr("testing-cluster"), + "k8s.deployment.name": pcommon.NewValueStr("my-deployment-name"), + "k8s.namespace.name": pcommon.NewValueStr("my-namespace-name"), + "k8s.service.name": pcommon.NewValueStr("my-service-name"), + "cloud.account.id": pcommon.NewValueStr("my-account-id"), + "cloud.availability_zone": pcommon.NewValueStr("my-zone"), + "cloud.region": pcommon.NewValueStr("my-region"), + "abc": pcommon.NewValueStr("abc"), + "def": pcommon.NewValueStr("def"), + "xyz": pcommon.NewValueStr("xyz"), + "jkl": pcommon.NewValueStr("jkl"), + "dummy": pcommon.NewValueStr("dummy"), + } + attributes = pcommon.NewMap() +) + +func BenchmarkTranslateAttributes(b *testing.B) { + err := attributes.FromRaw(benchPdataAttributes) + require.NoError(b, err) + for i := 0; i < b.N; i++ { + translateAttributes(attributes) + } +} diff --git a/processor/sumologicprocessor/translate_docker_metrics_processor.go b/processor/sumologicprocessor/translate_docker_metrics_processor.go new file mode 100644 index 000000000000..9e103bd8bcaa --- /dev/null +++ b/processor/sumologicprocessor/translate_docker_metrics_processor.go @@ -0,0 +1,157 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +package sumologicprocessor // import "github.com/open-telemetry/opentelemetry-collector-contrib/processor/sumologicprocessor" + +import ( + "go.opentelemetry.io/collector/pdata/pcommon" + "go.opentelemetry.io/collector/pdata/plog" + "go.opentelemetry.io/collector/pdata/pmetric" + "go.opentelemetry.io/collector/pdata/ptrace" +) + +// translateTelegrafMetricsProcessor translates metric names from OpenTelemetry to Sumo Logic convention +type translateDockerMetricsProcessor struct { + shouldTranslate bool +} + +// metricsTranslations maps Telegraf metric names to corresponding names in Sumo Logic convention +var dockerMetricsTranslations = map[string]string{ + "container.cpu.percent": "cpu_percentage", + "container.cpu.usage.system": "system_cpu_usage", + "container.cpu.usage.percpu": "cpu_usage.percpu_usage", + "container.cpu.usage.total": "cpu_usage.total_usage", + "container.cpu.usage.kernelmode": "cpu_usage.usage_in_kernelmode", + "container.cpu.usage.usermode": "cpu_usage.usage_in_usermode", + "container.cpu.throttling_data.periods": "throttling_data.periods", + "container.cpu.throttling_data.throttled_periods": "throttling_data.throttled_periods", + "container.cpu.throttling_data.throttled_time": "throttling_data.throttled_time", + "container.memory.usage.limit": "limit", + "container.memory.usage.max": "max_usage", + "container.memory.percent": "memory_percentage", + "container.memory.usage.total": "usage", + "container.memory.active_anon": "stats.active_anon", + "container.memory.active_file": "stats.active_file", + "container.memory.cache": "stats.cache", + "container.memory.hierarchical_memory_limit": "stats.hierarchical_memory_limit", + "container.memory.inactive_anon": "stats.inactive_anon", + "container.memory.inactive_file": "stats.inactive_file", + "container.memory.mapped_file": "stats.mapped_file", + "container.memory.pgfault": "stats.pgfault", + "container.memory.pgmajfault": "stats.pgmajfault", + "container.memory.pgpgin": "stats.pgpgin", + "container.memory.pgpgout": "stats.pgpgout", + "container.memory.rss": "stats.rss", + "container.memory.rss_huge": "stats.rss_huge", + "container.memory.unevictable": "stats.unevictable", + "container.memory.writeback": "stats.writeback", + "container.memory.total_active_anon": "stats.total_active_anon", + "container.memory.total_active_file": "stats.total_active_file", + "container.memory.total_cache": "stats.total_cache", + "container.memory.total_inactive_anon": "stats.total_inactive_anon", + "container.memory.total_mapped_file": "stats.total_mapped_file", + "container.memory.total_pgfault": "stats.total_pgfault", + "container.memory.total_pgmajfault": "stats.total_pgmajfault", + "container.memory.total_pgpgin": "stats.total_pgpgin", + "container.memory.total_pgpgout": "stats.total_pgpgout", + "container.memory.total_rss": "stats.total_rss", + "container.memory.total_rss_huge": "stats.total_rss_huge", + "container.memory.total_unevictable": "stats.total_unevictable", + "container.memory.total_writeback": "stats.total_writeback", + "container.blockio.io_merged_recursive": "io_merged_recursive", + "container.blockio.io_queued_recursive": "io_queue_recursive", + "container.blockio.io_service_bytes_recursive": "io_service_bytes_recursive", + "container.blockio.io_service_time_recursive": "io_service_time_recursive", + "container.blockio.io_serviced_recursive": "io_serviced_recursive", + "container.blockio.io_time_recursive": "io_time_recursive", + "container.blockio.io_wait_time_recursive": "io_wait_time_recursive", + "container.blockio.sectors_recursive": "sectors_recursive", +} + +var dockerReasourceAttributeTranslations = map[string]string{ + "container.id": "container.FullID", + "container.image.name": "container.ImageName", + "container.name": "container.Name", +} + +func newTranslateDockerMetricsProcessor(shouldTranslate bool) *translateDockerMetricsProcessor { + return &translateDockerMetricsProcessor{ + shouldTranslate: shouldTranslate, + } +} + +func (proc *translateDockerMetricsProcessor) processLogs(_ plog.Logs) error { + // No-op, this subprocessor doesn't process logs. + return nil +} + +func (proc *translateDockerMetricsProcessor) processMetrics(metrics pmetric.Metrics) error { + if !proc.shouldTranslate { + return nil + } + + for i := 0; i < metrics.ResourceMetrics().Len(); i++ { + rm := metrics.ResourceMetrics().At(i) + translateDockerResourceAttributes(rm.Resource().Attributes()) + + for j := 0; j < rm.ScopeMetrics().Len(); j++ { + metricsSlice := rm.ScopeMetrics().At(j).Metrics() + + for k := 0; k < metricsSlice.Len(); k++ { + translateDockerMetric(metricsSlice.At(k)) + } + } + } + + return nil +} + +func (proc *translateDockerMetricsProcessor) processTraces(_ ptrace.Traces) error { + // No-op, this subprocessor doesn't process traces. + return nil +} + +func (proc *translateDockerMetricsProcessor) isEnabled() bool { + return proc.shouldTranslate +} + +func (*translateDockerMetricsProcessor) ConfigPropertyName() string { + return "translate_docker_metrics" +} + +func translateDockerMetric(m pmetric.Metric) { + name, exists := dockerMetricsTranslations[m.Name()] + + if exists { + m.SetName(name) + } +} + +func translateDockerResourceAttributes(attributes pcommon.Map) { + result := pcommon.NewMap() + result.EnsureCapacity(attributes.Len()) + + attributes.Range(func(otKey string, value pcommon.Value) bool { + if sumoKey, ok := dockerReasourceAttributeTranslations[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. + if _, exists := attributes.Get(sumoKey); !exists { + if _, ok := result.Get(sumoKey); !ok { + value.CopyTo(result.PutEmpty(sumoKey)) + } + } else { + if _, ok := result.Get(otKey); !ok { + value.CopyTo(result.PutEmpty(otKey)) + } + } + } else { + if _, ok := result.Get(otKey); !ok { + value.CopyTo(result.PutEmpty(otKey)) + } + } + return true + }) + + result.CopyTo(attributes) +} diff --git a/processor/sumologicprocessor/translate_docker_metrics_processor_test.go b/processor/sumologicprocessor/translate_docker_metrics_processor_test.go new file mode 100644 index 000000000000..d452fd3a2375 --- /dev/null +++ b/processor/sumologicprocessor/translate_docker_metrics_processor_test.go @@ -0,0 +1,101 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +package sumologicprocessor // import "github.com/open-telemetry/opentelemetry-collector-contrib/processor/sumologicprocessor" + +import ( + "testing" + + "github.com/stretchr/testify/assert" + "go.opentelemetry.io/collector/pdata/pcommon" + "go.opentelemetry.io/collector/pdata/pmetric" +) + +func TestTranslateDockerMetric_NamesAreTranslatedCorrectly(t *testing.T) { + testcases := []struct { + nameIn string + nameOut string + }{ + {nameIn: "container.cpu.percent", nameOut: "cpu_percentage"}, + {nameIn: "container.cpu.usage.system", nameOut: "system_cpu_usage"}, + {nameIn: "container.cpu.usage.percpu", nameOut: "cpu_usage.percpu_usage"}, + {nameIn: "container.cpu.usage.total", nameOut: "cpu_usage.total_usage"}, + {nameIn: "container.cpu.usage.kernelmode", nameOut: "cpu_usage.usage_in_kernelmode"}, + {nameIn: "container.cpu.usage.usermode", nameOut: "cpu_usage.usage_in_usermode"}, + {nameIn: "container.cpu.throttling_data.periods", nameOut: "throttling_data.periods"}, + {nameIn: "container.cpu.throttling_data.throttled_periods", nameOut: "throttling_data.throttled_periods"}, + {nameIn: "container.cpu.throttling_data.throttled_time", nameOut: "throttling_data.throttled_time"}, + {nameIn: "container.memory.usage.limit", nameOut: "limit"}, + {nameIn: "container.memory.usage.max", nameOut: "max_usage"}, + {nameIn: "container.memory.percent", nameOut: "memory_percentage"}, + {nameIn: "container.memory.usage.total", nameOut: "usage"}, + {nameIn: "container.memory.active_anon", nameOut: "stats.active_anon"}, + {nameIn: "container.memory.active_file", nameOut: "stats.active_file"}, + {nameIn: "container.memory.cache", nameOut: "stats.cache"}, + {nameIn: "container.memory.hierarchical_memory_limit", nameOut: "stats.hierarchical_memory_limit"}, + {nameIn: "container.memory.inactive_anon", nameOut: "stats.inactive_anon"}, + {nameIn: "container.memory.inactive_file", nameOut: "stats.inactive_file"}, + {nameIn: "container.memory.mapped_file", nameOut: "stats.mapped_file"}, + {nameIn: "container.memory.pgfault", nameOut: "stats.pgfault"}, + {nameIn: "container.memory.pgmajfault", nameOut: "stats.pgmajfault"}, + {nameIn: "container.memory.pgpgin", nameOut: "stats.pgpgin"}, + {nameIn: "container.memory.pgpgout", nameOut: "stats.pgpgout"}, + {nameIn: "container.memory.rss", nameOut: "stats.rss"}, + {nameIn: "container.memory.rss_huge", nameOut: "stats.rss_huge"}, + {nameIn: "container.memory.unevictable", nameOut: "stats.unevictable"}, + {nameIn: "container.memory.writeback", nameOut: "stats.writeback"}, + {nameIn: "container.memory.total_active_anon", nameOut: "stats.total_active_anon"}, + {nameIn: "container.memory.total_active_file", nameOut: "stats.total_active_file"}, + {nameIn: "container.memory.total_cache", nameOut: "stats.total_cache"}, + {nameIn: "container.memory.total_inactive_anon", nameOut: "stats.total_inactive_anon"}, + {nameIn: "container.memory.total_mapped_file", nameOut: "stats.total_mapped_file"}, + {nameIn: "container.memory.total_pgfault", nameOut: "stats.total_pgfault"}, + {nameIn: "container.memory.total_pgmajfault", nameOut: "stats.total_pgmajfault"}, + {nameIn: "container.memory.total_pgpgin", nameOut: "stats.total_pgpgin"}, + {nameIn: "container.memory.total_pgpgout", nameOut: "stats.total_pgpgout"}, + {nameIn: "container.memory.total_rss", nameOut: "stats.total_rss"}, + {nameIn: "container.memory.total_rss_huge", nameOut: "stats.total_rss_huge"}, + {nameIn: "container.memory.total_unevictable", nameOut: "stats.total_unevictable"}, + {nameIn: "container.memory.total_writeback", nameOut: "stats.total_writeback"}, + {nameIn: "container.blockio.io_merged_recursive", nameOut: "io_merged_recursive"}, + {nameIn: "container.blockio.io_queued_recursive", nameOut: "io_queue_recursive"}, + {nameIn: "container.blockio.io_service_bytes_recursive", nameOut: "io_service_bytes_recursive"}, + {nameIn: "container.blockio.io_service_time_recursive", nameOut: "io_service_time_recursive"}, + {nameIn: "container.blockio.io_serviced_recursive", nameOut: "io_serviced_recursive"}, + {nameIn: "container.blockio.io_time_recursive", nameOut: "io_time_recursive"}, + {nameIn: "container.blockio.io_wait_time_recursive", nameOut: "io_wait_time_recursive"}, + {nameIn: "container.blockio.sectors_recursive", nameOut: "sectors_recursive"}, + } + + for _, tc := range testcases { + t.Run(tc.nameIn+"-"+tc.nameOut, func(t *testing.T) { + actual := pmetric.NewMetric() + actual.SetName(tc.nameIn) + translateDockerMetric(actual) + assert.Equal(t, tc.nameOut, actual.Name()) + }) + } +} + +func TestTranslateDockerMetric_ResourceAttrbutesAreTranslatedCorrectly(t *testing.T) { + testcases := []struct { + nameIn string + nameOut string + }{ + {nameIn: "container.id", nameOut: "container.FullID"}, + {nameIn: "container.image.name", nameOut: "container.ImageName"}, + {nameIn: "container.name", nameOut: "container.Name"}, + } + + for _, tc := range testcases { + t.Run(tc.nameIn+"-"+tc.nameOut, func(t *testing.T) { + actual := pcommon.NewMap() + actual.PutStr(tc.nameIn, "a") + translateDockerResourceAttributes(actual) + + res, ok := actual.Get(tc.nameOut) + assert.True(t, ok) + assert.Equal(t, res.AsString(), "a") + }) + } +} diff --git a/processor/sumologicprocessor/translate_telegraf_metrics_processor.go b/processor/sumologicprocessor/translate_telegraf_metrics_processor.go new file mode 100644 index 000000000000..2fbb200bae42 --- /dev/null +++ b/processor/sumologicprocessor/translate_telegraf_metrics_processor.go @@ -0,0 +1,125 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +package sumologicprocessor // import "github.com/open-telemetry/opentelemetry-collector-contrib/processor/sumologicprocessor" + +import ( + "go.opentelemetry.io/collector/pdata/plog" + "go.opentelemetry.io/collector/pdata/pmetric" + "go.opentelemetry.io/collector/pdata/ptrace" +) + +// translateTelegrafMetricsProcessor translates metric names from OpenTelemetry to Sumo Logic convention +type translateTelegrafMetricsProcessor struct { + shouldTranslate bool +} + +// metricsTranslations maps Telegraf metric names to corresponding names in Sumo Logic convention +var metricsTranslations = map[string]string{ + // CPU metrics + "cpu_usage_active": "CPU_Total", + "cpu_usage_idle": "CPU_Idle", + "cpu_usage_iowait": "CPU_IOWait", + "cpu_usage_irq": "CPU_Irq", + "cpu_usage_nice": "CPU_Nice", + "cpu_usage_softirq": "CPU_SoftIrq", + "cpu_usage_steal": "CPU_Stolen", + "cpu_usage_System": "CPU_Sys", + "cpu_usage_user": "CPU_User", + "system_load1": "CPU_LoadAvg_1min", + "system_load5": "CPU_LoadAvg_5min", + "system_load15": "CPU_LoadAvg_15min", + + // Disk metrics + "disk_used": "Disk_Used", + "disk_used_percent": "Disk_UsedPercent", + "disk_inodes_free": "Disk_InodesAvailable", + + // Disk IO metrics + "diskio_reads": "Disk_Reads", + "diskio_read_bytes": "Disk_ReadBytes", + "diskio_writes": "Disk_Writes", + "diskio_write_bytes": "Disk_WriteBytes", + + // Memory metrics + "mem_total": "Mem_Total", + "mem_free": "Mem_free", + "mem_available": "Mem_ActualFree", + "mem_used": "Mem_ActualUsed", + "mem_used_percent": "Mem_UsedPercent", + "mem_available_percent": "Mem_FreePercent", + + // Procstat metrics + "procstat_num_threads": "Proc_Threads", + "procstat_memory_vms": "Proc_VMSize", + "procstat_memory_rss": "Proc_RSSize", + "procstat_cpu_usage": "Proc_CPU", + "procstat_major_faults": "Proc_MajorFaults", + "procstat_minor_faults": "Proc_MinorFaults", + + // Net metrics + "net_bytes_sent": "Net_OutBytes", + "net_bytes_recv": "Net_InBytes", + "net_packets_sent": "Net_OutPackets", + "net_packets_recv": "Net_InPackets", + + // Netstat metrics + "netstat_tcp_close": "TCP_Close", + "netstat_tcp_close_wait": "TCP_CloseWait", + "netstat_tcp_closing": "TCP_Closing", + "netstat_tcp_established": "TCP_Established", + "netstat_tcp_listen": "TCP_Listen", + "netstat_tcp_time_wait": "TCP_TimeWait", +} + +func newTranslateTelegrafMetricsProcessor(shouldTranslate bool) *translateTelegrafMetricsProcessor { + return &translateTelegrafMetricsProcessor{ + shouldTranslate: shouldTranslate, + } +} + +func (proc *translateTelegrafMetricsProcessor) processLogs(_ plog.Logs) error { + // No-op, this subprocessor doesn't process logs. + return nil +} + +func (proc *translateTelegrafMetricsProcessor) processMetrics(metrics pmetric.Metrics) error { + if !proc.shouldTranslate { + return nil + } + + for i := 0; i < metrics.ResourceMetrics().Len(); i++ { + rm := metrics.ResourceMetrics().At(i) + + for j := 0; j < rm.ScopeMetrics().Len(); j++ { + metricsSlice := rm.ScopeMetrics().At(j).Metrics() + + for k := 0; k < metricsSlice.Len(); k++ { + translateTelegrafMetric(metricsSlice.At(k)) + } + } + } + + return nil +} + +func (proc *translateTelegrafMetricsProcessor) processTraces(_ ptrace.Traces) error { + // No-op, this subprocessor doesn't process traces. + return nil +} + +func (proc *translateTelegrafMetricsProcessor) isEnabled() bool { + return proc.shouldTranslate +} + +func (*translateTelegrafMetricsProcessor) ConfigPropertyName() string { + return "translate_telegraf_attributes" +} + +func translateTelegrafMetric(m pmetric.Metric) { + name, exists := metricsTranslations[m.Name()] + + if exists { + m.SetName(name) + } +} diff --git a/processor/sumologicprocessor/translate_telegraf_metrics_processor_test.go b/processor/sumologicprocessor/translate_telegraf_metrics_processor_test.go new file mode 100644 index 000000000000..e1dcf891cbdb --- /dev/null +++ b/processor/sumologicprocessor/translate_telegraf_metrics_processor_test.go @@ -0,0 +1,203 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +package sumologicprocessor // import "github.com/open-telemetry/opentelemetry-collector-contrib/processor/sumologicprocessor" + +import ( + "testing" + + "github.com/stretchr/testify/assert" + "go.opentelemetry.io/collector/pdata/pmetric" +) + +func TestTranslateTelegrafMetric_NamesAreTranslatedCorrectly(t *testing.T) { + testcases := []struct { + nameIn string + nameOut string + }{ + // CPU metrics + { + nameIn: "cpu_usage_active", + nameOut: "CPU_Total", + }, + { + nameIn: "cpu_usage_idle", + nameOut: "CPU_Idle", + }, + { + nameIn: "cpu_usage_iowait", + nameOut: "CPU_IOWait", + }, + { + nameIn: "cpu_usage_irq", + nameOut: "CPU_Irq", + }, + { + nameIn: "cpu_usage_nice", + nameOut: "CPU_Nice", + }, + { + nameIn: "cpu_usage_softirq", + nameOut: "CPU_SoftIrq", + }, + { + nameIn: "cpu_usage_steal", + nameOut: "CPU_Stolen", + }, + { + nameIn: "cpu_usage_System", + nameOut: "CPU_Sys", + }, + { + nameIn: "cpu_usage_user", + nameOut: "CPU_User", + }, + { + nameIn: "system_load1", + nameOut: "CPU_LoadAvg_1min", + }, + { + nameIn: "system_load5", + nameOut: "CPU_LoadAvg_5min", + }, + { + nameIn: "system_load15", + nameOut: "CPU_LoadAvg_15min", + }, + // Disk metrics + { + nameIn: "disk_used", + nameOut: "Disk_Used", + }, + { + nameIn: "disk_used_percent", + nameOut: "Disk_UsedPercent", + }, + { + nameIn: "disk_inodes_free", + nameOut: "Disk_InodesAvailable", + }, + // Disk IO metrics + { + nameIn: "diskio_reads", + nameOut: "Disk_Reads", + }, + { + nameIn: "diskio_read_bytes", + nameOut: "Disk_ReadBytes", + }, + { + nameIn: "diskio_writes", + nameOut: "Disk_Writes", + }, + { + nameIn: "diskio_write_bytes", + nameOut: "Disk_WriteBytes", + }, + + // Memory metrics + { + nameIn: "mem_total", + nameOut: "Mem_Total", + }, + { + nameIn: "mem_free", + nameOut: "Mem_free", + }, + { + nameIn: "mem_available", + nameOut: "Mem_ActualFree", + }, + { + nameIn: "mem_used", + nameOut: "Mem_ActualUsed", + }, + { + nameIn: "mem_used_percent", + nameOut: "Mem_UsedPercent", + }, + { + nameIn: "mem_available_percent", + nameOut: "Mem_FreePercent", + }, + + // Procstat metrics + { + nameIn: "procstat_num_threads", + nameOut: "Proc_Threads", + }, + { + nameIn: "procstat_memory_vms", + nameOut: "Proc_VMSize", + }, + { + nameIn: "procstat_memory_rss", + nameOut: "Proc_RSSize", + }, + { + nameIn: "procstat_cpu_usage", + nameOut: "Proc_CPU", + }, + { + nameIn: "procstat_major_faults", + nameOut: "Proc_MajorFaults", + }, + { + nameIn: "procstat_minor_faults", + nameOut: "Proc_MinorFaults", + }, + + // Net metrics + { + nameIn: "net_bytes_sent", + nameOut: "Net_OutBytes", + }, + { + nameIn: "net_bytes_recv", + nameOut: "Net_InBytes", + }, + { + nameIn: "net_packets_sent", + nameOut: "Net_OutPackets", + }, + { + nameIn: "net_packets_recv", + nameOut: "Net_InPackets", + }, + + // Netstat metrics + { + nameIn: "netstat_tcp_close", + nameOut: "TCP_Close", + }, + { + nameIn: "netstat_tcp_close_wait", + nameOut: "TCP_CloseWait", + }, + { + nameIn: "netstat_tcp_closing", + nameOut: "TCP_Closing", + }, + { + nameIn: "netstat_tcp_established", + nameOut: "TCP_Established", + }, + { + nameIn: "netstat_tcp_listen", + nameOut: "TCP_Listen", + }, + { + nameIn: "netstat_tcp_time_wait", + nameOut: "TCP_TimeWait", + }, + } + + for _, tc := range testcases { + t.Run(tc.nameIn+"-"+tc.nameOut, func(t *testing.T) { + actual := pmetric.NewMetric() + actual.SetName(tc.nameIn) + translateTelegrafMetric(actual) + assert.Equal(t, tc.nameOut, actual.Name()) + }) + } +} diff --git a/versions.yaml b/versions.yaml index 82001c21e2ee..98a60c22610d 100644 --- a/versions.yaml +++ b/versions.yaml @@ -152,6 +152,7 @@ module-sets: - github.com/open-telemetry/opentelemetry-collector-contrib/processor/servicegraphprocessor - github.com/open-telemetry/opentelemetry-collector-contrib/processor/spanmetricsprocessor - github.com/open-telemetry/opentelemetry-collector-contrib/processor/spanprocessor + - github.com/open-telemetry/opentelemetry-collector-contrib/processor/sumologicprocessor - github.com/open-telemetry/opentelemetry-collector-contrib/processor/tailsamplingprocessor - github.com/open-telemetry/opentelemetry-collector-contrib/processor/transformprocessor - github.com/open-telemetry/opentelemetry-collector-contrib/processor/remoteobserverprocessor