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

Move version accessor to the opencensus package #781

Merged
merged 2 commits into from
Jun 6, 2018

Conversation

rakyll
Copy link
Contributor

@rakyll rakyll commented Jun 6, 2018

Version returns the OpenCensus library version. It is not an exporter utility.
If it is an exporter utility, it shouldnt be in exportutil. In Go, utility packages
are organized under an existing package.

For example, io/iotuil or net/http/httputil.

This API should not yet be picked by anyone else other than the exporters.

Fixes #779.

Version returns the OpenCensus library version. It is not an exporter utility.
If it is an exporter utility, it shouldnt be in exportutil. In Go, utility packages
are organized under an existing package.

For example, io/iotuil or net/http/httputil.

Fixes census-instrumentation#779.

// Version is the current release version of OpenCensus in use. It is made
// available for exporters to include in User-Agent-like metadata.
var Version = "0.13.0"
Copy link
Contributor

Choose a reason for hiding this comment

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

This is already in a released version unfortunately, we need to deprecate and remove according to the policy.

@semistrict
Copy link
Contributor

Even though it is only used by the Stackdriver exporter, both are at released versions so it requires a coordinated removal. I recommend we just follow the deprecation policy and remove in a month.

@rakyll
Copy link
Contributor Author

rakyll commented Jun 6, 2018

I reverted the breaking change and deprecated the package. PTAL.

@rakyll rakyll merged commit 0dabe09 into census-instrumentation:master Jun 6, 2018
@rakyll rakyll deleted the exportutil branch June 6, 2018 20:55
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.

None yet

2 participants