Skip to content
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

Track gateway usage #182

Closed
vramosp opened this issue Dec 9, 2016 · 9 comments · Fixed by #214
Closed

Track gateway usage #182

vramosp opened this issue Dec 9, 2016 · 9 comments · Fixed by #214

Comments

@vramosp
Copy link

vramosp commented Dec 9, 2016

It seems that with latest releases we've lost the ability of using the user agent header to track source of calls to backend and we'd like to bring it back.

In addition, it'd be useful to also being able to track:

  • Deployment method
  • Modules used
@MarkCheshire
Copy link
Contributor

We should really aim to get this included in the initial release.

@mikz
Copy link
Contributor

mikz commented Dec 9, 2016

The initial release was already shipped on 2016-11-28.

@andrewdavidmackenzie andrewdavidmackenzie added this to the Placeholder- release for RHAMP 2.0 milestone Dec 12, 2016
@vramosp vramosp modified the milestones: RHAMP 2.0 ER2, Placeholder- release for RHAMP 2.0 Dec 20, 2016
@mikz mikz self-assigned this Jan 10, 2017
@mikz
Copy link
Contributor

mikz commented Jan 11, 2017

I started the implementation of the full User-Agent which will look like following:

APIcast/2.0 (OSX; x64; env:production) APIcast/2.0

It follows the RFC 7231 section 5.5.3 and best practices by Mozilla.

It includes information about:

  • APIcast core version
  • APIcast module version (or any other loaded module, like XC)
  • platform
  • architecture
  • deployment environment

And will be sent in the User-Agent header.

For comptatibility purposes there will also be the X-3scale-User-Agent set to APIcast/2.0+env tracking the APIcast module version, not the core so XC and other modules can set their own.

@andrewdavidmackenzie
Copy link
Member

andrewdavidmackenzie commented Jan 11, 2017 via email

@mikz
Copy link
Contributor

mikz commented Jan 11, 2017

@3scale/operations could you verify User-Agent string like that would be ok for us to track use? If not, can you suggest some changes?

@jmprusi
Copy link
Contributor

jmprusi commented Jan 11, 2017

yes, should be easy to track

@MarkCheshire
Copy link
Contributor

@Pili can you please comment based on experience of the current trackers

@mpguerra
Copy link
Contributor

The only thing I'm wondering now is whether it makes sense to use the User-Agent header in the same way for the other APIcast versions/plugins and use the X-3scale-User-Agent header for additional info also

@mikz
Copy link
Contributor

mikz commented Jan 12, 2017

Is it still useful to have a timestamp of the configuration generation in the headers (X-3scale-Version) ?
It got broken #216 (comment) and I'm not sure if it is useful enough to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants