cloud-py-api/nc_py_api

Send exApp name and version in User-Agent header for requests to nextcloud

Closed this issue · 4 comments

Describe why it is important and where it will be useful

For analysing performance bottlenecks and behvior in general, it would be useful to know which request comes from which exApp.

Describe your proposed solution

Send the exApp name and version in the user-agent header to Nextcloud.

Describe alternatives you've considered, if relevant

.

Additional context

No response

Something like "httpx/{HTTPX_VERSION} ExApp/{EX_APP_ID} Version/{EX_APP_VERSION}" ?

Also cc @kyteinsky @edward-ly

Yeah, that'd be great!

Added custom header ExApp/test-deploy/1.1.0 (httpx/0.24.1) of this type, because it is easier to parse with regex

🎉 Thanks