Skip to content

Commit 2796fe0

Browse files
committedOct 4, 2022
- typo fix
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
1 parent 2bfd693 commit 2796fe0

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed
 

‎nethttp_request_adapter.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ func (a *NetHttpRequestAdapter) getRequestFromRequestInformation(ctx context.Con
231231
attribute.String("http.host", uri.Host),
232232
)
233233

234-
if a.observabilityOptions.IncludeEUIIAttibutes {
234+
if a.observabilityOptions.IncludeEUIIAttributes {
235235
spanForAttributes.SetAttributes(attribute.String("http.uri", uri.String()))
236236
}
237237

‎observability_options.go

+9-9
Original file line numberDiff line numberDiff line change
@@ -9,30 +9,30 @@ import (
99
// ObservabilityOptions holds the tracing, metrics and logging configuration for the request adapter
1010
type ObservabilityOptions struct {
1111
// Whether to include attributes which could contains EUII information like URLs
12-
IncludeEUIIAttibutes bool
12+
IncludeEUIIAttributes bool
1313
}
1414

1515
// GetTracerInstrumentationName returns the observability name to use for the tracer
1616
func (o *ObservabilityOptions) GetTracerInstrumentationName() string {
1717
return "github.com/microsoft/kiota-http-go"
1818
}
1919

20-
// GetIncludeEUIIAttibutes returns whether to include attributes which could contains EUII information
21-
func (o *ObservabilityOptions) GetIncludeEUIIAttibutes() bool {
22-
return o.IncludeEUIIAttibutes
20+
// GetIncludeEUIIAttributes returns whether to include attributes which could contains EUII information
21+
func (o *ObservabilityOptions) GetIncludeEUIIAttributes() bool {
22+
return o.IncludeEUIIAttributes
2323
}
2424

25-
// SetIncludeEUIIAttibutes set whether to include attributes which could contains EUII information
26-
func (o *ObservabilityOptions) SetIncludeEUIIAttibutes(value bool) {
27-
o.IncludeEUIIAttibutes = value
25+
// SetIncludeEUIIAttributes set whether to include attributes which could contains EUII information
26+
func (o *ObservabilityOptions) SetIncludeEUIIAttributes(value bool) {
27+
o.IncludeEUIIAttributes = value
2828
}
2929

3030
// ObservabilityOptionsInt defines the options contract for handlers
3131
type ObservabilityOptionsInt interface {
3232
abs.RequestOption
3333
GetTracerInstrumentationName() string
34-
GetIncludeEUIIAttibutes() bool
35-
SetIncludeEUIIAttibutes(value bool)
34+
GetIncludeEUIIAttributes() bool
35+
SetIncludeEUIIAttributes(value bool)
3636
}
3737

3838
func (*ObservabilityOptions) GetKey() abs.RequestOptionKey {

0 commit comments

Comments
 (0)
Please sign in to comment.