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

Add option to allow user agent to be explicitly overridden #274

Merged
merged 3 commits into from
Aug 17, 2020

Conversation

james-bebbington
Copy link
Contributor

No description provided.

@@ -52,11 +51,9 @@ const (
opencensusTaskKey = "opencensus_task"
opencensusTaskDescription = "Opencensus task identifier"
defaultDisplayNamePrefix = "OpenCensus"
version = "0.10.0"
version = "0.12.3"
Copy link
Contributor Author

@james-bebbington james-bebbington Aug 14, 2020

Choose a reason for hiding this comment

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

Looks like this hadn't been updated for a while. Updating this to prepare for the next (and hopefully final) release I will do after merging this PR

Copy link
Contributor

Choose a reason for hiding this comment

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

If we do want the external code to be able to use this version in their custom user agent string, we should make this field public.

Also, this seems like a weird place to define version since it's not specific to stats AFAICT.
If you prefer to leave this code as is, that's fine by me.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yea I don't think I will move it. There seems to be quite a lot of global stuff defined in stats.go.

Also as you previously mentioned, it's unlikely external code would want to use this version no. in their custom user agent string, so I will leave this as a private field for now.

stackdriver_test.go Outdated Show resolved Hide resolved
stackdriver.go Outdated Show resolved Hide resolved
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.

3 participants