Skip to content

Commit

Permalink
chore: replace golang.org/x/exp/slices+maps usage to stdlib
Browse files Browse the repository at this point in the history
Signed-off-by: hainenber <[email protected]>
  • Loading branch information
hainenber committed May 29, 2024
1 parent cdcd725 commit ee034d1
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion internal/component/common/loki/client/batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ package client

import (
"fmt"
"slices"
"strconv"
"strings"
"time"

"github.com/gogo/protobuf/proto"
"github.com/klauspost/compress/snappy"
"github.com/prometheus/common/model"
"golang.org/x/exp/slices"

"github.com/grafana/loki/v3/pkg/logproto"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ package cloudflaretarget

import (
"fmt"

"golang.org/x/exp/slices"
"slices"
)

// FieldsType defines the set of fields to fetch alongside logs.
Expand Down
2 changes: 1 addition & 1 deletion internal/component/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"fmt"
"reflect"
"slices"
"strings"

"github.com/go-kit/log"
Expand All @@ -12,7 +13,6 @@ import (
"github.com/prometheus/client_golang/prometheus"
"go.opentelemetry.io/otel/trace"
"golang.org/x/exp/maps"
"golang.org/x/exp/slices"
)

// The parsedName of a component is the parts of its name ("remote.http") split
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package otelcolconvert
import (
"cmp"
"fmt"
"slices"

"go.opentelemetry.io/collector/component"
"go.opentelemetry.io/collector/service/pipelines"
"golang.org/x/exp/maps"
"golang.org/x/exp/slices"
)

// pipelineGroup groups a set of pipelines together by their telemetry type.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ package component

import (
"fmt"
"maps"
"strings"
"time"

"golang.org/x/exp/maps"

prom_config "github.com/prometheus/prometheus/config"
prom_discovery "github.com/prometheus/prometheus/discovery"
"github.com/prometheus/prometheus/storage"
Expand Down
2 changes: 1 addition & 1 deletion internal/util/testappender/collectingappender.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ package testappender

import (
"context"
"maps"
"sync"

"github.com/prometheus/prometheus/model/exemplar"
"github.com/prometheus/prometheus/model/histogram"
"github.com/prometheus/prometheus/model/labels"
"github.com/prometheus/prometheus/model/metadata"
"github.com/prometheus/prometheus/storage"
"golang.org/x/exp/maps"
)

type MetricSample struct {
Expand Down

0 comments on commit ee034d1

Please sign in to comment.