kontent-ai / java-packages

Delivery Java SDK for Kontent.ai including examples for Spring, Gradle, Kotlin and Java Android app
https://kontent.ai/learn/tutorials/develop-apps/overview/?tech=java
MIT License
14 stars 28 forks source link

SDK tracking header #52

Closed petrsvihlik closed 6 years ago

petrsvihlik commented 6 years ago

Motivation: We'd like to start sending a header for identifying SDKs + their versions with each request from all SDKs. The header would be then tracked by App Insights and should provide us with information valuable for multiple departments in Kentico. App Insights already gather information about the user agent, but that is not always usable or present (there are some screenshots below).

In the future, the tracking should help us:

Specification: Send the following header with each request to the Kentico Cloud Delivery API.

Examples:

X-KC-SDKID: nuget.org;KenticoCloud.Delivery;4.12.0
X-KC-SDKID: packagist.org;kentico-cloud/delivery-sdk-php;0.9.1
X-KC-SDKID: maven.org;com.kenticocloud:delivery-sdk-java;1.0.5
X-KC-SDKID: npmjs.com;kentico-cloud-delivery-typescript-sdk;2.2.2
adityasrini commented 6 years ago

Would love to contribute if there aren’t folks already working on this.

petrsvihlik commented 6 years ago

hi @adityasrini, thanks for your interest! let's wait for what @aweigold has to say to this.

hey @aweigold, have you already started working on this one? If not, could you perhaps guide @adityasrini through the process? Thank you!

aweigold commented 6 years ago

Hi @petrsvihlik and @adityasrini , sorry, I didn't see the interest commented here... I had already had this work complete.