Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

Support ForeachBaggageItem #85

Merged
merged 2 commits into from
Jun 30, 2016
Merged

Support ForeachBaggageItem #85

merged 2 commits into from
Jun 30, 2016

Conversation

yurishkuro
Copy link
Member

assertEqual(t, "my-awesome-library", rawSpan.Tags["component"])
assertEqual(t, uint16(1), rawSpan.Tags["sampling.priority"])
assertEqual(t, true, rawSpan.Tags["error"])
}

// noopTracer and noopSpan with span tags implemented
type noopTracer struct{}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh good

@bhs
Copy link
Contributor

bhs commented Jun 30, 2016

Basically LGTM. Would you be up for sending out the trivial change to support this in basictracer-go just to keep it up to date? If you don't have time I can do it.

@@ -87,6 +87,14 @@ type Span interface {
// See the `SetBaggageItem` notes about `restrictedKey`.
BaggageItem(restrictedKey string) string

// ForeachBaggageItem allows reading all baggage items stored in the span.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worth documenting whether ForeachBaggageItem has a stable iteration order, or if the order can differ between consecutive calls of ForeachBaggageItem?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bhs
Copy link
Contributor

bhs commented Jul 1, 2016

LGTM, thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants