Skip to content

Commit

Permalink
Fix lint (#384)
Browse files Browse the repository at this point in the history
  • Loading branch information
srikanthccv authored Sep 8, 2024
1 parent d1401eb commit 0c652bf
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion exporter/clickhouselogsexporter/logsv2/hash.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func FingerprintHash(attribs map[string]any) uint64 {
}

keys := []string{}
for k, _ := range attribs {
for k := range attribs {
keys = append(keys, k)
}

Expand Down
2 changes: 1 addition & 1 deletion migrationmanager/migrators/basemigrator/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type zapLoggerAdapter struct {

func newZapLoggerAdapter(logger *zap.Logger, verboseLoggingEnabled bool) *zapLoggerAdapter {
return &zapLoggerAdapter{
Logger: logger,
Logger: logger,
VerboseLoggingEnabled: verboseLoggingEnabled,
}
}
Expand Down
2 changes: 1 addition & 1 deletion processor/signoztailsampler/evaluator.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func prepareFilterEvaluators(logger *zap.Logger, policyFilterCfg PolicyFilterCfg
return filterEvaluators
}

// Evaluate executes policy filter first to determine if the policy applies to current trace data
// Evaluate executes policy filter first to determine if the policy applies to current trace data
// and if it succeeds, then sampling is performed based on sampling params set on the
// selected policy. This method works for both root and sub-policies.
func (de *defaultEvaluator) Evaluate(traceId pcommon.TraceID, trace *sampling.TraceData) (sampling.Decision, error) {
Expand Down
2 changes: 1 addition & 1 deletion processor/signoztailsampler/evaluator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ func newTraceStringAttrs(nodeAttrs map[string]interface{}, spanAttrKey []string,
span := ils.Spans().AppendEmpty()
span.SetTraceID([16]byte{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16})
span.SetSpanID([8]byte{1, 2, 3, 4, 5, 6, 7, 8})
for i, _ := range spanAttrKey {
for i := range spanAttrKey {
span.Attributes().PutStr(spanAttrKey[i], spanAttrValue[i])
}

Expand Down
2 changes: 1 addition & 1 deletion processor/signoztransformprocessor/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import (
"go.uber.org/multierr"
"go.uber.org/zap"

"github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl"
"github.com/SigNoz/signoz-otel-collector/processor/signoztransformprocessor/internal/common"
"github.com/SigNoz/signoz-otel-collector/processor/signoztransformprocessor/internal/logs"
"github.com/SigNoz/signoz-otel-collector/processor/signoztransformprocessor/internal/metrics"
"github.com/SigNoz/signoz-otel-collector/processor/signoztransformprocessor/internal/traces"
"github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl"
)

// Config defines the configuration for the processor.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"go.uber.org/multierr"
"go.uber.org/zap"

"github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl"
"github.com/SigNoz/signoz-otel-collector/processor/signoztransformprocessor/internal/common"
"github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl"
)

type Processor struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (
"go.opentelemetry.io/collector/pdata/pcommon"
"go.opentelemetry.io/collector/pdata/plog"

"github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl"
"github.com/SigNoz/signoz-otel-collector/processor/signoztransformprocessor/internal/common"
"github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl"
)

var (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"go.uber.org/multierr"
"go.uber.org/zap"

"github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl"
"github.com/SigNoz/signoz-otel-collector/processor/signoztransformprocessor/internal/common"
"github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl"
)

type Processor struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (
"go.opentelemetry.io/collector/pdata/pcommon"
"go.opentelemetry.io/collector/pdata/pmetric"

"github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl"
"github.com/SigNoz/signoz-otel-collector/processor/signoztransformprocessor/internal/common"
"github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl"
)

var (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"go.uber.org/multierr"
"go.uber.org/zap"

"github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl"
"github.com/SigNoz/signoz-otel-collector/processor/signoztransformprocessor/internal/common"
"github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl"
)

type Processor struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (
"go.opentelemetry.io/collector/pdata/pcommon"
"go.opentelemetry.io/collector/pdata/ptrace"

"github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl"
"github.com/SigNoz/signoz-otel-collector/processor/signoztransformprocessor/internal/common"
"github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl"
)

var (
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0c652bf

Please sign in to comment.