Skip to content

Commit c6ca733

Browse files
authored
Hide unnecessary public struct in obsreport (#3353)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
1 parent 7443c0d commit c6ca733

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

obsreport/obsreport_receiver.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@ import (
2727
"go.opentelemetry.io/collector/internal/obsreportconfig/obsmetrics"
2828
)
2929

30-
// StartReceiveOptions has the options related to starting a receive operation.
31-
type StartReceiveOptions struct {
30+
// startReceiveOptions has the options related to starting a receive operation.
31+
type startReceiveOptions struct {
3232
// LongLivedCtx when true indicates that the context passed in the call
3333
// outlives the individual receive operation. See WithLongLivedCtx() for
3434
// more information.
3535
LongLivedCtx bool
3636
}
3737

38-
// StartReceiveOption function applues changes to StartReceiveOptions.
39-
type StartReceiveOption func(*StartReceiveOptions)
38+
// StartReceiveOption function applues changes to startReceiveOptions.
39+
type StartReceiveOption func(*startReceiveOptions)
4040

4141
// WithLongLivedCtx indicates that the context passed in the call outlives the
4242
// receive operation at hand. Typically the long lived context is associated
@@ -74,7 +74,7 @@ type StartReceiveOption func(*StartReceiveOptions)
7474
// }
7575
//
7676
func WithLongLivedCtx() StartReceiveOption {
77-
return func(opts *StartReceiveOptions) {
77+
return func(opts *startReceiveOptions) {
7878
opts.LongLivedCtx = true
7979
}
8080
}
@@ -176,7 +176,7 @@ func (rec *Receiver) startOp(
176176
operationSuffix string,
177177
opt ...StartReceiveOption,
178178
) context.Context {
179-
var opts StartReceiveOptions
179+
var opts startReceiveOptions
180180
for _, o := range opt {
181181
o(&opts)
182182
}

0 commit comments

Comments
 (0)