Skip to content

Commit

Permalink
Updated NewProtoMarshaler comments to inidicate return interface
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 17, 2022
1 parent e9ddacb commit 42e8441
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pdata/plog/pb.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
otlplogs "go.opentelemetry.io/collector/pdata/internal/data/protogen/logs/v1"
)

// NewProtoMarshaler returns a Marshaler.
// NewProtoMarshaler returns a MarshalSizer.
// Marshals to OTLP binary protobuf bytes and calculates the size of the marshaled Logs.
func NewProtoMarshaler() MarshalSizer {
return newPbMarshaler()
Expand Down
2 changes: 1 addition & 1 deletion pdata/pmetric/pb.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
otlpmetrics "go.opentelemetry.io/collector/pdata/internal/data/protogen/metrics/v1"
)

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

0 comments on commit 42e8441

Please sign in to comment.