Skip to content

Commit

Permalink
Fix doc type
Browse files Browse the repository at this point in the history
  • Loading branch information
emcfarlane committed Dec 13, 2023
1 parent 5b8c7b7 commit e61acb0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions attributes.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ import (
semconv "go.opentelemetry.io/otel/semconv/v1.21.0"
)

// AttributeFilter is used to filter attributes out based on the [Request] and [attribute.KeyValue].
// If the filter returns true the attribute will be kept else it will be removed.
// AttributeFilter must be safe to call concurrently.
// AttributeFilter is used to filter attributes out based on the [connect.Spec]
// and [attribute.KeyValue]. If the filter returns true the attribute will be
// kept else it will be removed. AttributeFilter must be safe to call concurrently.
type AttributeFilter func(connect.Spec, attribute.KeyValue) bool

func (filter AttributeFilter) filter(spec connect.Spec, values ...attribute.KeyValue) []attribute.KeyValue {
Expand Down

0 comments on commit e61acb0

Please sign in to comment.