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
What's the correct way to set "user-agent" header? #1468
Comments
any update here? |
Any advice would be appreciated... |
any update here? |
The short answer is that today you can't. However - I have a PR over here that will add the ability to do it: Once that gets merged we'll cut a release, upgrade the version here, and then we'll be set :) |
@bcoe recommended the following to another user. It seems this should work.
|
Closing for now since this seems more a question. Feel free to reach out further if needed though. |
👋 we did actually go do that work, and it's available now |
Hello,
This is Mayur from OpenCensus team. Recently we've been working on adding the user-agent header to our Stackdriver Monitoring exporters for all languages. This allows Stackdriver Monitoring to group the uploaded metrics by different sources (e.g from OpenCensus vs. from other libraries), by looking at the value of the user-agent header.
This is my Pull Request : census-instrumentation/opencensus-node#214
Is this the correct way for setting headers?
The text was updated successfully, but these errors were encountered: