Skip to content

Commit

Permalink
Move internal data wrappers to model/internal (#3514)
Browse files Browse the repository at this point in the history
Signed-off-by: Bogdan Drutu <[email protected]>
  • Loading branch information
bogdandrutu authored Jun 29, 2021
1 parent 590f240 commit 3acff6c
Show file tree
Hide file tree
Showing 15 changed files with 13 additions and 13 deletions.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion model/otlp/json_marshaler.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (

"github.com/gogo/protobuf/jsonpb"

"go.opentelemetry.io/collector/internal"
"go.opentelemetry.io/collector/model/internal"
"go.opentelemetry.io/collector/model/pdata"
)

Expand Down
2 changes: 1 addition & 1 deletion model/otlp/json_unmarshaler.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ import (

"github.com/gogo/protobuf/jsonpb"

"go.opentelemetry.io/collector/internal"
otlpcollectorlogs "go.opentelemetry.io/collector/internal/data/protogen/collector/logs/v1"
otlpcollectormetrics "go.opentelemetry.io/collector/internal/data/protogen/collector/metrics/v1"
otlpcollectortrace "go.opentelemetry.io/collector/internal/data/protogen/collector/trace/v1"
"go.opentelemetry.io/collector/model/internal"
"go.opentelemetry.io/collector/model/pdata"
)

Expand Down
2 changes: 1 addition & 1 deletion model/otlp/pb_marshaler.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
package otlp

import (
"go.opentelemetry.io/collector/internal"
"go.opentelemetry.io/collector/model/internal"
"go.opentelemetry.io/collector/model/pdata"
)

Expand Down
2 changes: 1 addition & 1 deletion model/otlp/pb_unmarshaler.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
package otlp

import (
"go.opentelemetry.io/collector/internal"
otlpcollectorlogs "go.opentelemetry.io/collector/internal/data/protogen/collector/logs/v1"
otlpcollectormetrics "go.opentelemetry.io/collector/internal/data/protogen/collector/metrics/v1"
otlpcollectortrace "go.opentelemetry.io/collector/internal/data/protogen/collector/trace/v1"
"go.opentelemetry.io/collector/model/internal"
"go.opentelemetry.io/collector/model/pdata"
)

Expand Down
2 changes: 1 addition & 1 deletion model/otlpgrpc/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import (

"google.golang.org/grpc"

"go.opentelemetry.io/collector/internal"
otlpcollectorlogs "go.opentelemetry.io/collector/internal/data/protogen/collector/logs/v1"
"go.opentelemetry.io/collector/model/internal"
"go.opentelemetry.io/collector/model/pdata"
)

Expand Down
2 changes: 1 addition & 1 deletion model/otlpgrpc/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import (

"google.golang.org/grpc"

"go.opentelemetry.io/collector/internal"
otlpcollectormetrics "go.opentelemetry.io/collector/internal/data/protogen/collector/metrics/v1"
"go.opentelemetry.io/collector/model/internal"
"go.opentelemetry.io/collector/model/pdata"
)

Expand Down
2 changes: 1 addition & 1 deletion model/otlpgrpc/traces.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import (

"google.golang.org/grpc"

"go.opentelemetry.io/collector/internal"
otlpcollectortraces "go.opentelemetry.io/collector/internal/data/protogen/collector/trace/v1"
"go.opentelemetry.io/collector/model/internal"
"go.opentelemetry.io/collector/model/pdata"
)

Expand Down
2 changes: 1 addition & 1 deletion model/pdata/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
package pdata

import (
"go.opentelemetry.io/collector/internal"
otlpcollectorlog "go.opentelemetry.io/collector/internal/data/protogen/collector/logs/v1"
otlplogs "go.opentelemetry.io/collector/internal/data/protogen/logs/v1"
"go.opentelemetry.io/collector/model/internal"
)

// LogsMarshaler marshals pdata.Logs into bytes.
Expand Down
2 changes: 1 addition & 1 deletion model/pdata/logs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"go.opentelemetry.io/collector/internal"
otlpcollectorlog "go.opentelemetry.io/collector/internal/data/protogen/collector/logs/v1"
otlplogs "go.opentelemetry.io/collector/internal/data/protogen/logs/v1"
"go.opentelemetry.io/collector/model/internal"
)

func TestLogRecordCount(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion model/pdata/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
package pdata

import (
"go.opentelemetry.io/collector/internal"
otlpcollectormetrics "go.opentelemetry.io/collector/internal/data/protogen/collector/metrics/v1"
otlpmetrics "go.opentelemetry.io/collector/internal/data/protogen/metrics/v1"
"go.opentelemetry.io/collector/model/internal"
)

// MetricsMarshaler marshals pdata.Metrics into bytes.
Expand Down
2 changes: 1 addition & 1 deletion model/pdata/metrics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ import (
goproto "google.golang.org/protobuf/proto"
"google.golang.org/protobuf/types/known/emptypb"

"go.opentelemetry.io/collector/internal"
otlpcollectormetrics "go.opentelemetry.io/collector/internal/data/protogen/collector/metrics/v1"
otlpcommon "go.opentelemetry.io/collector/internal/data/protogen/common/v1"
otlpmetrics "go.opentelemetry.io/collector/internal/data/protogen/metrics/v1"
otlpresource "go.opentelemetry.io/collector/internal/data/protogen/resource/v1"
"go.opentelemetry.io/collector/model/internal"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion model/pdata/traces.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
package pdata

import (
"go.opentelemetry.io/collector/internal"
otlpcollectortrace "go.opentelemetry.io/collector/internal/data/protogen/collector/trace/v1"
otlptrace "go.opentelemetry.io/collector/internal/data/protogen/trace/v1"
"go.opentelemetry.io/collector/model/internal"
)

// TracesMarshaler marshals pdata.Traces into bytes.
Expand Down
2 changes: 1 addition & 1 deletion model/pdata/traces_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ import (
goproto "google.golang.org/protobuf/proto"
"google.golang.org/protobuf/types/known/emptypb"

"go.opentelemetry.io/collector/internal"
otlpcollectortrace "go.opentelemetry.io/collector/internal/data/protogen/collector/trace/v1"
otlptrace "go.opentelemetry.io/collector/internal/data/protogen/trace/v1"
"go.opentelemetry.io/collector/model/internal"
)

func TestSpanCount(t *testing.T) {
Expand Down

0 comments on commit 3acff6c

Please sign in to comment.