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

Update LRU usage #1164

Merged
merged 1 commit into from
Sep 4, 2019
Merged

Update LRU usage #1164

merged 1 commit into from
Sep 4, 2019

Conversation

joshuaseaton
Copy link
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 rakyll, rghetia and a team as code owners September 4, 2019 14:10
@joshuaseaton
Copy link
Contributor Author

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

@rghetia
Copy link
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.

opencensus.go Outdated Show resolved Hide resolved
trace/lrumap.go Outdated Show resolved Hide resolved
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
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