Skip to content

Commit

Permalink
Deprecate httpsinkexporter (#4146)
Browse files Browse the repository at this point in the history
* Deprecate httpsinkexporter

* Deprecate httpsinkexporter
  • Loading branch information
atoulme authored Jan 23, 2024
1 parent 1da0e2c commit d450347
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,9 @@ linters:
- staticcheck
- unconvert
- unparam

issues:
exclude-rules:
- text: "SA1019: \"github.com/signalfx/splunk-otel-collector/internal/exporter/httpsinkexporter"
linters:
- staticcheck
16 changes: 16 additions & 0 deletions internal/exporter/httpsinkexporter/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Copyright The OpenTelemetry Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// Deprecated: This exporter is only used for testing and should not be relied upon for production data.
package httpsinkexporter
1 change: 1 addition & 0 deletions internal/exporter/httpsinkexporter/httpsink_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ type httpSinkExporter struct {
}

func newExporter(logger *zap.Logger, endpoint string) *httpSinkExporter {
logger.Warn("This component is deprecated and must be used for testing purposes only. It does not redact or filter any telemetry content it exposes and should not be used with production data.")
return &httpSinkExporter{sink: newSink(logger, endpoint)}
}

Expand Down

0 comments on commit d450347

Please sign in to comment.