Skip to content

Commit

Permalink
fix: Fix a typo from PR #1006 (#1007)
Browse files Browse the repository at this point in the history
## Which problem is this PR solving?

Small typo in the sample wording when reviewing #1006 (but it had
already been merged).

## Short description of the changes

Moves one word into the correct place.
  • Loading branch information
rkhoriander authored Feb 23, 2024
1 parent bc45a09 commit ecef721
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sample/rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ func ruleMatchesSpanInTrace(trace *types.Trace, rule *config.RulesBasedSamplerRu

// extractValueFromSpan extracts the `value` found at the first of the given condition's fields found on the input `span`.
// It returns the extracted `value` and an `exists` boolean indicating whether any of the condition's fields are present
// on input the span.
// on the input span.
func extractValueFromSpan(trace *types.Trace, span *types.Span, condition *config.RulesBasedSamplerCondition, checkNestedFields bool) (value interface{}, exists bool) {
// If the condition is a descendant count, we extract the count from trace and return it.
if f, ok := condition.GetComputedField(); ok {
Expand Down

0 comments on commit ecef721

Please sign in to comment.