Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
edeNFed committed Nov 22, 2023
1 parent 0ef62ec commit a2bc37b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions instrumentation.go
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,9 @@ func WithSampler(sampler trace.Sampler) InstrumentationOption {
})
}

// WithResourceAttributes returns an [InstrumentationOption] that will configure
// an [Instrumentation] to use the provided attributes as OpenTelemetry resource
// attributes.
func WithResourceAttributes(attrs ...attribute.KeyValue) InstrumentationOption {
return fnOpt(func(_ context.Context, c instConfig) (instConfig, error) {
c.additionalResAttrs = append(c.additionalResAttrs, attrs...)
Expand Down

0 comments on commit a2bc37b

Please sign in to comment.