Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Update LRU usage#1164

Merged
rghetia merged 1 commit intocensus-instrumentation:masterfrom
joshuaseaton:misc
Sep 4, 2019
Merged

Update LRU usage#1164
rghetia merged 1 commit intocensus-instrumentation:masterfrom
joshuaseaton:misc

Conversation

@joshuaseaton
Copy link
Copy Markdown
Contributor

This change updates the LRU cache implementation used in the trace
package, replacing github.com/hashicorp/golang-lru with
github.com/golang/groupcache, while preserving the manner in which trace
abstractions make use of the data structure.

The reason for this change is that github.com/hashicorp/golang-lru has a
Mozilla license, which is different from that of
github.com/census-instrumentation/opencensus-go. The difference (and the
mere presence of the former) makes it more difficult for open-source
projects (e.g., https://fuchsia.dev) to vendor the latter.

@joshuaseaton joshuaseaton requested review from a team, rakyll and rghetia as code owners September 4, 2019 14:10
@joshuaseaton
Copy link
Copy Markdown
Contributor Author

I'm seeing continuous-integration/appveyor/pr checks fail with Windows runtime package errors. Is this a known issue?

@rghetia
Copy link
Copy Markdown
Contributor

rghetia commented Sep 4, 2019

I'm seeing continuous-integration/appveyor/pr checks fail with Windows runtime package errors. Is this a known issue?

yes, it is a known issue.

This change updates the LRU cache implementation used in the trace
package, replacing github.com/hashicorp/golang-lru with
github.com/golang/groupcache, while preserving the manner in which trace
abstractions make use of the data structure.

The reason for this change is that github.com/hashicorp/golang-lru has a
Mozilla license, which is different from that of
github.com/census-instrumentation/opencensus-go. The difference (and the
mere presence of the former) makes it more difficult for open-source
projects (e.g., https://fuchsia.dev) to vendor the latter.
Copy link
Copy Markdown
Contributor

@songy23 songy23 left a comment

Choose a reason for hiding this comment

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

LGTM

@rghetia rghetia merged commit 59d1ce3 into census-instrumentation:master Sep 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants