Skip to content

Commit

Permalink
chore: revert moving exporter names to constants
Browse files Browse the repository at this point in the history
  • Loading branch information
dhawal1248 committed Oct 10, 2023
1 parent e6bd49b commit d4fb052
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 13 deletions.
7 changes: 0 additions & 7 deletions constants/exporters.go

This file was deleted.

3 changes: 1 addition & 2 deletions exporter/clickhouselogsexporter/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import (
"context"
"fmt"

"github.com/SigNoz/signoz-otel-collector/constants"
"go.opencensus.io/stats"
"go.opencensus.io/stats/view"
"go.opencensus.io/tag"
Expand All @@ -29,7 +28,7 @@ import (

const (
// The value of "type" key in configuration.
typeStr = constants.SignozLogsExporter
typeStr = "clickhouselogsexporter"
primaryNamespace = "clickhouselogs"
archiveNamespace = "clickhouselogs-archive"
databaseName = "signoz_logs"
Expand Down
3 changes: 1 addition & 2 deletions exporter/clickhousemetricsexporter/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import (
"errors"
"time"

"github.com/SigNoz/signoz-otel-collector/constants"
"github.com/open-telemetry/opentelemetry-collector-contrib/pkg/resourcetotelemetry"
"go.opencensus.io/stats"
"go.opencensus.io/stats/view"
Expand All @@ -33,7 +32,7 @@ import (

const (
// The value of "type" key in configuration.
typeStr = constants.SignozMetricsExporter
typeStr = "clickhousemetricswrite"
)

var (
Expand Down
3 changes: 1 addition & 2 deletions exporter/clickhousetracesexporter/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,14 @@ package clickhousetracesexporter
import (
"context"

"github.com/SigNoz/signoz-otel-collector/constants"
"go.opentelemetry.io/collector/component"
"go.opentelemetry.io/collector/exporter"
"go.opentelemetry.io/collector/exporter/exporterhelper"
)

const (
// The value of "type" key in configuration.
typeStr = constants.SignozTracesExporter
typeStr = "clickhousetraces"
primaryNamespace = "clickhouse"
archiveNamespace = "clickhouse-archive"
)
Expand Down

0 comments on commit d4fb052

Please sign in to comment.