Skip to content

Commit

Permalink
updating otel version in all opsramp components
Browse files Browse the repository at this point in the history
  • Loading branch information
lokesh.balla committed Aug 11, 2024
1 parent 0990c00 commit c8a2159
Show file tree
Hide file tree
Showing 18 changed files with 312 additions and 2,367 deletions.
6 changes: 3 additions & 3 deletions exporter/opsrampotlpexporter/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func createDefaultConfig() component.Config {

func createTracesExporter(
ctx context.Context,
set exporter.CreateSettings,
set exporter.Settings,
cfg component.Config,
) (exporter.Traces, error) {
oce, err := newExporter(cfg, set)
Expand All @@ -78,7 +78,7 @@ func createTracesExporter(

func createMetricsExporter(
ctx context.Context,
set exporter.CreateSettings,
set exporter.Settings,
cfg component.Config,
) (exporter.Metrics, error) {
oce, err := newExporter(cfg, set)
Expand All @@ -102,7 +102,7 @@ func createMetricsExporter(

func createLogsExporter(
ctx context.Context,
set exporter.CreateSettings,
set exporter.Settings,
cfg component.Config,
) (exporter.Logs, error) {
oce, err := newExporter(cfg, set)
Expand Down
6 changes: 3 additions & 3 deletions exporter/opsrampotlpexporter/factory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func TestCreateMetricsExporter(t *testing.T) {
ClientSecret: "Da2achZqvHF7tKDaSP3FCkHE2PKcY6twRxwZEnEYQHc5GADgHy5VZDBxdeKhNbrw",
}

set := exportertest.NewNopCreateSettings()
set := exportertest.NewNopSettings()
oexp, err := factory.CreateMetricsExporter(context.Background(), set, cfg)
require.Nil(t, err)
require.NotNil(t, oexp)
Expand Down Expand Up @@ -192,7 +192,7 @@ func TestCreateTracesExporter(t *testing.T) {
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
factory := NewFactory()
set := exportertest.NewNopCreateSettings()
set := exportertest.NewNopSettings()
consumer, err := factory.CreateTracesExporter(context.Background(), set, &tt.config)
if tt.mustFailOnCreate {
assert.NotNil(t, err)
Expand Down Expand Up @@ -221,7 +221,7 @@ func TestCreateLogsExporter(t *testing.T) {
cfg := factory.CreateDefaultConfig().(*Config)
cfg.ClientConfig.Endpoint = testutil.GetAvailableLocalAddress(t)

set := exportertest.NewNopCreateSettings()
set := exportertest.NewNopSettings()
oexp, err := factory.CreateLogsExporter(context.Background(), set, cfg)
require.Nil(t, err)
require.NotNil(t, oexp)
Expand Down
32 changes: 16 additions & 16 deletions exporter/opsrampotlpexporter/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ require (
github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal v0.104.0
github.com/opsramp/go-proxy-dialer v0.0.0-20240313152735-64bb1ce65640
github.com/stretchr/testify v1.9.0
go.opentelemetry.io/collector/config/configauth v0.104.0
go.opentelemetry.io/collector/config/configcompression v1.11.0
go.opentelemetry.io/collector/config/configgrpc v0.104.0
go.opentelemetry.io/collector/config/configopaque v1.11.0
go.opentelemetry.io/collector/config/configretry v1.11.0
go.opentelemetry.io/collector/config/configtls v0.104.0
go.opentelemetry.io/collector/config/configauth v0.106.1
go.opentelemetry.io/collector/config/configcompression v1.12.0
go.opentelemetry.io/collector/config/configgrpc v0.106.1
go.opentelemetry.io/collector/config/configopaque v1.12.0
go.opentelemetry.io/collector/config/configretry v1.12.0
go.opentelemetry.io/collector/config/configtls v1.12.0
go.opentelemetry.io/collector/confmap v0.106.1
go.opentelemetry.io/collector/consumer v0.106.1
go.opentelemetry.io/collector/exporter v0.104.0
go.opentelemetry.io/collector/exporter v0.106.1
go.opentelemetry.io/collector/otelcol/otelcoltest v0.104.0
go.opentelemetry.io/collector/pdata v1.12.0
go.uber.org/goleak v1.3.0
google.golang.org/genproto/googleapis/rpc v0.0.0-20240711142825-46eb208f015d
google.golang.org/genproto/googleapis/rpc v0.0.0-20240808171019-573a1156607a
google.golang.org/grpc v1.65.0
google.golang.org/protobuf v1.34.2
)
Expand All @@ -35,9 +35,9 @@ require (
github.com/shoenig/go-m1cpu v0.1.6 // indirect
go.opentelemetry.io/collector v0.106.1 // indirect
go.opentelemetry.io/collector/client v0.106.1 // indirect
go.opentelemetry.io/collector/config/confignet v0.104.0 // indirect
go.opentelemetry.io/collector/config/confignet v0.106.1 // indirect
go.opentelemetry.io/collector/config/configtelemetry v0.106.1 // indirect
go.opentelemetry.io/collector/config/internal v0.104.0 // indirect
go.opentelemetry.io/collector/config/internal v0.106.1 // indirect
go.opentelemetry.io/collector/confmap/converter/expandconverter v0.104.0 // indirect
go.opentelemetry.io/collector/confmap/provider/envprovider v0.104.0 // indirect
go.opentelemetry.io/collector/confmap/provider/fileprovider v0.104.0 // indirect
Expand All @@ -46,16 +46,16 @@ require (
go.opentelemetry.io/collector/connector v0.104.0 // indirect
go.opentelemetry.io/collector/consumer/consumerprofiles v0.106.1 // indirect
go.opentelemetry.io/collector/consumer/consumertest v0.106.1 // indirect
go.opentelemetry.io/collector/extension v0.104.0 // indirect
go.opentelemetry.io/collector/extension/auth v0.104.0 // indirect
go.opentelemetry.io/collector/extension v0.106.1 // indirect
go.opentelemetry.io/collector/extension/auth v0.106.1 // indirect
go.opentelemetry.io/collector/featuregate v1.12.0 // indirect
go.opentelemetry.io/collector/internal/featuregates v0.0.0-20240715092012-b3699f2b65fb // indirect
go.opentelemetry.io/collector/internal/globalgates v0.106.1 // indirect
go.opentelemetry.io/collector/otelcol v0.104.0 // indirect
go.opentelemetry.io/collector/pdata/pprofile v0.106.1 // indirect
go.opentelemetry.io/collector/pdata/testdata v0.106.1 // indirect
go.opentelemetry.io/collector/processor v0.104.0 // indirect
go.opentelemetry.io/collector/receiver v0.104.0 // indirect
go.opentelemetry.io/collector/receiver v0.106.1 // indirect
go.opentelemetry.io/collector/semconv v0.104.0 // indirect
go.opentelemetry.io/collector/service v0.104.0 // indirect
go.opentelemetry.io/contrib/config v0.8.0 // indirect
Expand Down Expand Up @@ -121,8 +121,8 @@ require (
go.opentelemetry.io/otel/trace v1.28.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
go.uber.org/zap v1.27.0 // indirect
golang.org/x/net v0.27.0
golang.org/x/sys v0.22.0 // indirect
golang.org/x/text v0.16.0 // indirect
golang.org/x/net v0.28.0
golang.org/x/sys v0.24.0 // indirect
golang.org/x/text v0.17.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
64 changes: 32 additions & 32 deletions exporter/opsrampotlpexporter/go.sum

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

2 changes: 1 addition & 1 deletion exporter/opsrampotlpexporter/otlp.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ type opsrampOTLPExporter struct {

// Crete new exporter and start it. The exporter will begin connecting but
// this function may return before the connection is established.
func newExporter(cfg component.Config, set exporter.CreateSettings) (*opsrampOTLPExporter, error) {
func newExporter(cfg component.Config, set exporter.Settings) (*opsrampOTLPExporter, error) {
oCfg := cfg.(*Config)

accessToken, err := getAuthToken(oCfg.Security)
Expand Down
Loading

0 comments on commit c8a2159

Please sign in to comment.