Skip to content

Commit

Permalink
Corrected interface name
Browse files Browse the repository at this point in the history
Signed-off-by: Corbin Phelps <[email protected]>
  • Loading branch information
Corbin Phelps committed Aug 18, 2022
1 parent 7533abe commit e953488
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

### 💡 Enhancements 💡

- Added `MarshalSizer` interface to `ptrace`, `plog`, and `pmetric` packages. `NewProtoMarshaler` now returns a `MarshalSizer` (#5929)
- Added `MarshalerSizer` interface to `ptrace`, `plog`, and `pmetric` packages. `NewProtoMarshaler` now returns a `MarshalerSizer` (#5929)
- Add support to unmarshalls bytes into pmetric.Metrics with `jsoniter` in jsonUnmarshaler(#5433)
- Add httpprovider to allow loading config files stored in HTTP (#5810)
- Added `service.telemetry.traces.propagators` configuration to set propagators for collector's internal spans. (#5572)
Expand Down
4 changes: 2 additions & 2 deletions pdata/plog/encoding.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

package plog // import "go.opentelemetry.io/collector/pdata/plog"

// MarshalSizer is the interface that groups the basic Marshal and Size methods
type MarshalSizer interface {
// MarshalerSizer is the interface that groups the basic Marshal and Size methods
type MarshalerSizer interface {
Marshaler
Sizer
}
Expand Down
4 changes: 2 additions & 2 deletions pdata/plog/pb.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ import (
otlplogs "go.opentelemetry.io/collector/pdata/internal/data/protogen/logs/v1"
)

// NewProtoMarshaler returns a MarshalSizer.
// NewProtoMarshaler returns a MarshalerSizer.
// Marshals to OTLP binary protobuf bytes and calculates the size of the marshaled Logs.
func NewProtoMarshaler() MarshalSizer {
func NewProtoMarshaler() MarshalerSizer {
return newPbMarshaler()
}

Expand Down
4 changes: 2 additions & 2 deletions pdata/pmetric/encoding.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

package pmetric // import "go.opentelemetry.io/collector/pdata/pmetric"

// MarshalSizer is the interface that groups the basic Marshal and Size methods
type MarshalSizer interface {
// MarshalerSizer is the interface that groups the basic Marshal and Size methods
type MarshalerSizer interface {
Marshaler
Sizer
}
Expand Down
4 changes: 2 additions & 2 deletions pdata/pmetric/pb.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ import (
otlpmetrics "go.opentelemetry.io/collector/pdata/internal/data/protogen/metrics/v1"
)

// NewProtoMarshaler returns a MarshalSizer.
// NewProtoMarshaler returns a MarshalerSizer.
// Marshals to OTLP binary protobuf bytes and calculates the size of the marshaled Metrics.
func NewProtoMarshaler() MarshalSizer {
func NewProtoMarshaler() MarshalerSizer {
return newPbMarshaler()
}

Expand Down
4 changes: 2 additions & 2 deletions pdata/ptrace/encoding.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

package ptrace // import "go.opentelemetry.io/collector/pdata/ptrace"

// MarshalSizer is the interface that groups the basic Marshal and Size methods
type MarshalSizer interface {
// MarshalerSizer is the interface that groups the basic Marshal and Size methods
type MarshalerSizer interface {
Marshaler
Sizer
}
Expand Down
4 changes: 2 additions & 2 deletions pdata/ptrace/pb.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ import (
otlptrace "go.opentelemetry.io/collector/pdata/internal/data/protogen/trace/v1"
)

// NewProtoMarshaler returns a MarshalSizer.
// NewProtoMarshaler returns a MarshalerSizer.
// Marshals to OTLP binary protobuf bytes and calculates the size of the marshaled Traces.
func NewProtoMarshaler() MarshalSizer {
func NewProtoMarshaler() MarshalerSizer {
return newPbMarshaler()
}

Expand Down

0 comments on commit e953488

Please sign in to comment.