Skip to content

Commit 94bc64a

Browse files
committed
chore(otlp): use buf.build/gen/go/redpandadata/otel/protocolbuffers/go/redpanda/otel/v1
1 parent 6a7502e commit 94bc64a

File tree

17 files changed

+30
-23
lines changed

17 files changed

+30
-23
lines changed

go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ ignore (
1919
require (
2020
buf.build/gen/go/bufbuild/reflect/connectrpc/go v1.19.1-20240117202343-bf8f65e8876c.2
2121
buf.build/gen/go/bufbuild/reflect/protocolbuffers/go v1.36.10-20240117202343-bf8f65e8876c.1
22+
buf.build/gen/go/redpandadata/otel/protocolbuffers/go v1.36.11-20251216164002-58c749b888d8.1
2223
buf.build/go/hyperpb v0.1.3
2324
cloud.google.com/go/aiplatform v1.104.0
2425
cloud.google.com/go/bigquery v1.71.0

go.sum

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ buf.build/gen/go/bufbuild/reflect/connectrpc/go v1.19.1-20240117202343-bf8f65e88
66
buf.build/gen/go/bufbuild/reflect/connectrpc/go v1.19.1-20240117202343-bf8f65e8876c.2/go.mod h1:ZGK0ces5GRXffhjOIcqSMOVV3Y3rgIwnvMJfZ/JltTg=
77
buf.build/gen/go/bufbuild/reflect/protocolbuffers/go v1.36.10-20240117202343-bf8f65e8876c.1 h1:Z6b/hsRyrX22pN5cI7n6mDwhj38smtNfV21fhj+4gPk=
88
buf.build/gen/go/bufbuild/reflect/protocolbuffers/go v1.36.10-20240117202343-bf8f65e8876c.1/go.mod h1:dDSnTB/bSMAA9z59+0E2JWab9LyGnb+spW8nrVeEAqA=
9+
buf.build/gen/go/redpandadata/otel/protocolbuffers/go v1.36.11-20251216164002-58c749b888d8.1 h1:4jqc94IBC9Ea9GaMbmgfhczXZzCkA4ZWfon3/uI3KV0=
10+
buf.build/gen/go/redpandadata/otel/protocolbuffers/go v1.36.11-20251216164002-58c749b888d8.1/go.mod h1:akvBCH3f6fL10sDu4NppgjHrQITLe1m5YWLt/yiLEKI=
911
buf.build/go/hyperpb v0.1.3 h1:wiw2F7POvAe2VA2kkB0TAsFwj91lXbFrKM41D3ZgU1w=
1012
buf.build/go/hyperpb v0.1.3/go.mod h1:IHXAM5qnS0/Fsnd7/HGDghFNvUET646WoHmq1FDZXIE=
1113
buf.build/go/protovalidate v0.14.0 h1:kr/rC/no+DtRyYX+8KXLDxNnI1rINz0imk5K44ZpZ3A=
@@ -2024,8 +2026,7 @@ github.com/redpanda-data/common-go/authz v0.2.0 h1:KYBu/+eIdFlaR8qJXn5I52AJ9Zo4K
20242026
github.com/redpanda-data/common-go/authz v0.2.0/go.mod h1:x1C0YQ5NhCg2uj09Oz0bwMwDTkazK8lwxfZshE5Lf3s=
20252027
github.com/redpanda-data/common-go/license v0.0.0-20260109170727-1dd9f5d22ee1 h1:Qr6sK5Qmznbwtk4AKgd6086RM+uA/Z4lO/r2aCDxx+c=
20262028
github.com/redpanda-data/common-go/license v0.0.0-20260109170727-1dd9f5d22ee1/go.mod h1:F1fp8xVNS2UwWFosOjJ9+5jaEZnXSjB9AdHk2R9XlpI=
2027-
github.com/redpanda-data/common-go/redpanda-otel-exporter v0.3.1-0.20260120073450-935d3dd3d6c1 h1:jQLTLBWJqOyMAZi9YFx8nsgZ7fOq+DYZsSF7zM+hb7o=
2028-
github.com/redpanda-data/common-go/redpanda-otel-exporter v0.3.1-0.20260120073450-935d3dd3d6c1/go.mod h1:kzFoUX1Abv6ccz8wuTUUpmBlGwQcwNjSxYCuDLA4IyQ=
2029+
github.com/redpanda-data/common-go/redpanda-otel-exporter v0.4.0 h1:lyLHsAMI4Ns8CqNDi2zuaslSNO5BHoMt+hvyoOKieII=
20292030
github.com/redpanda-data/common-go/redpanda-otel-exporter v0.4.0/go.mod h1:kzFoUX1Abv6ccz8wuTUUpmBlGwQcwNjSxYCuDLA4IyQ=
20302031
github.com/redpanda-data/common-go/secrets v0.1.4 h1:CGp3KolGnjcJvIafTwf7Hlj5ztLOJCjgkegRu7IAkSw=
20312032
github.com/redpanda-data/common-go/secrets v0.1.4/go.mod h1:WjUU/5saSXwItZx6veFOGbQZUgPQz4MQ65z22y0Ky84=

internal/impl/otlp/attr_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
package otlp_test
1313

1414
import (
15-
pb "github.com/redpanda-data/common-go/redpanda-otel-exporter/proto"
15+
pb "buf.build/gen/go/redpandadata/otel/protocolbuffers/go/redpanda/otel/v1"
1616
)
1717

1818
func attrMap(attrs []*pb.KeyValue) map[string]*pb.AnyValue {

internal/impl/otlp/input_grpc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626
"google.golang.org/grpc/metadata"
2727
"google.golang.org/grpc/status"
2828

29-
pb "github.com/redpanda-data/common-go/redpanda-otel-exporter/proto"
29+
pb "buf.build/gen/go/redpandadata/otel/protocolbuffers/go/redpanda/otel/v1"
3030

3131
"github.com/redpanda-data/benthos/v4/public/service"
3232
"github.com/redpanda-data/benthos/v4/public/utils/netutil"

internal/impl/otlp/input_http.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ import (
2525
"go.opentelemetry.io/collector/pdata/pmetric/pmetricotlp"
2626
"go.opentelemetry.io/collector/pdata/ptrace/ptraceotlp"
2727

28+
pb "buf.build/gen/go/redpandadata/otel/protocolbuffers/go/redpanda/otel/v1"
29+
2830
"github.com/redpanda-data/benthos/v4/public/service"
2931
"github.com/redpanda-data/benthos/v4/public/utils/netutil"
30-
pb "github.com/redpanda-data/common-go/redpanda-otel-exporter/proto"
3132
"github.com/redpanda-data/connect/v4/internal/gateway"
3233
"github.com/redpanda-data/connect/v4/internal/impl/otlp/otlpconv"
3334
"github.com/redpanda-data/connect/v4/internal/license"

internal/impl/otlp/input_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@ import (
3737
"go.opentelemetry.io/otel/trace"
3838
"google.golang.org/protobuf/proto"
3939

40+
pb "buf.build/gen/go/redpandadata/otel/protocolbuffers/go/redpanda/otel/v1"
41+
4042
"github.com/redpanda-data/benthos/v4/public/service"
4143
"github.com/redpanda-data/benthos/v4/public/service/integration"
42-
pb "github.com/redpanda-data/common-go/redpanda-otel-exporter/proto"
4344
"github.com/redpanda-data/connect/v4/internal/impl/otlp"
4445
"github.com/redpanda-data/connect/v4/internal/license"
4546
)

internal/impl/otlp/otlpconv/conv.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121

2222
"go.opentelemetry.io/collector/pdata/pcommon"
2323

24-
pb "github.com/redpanda-data/common-go/redpanda-otel-exporter/proto"
24+
pb "buf.build/gen/go/redpandadata/otel/protocolbuffers/go/redpanda/otel/v1"
2525
)
2626

2727
// int64ToUint64 safely converts an int64 timestamp to uint64.

internal/impl/otlp/otlpconv/conv_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
"github.com/stretchr/testify/require"
1919
"go.opentelemetry.io/collector/pdata/pcommon"
2020

21-
pb "github.com/redpanda-data/common-go/redpanda-otel-exporter/proto"
21+
pb "buf.build/gen/go/redpandadata/otel/protocolbuffers/go/redpanda/otel/v1"
2222
)
2323

2424
func TestAnyValueRoundtrip(t *testing.T) {

internal/impl/otlp/otlpconv/export_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
"go.opentelemetry.io/collector/pdata/pmetric/pmetricotlp"
1717
"go.opentelemetry.io/collector/pdata/ptrace/ptraceotlp"
1818

19-
pb "github.com/redpanda-data/common-go/redpanda-otel-exporter/proto"
19+
pb "buf.build/gen/go/redpandadata/otel/protocolbuffers/go/redpanda/otel/v1"
2020
)
2121

2222
// LogsToRedpanda converts OTLP log export request to individual Redpanda log

internal/impl/otlp/otlpconv/log.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
"go.opentelemetry.io/collector/pdata/plog"
1717
"go.opentelemetry.io/collector/pdata/plog/plogotlp"
1818

19-
pb "github.com/redpanda-data/common-go/redpanda-otel-exporter/proto"
19+
pb "buf.build/gen/go/redpandadata/otel/protocolbuffers/go/redpanda/otel/v1"
2020
)
2121

2222
// LogsCount counts the total number of log records in the request.

0 commit comments

Comments
 (0)