From cbc6ce9d4f8a37f9e50ce6bab153fb208248f9a9 Mon Sep 17 00:00:00 2001 From: Dominik Rosiek Date: Mon, 13 May 2024 13:10:41 +0200 Subject: [PATCH 1/2] sumologicexporter!: remove deprecated configuration options and remove unused code Signed-off-by: Dominik Rosiek --- .chloggen/drosiek-refactor.yaml | 27 +++++ exporter/sumologicexporter/README.md | 45 ------- exporter/sumologicexporter/config.go | 110 ++++++++---------- exporter/sumologicexporter/exporter.go | 91 +++++---------- exporter/sumologicexporter/exporter_test.go | 71 +---------- exporter/sumologicexporter/factory.go | 11 +- exporter/sumologicexporter/filter.go | 66 ----------- exporter/sumologicexporter/filter_test.go | 58 --------- exporter/sumologicexporter/sender.go | 10 -- exporter/sumologicexporter/sender_test.go | 23 +--- exporter/sumologicexporter/source_format.go | 77 ------------ .../sumologicexporter/source_format_test.go | 97 --------------- 12 files changed, 113 insertions(+), 573 deletions(-) create mode 100644 .chloggen/drosiek-refactor.yaml delete mode 100644 exporter/sumologicexporter/filter.go delete mode 100644 exporter/sumologicexporter/filter_test.go delete mode 100644 exporter/sumologicexporter/source_format.go delete mode 100644 exporter/sumologicexporter/source_format_test.go diff --git a/.chloggen/drosiek-refactor.yaml b/.chloggen/drosiek-refactor.yaml new file mode 100644 index 000000000000..adbfa46917f3 --- /dev/null +++ b/.chloggen/drosiek-refactor.yaml @@ -0,0 +1,27 @@ +# Use this changelog template to create an entry for release notes. + +# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' +change_type: breaking + +# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver) +component: sumologicexporter + +# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). +note: remove deprecated configuration options + +# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists. +issues: [32315] + +# (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: + +# If your change doesn't affect end users or the exported elements of any package, +# you should instead start your pull request title with [chore] or use the "Skip Changelog" label. +# Optional: The change log or logs in which this entry should be included. +# e.g. '[user]' or '[user, api]' +# Include 'user' if the change is relevant to end users. +# Include 'api' if there is a change to a library API. +# Default: '[user]' +change_logs: [user] diff --git a/exporter/sumologicexporter/README.md b/exporter/sumologicexporter/README.md index 1e354760c4e0..4f81f94eee95 100644 --- a/exporter/sumologicexporter/README.md +++ b/exporter/sumologicexporter/README.md @@ -85,13 +85,6 @@ exporters: # default = 1_048_576 (1MB) max_request_body_size: - # List of regexes for attributes which should be send as metadata - # default = [] - # - # This option is unsupported: - # https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/sumologicexporter#migration-to-new-architecture - metadata_attributes: [] - # format to use when sending logs to Sumo Logic, default = otlp, log_format: {otlp, json, text} @@ -105,44 +98,6 @@ exporters: # default = false decompose_otlp_histograms: {true, false} - # Template for Graphite format. - # this option affects graphite format only - # By default this is "%{_metric_}". - # - # Please regfer to Source temmplates for formatting explanation: - # https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/sumologicexporter#source-templates - # - # This option is unsupported: - # https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/sumologicexporter#migration-to-new-architecture - graphite_template: