Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow dropping items from correlations + docs + cleanups #454

Merged
merged 12 commits into from
Feb 3, 2020

Conversation

krnowak
Copy link
Member

@krnowak krnowak commented Jan 30, 2020

This PR does several things in correlations package:

Copy link
Contributor

@rghetia rghetia left a comment

Choose a reason for hiding this comment

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

LGTM except for some minor nits.

api/correlation/context.go Outdated Show resolved Hide resolved
api/correlation/doc.go Outdated Show resolved Hide resolved
api/correlation/map.go Outdated Show resolved Hide resolved
api/correlation/map_test.go Outdated Show resolved Hide resolved
@krnowak
Copy link
Member Author

krnowak commented Feb 3, 2020

Rebased and updated.

api/correlation/map.go Outdated Show resolved Hide resolved
api/correlation/map.go Show resolved Hide resolved
@rghetia
Copy link
Contributor

rghetia commented Feb 3, 2020

@krnowak please rebase one more time. I'll merge this before any other PR ;-)

Entry used to contain stuff like TTL, but right now the notion of
entry was dropped from the spec.
The map will be immutable, so spend some more time to ensure that we
will not unnecessarily waste some memory on a basically read-only map.
This is to follow the spec. Before this change it was possible in an
awkward way by using Foreach to gather and filter the key-value pairs,
and then calling NewMap with a MultiKV MapUpdate.
This is an implementation detail that can't be tested in a black-box
manner.
@krnowak
Copy link
Member Author

krnowak commented Feb 3, 2020

@rghetia : Rebased. :)

@rghetia rghetia merged commit 574463c into open-telemetry:master Feb 3, 2020
@krnowak krnowak deleted the krnowak/correlation branch February 3, 2020 21:16
@MrAlias MrAlias mentioned this pull request Feb 11, 2020
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants