Skip to content

Commit

Permalink
(otelarrowreceiver): remove obsreporttest package (#161)
Browse files Browse the repository at this point in the history
Remove a deprecated package that is removed completely from collector
`v0.97.0`
(open-telemetry/opentelemetry-collector#9724).
This seems to be blocking a collector upgrade.

Attempt to upgrade collector to v0.97.0 results in 
```
go: found github.com/open-telemetry/otel-arrow/collector/receiver/filereceiver in github.com/open-telemetry/otel-arrow/collector/receiver/filereceiver v0.18.0
go: found github.com/open-telemetry/otel-arrow/collector/receiver/otelarrowreceiver in github.com/open-telemetry/otel-arrow/collector/receiver/otelarrowreceiver v0.18.0
go: finding module for package go.opentelemetry.io/collector/obsreport/obsreporttest
go: github.com/open-telemetry/otel-arrow/collector/cmd/otelarrowcol imports
        github.com/open-telemetry/otel-arrow/collector/receiver/otelarrowreceiver tested by
        github.com/open-telemetry/otel-arrow/collector/receiver/otelarrowreceiver.test imports
        go.opentelemetry.io/collector/obsreport/obsreporttest: module go.opentelemetry.io/collector@latest found (v0.97.0), but does not contain package go.opentelemetry.io/collector/obsreport/obsreporttest
```
  • Loading branch information
moh-osman3 authored Mar 26, 2024
1 parent 795302c commit f0b76fa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions collector/receiver/otelarrowreceiver/otelarrow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ import (
"go.opentelemetry.io/collector/consumer"
"go.opentelemetry.io/collector/consumer/consumertest"
"go.opentelemetry.io/collector/extension/auth"
"go.opentelemetry.io/collector/obsreport/obsreporttest"
"go.opentelemetry.io/collector/pdata/pmetric"
"go.opentelemetry.io/collector/pdata/ptrace"
"go.opentelemetry.io/collector/pdata/ptrace/ptraceotlp"
Expand Down Expand Up @@ -176,7 +175,7 @@ func TestOTLPReceiverGRPCTracesIngestTest(t *testing.T) {
addr := testutil.GetAvailableLocalAddress(t)
td := testdata.GenerateTraces(1)

tt, err := obsreporttest.SetupTelemetry(testReceiverID)
tt, err := componenttest.SetupTelemetry(testReceiverID)
require.NoError(t, err)
t.Cleanup(func() { require.NoError(t, tt.Shutdown(context.Background())) })

Expand Down

0 comments on commit f0b76fa

Please sign in to comment.