kontent-ai / delivery-sdk-php

Kontent.ai Delivery SDK for PHP
https://kontent.ai
MIT License
46 stars 15 forks source link

SDK tracking header #43

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
Simply007 commented 6 years ago

See how to release the page:

Simply007 commented 6 years ago

SDK header should be implemented.

Format: X-KC-SDKID: packagist.org;kentico-cloud/delivery-sdk-php;0.9.1

See https://github.com/Kentico/delivery-sdk-php/wiki/How-to-publish-new-release, how to publish new version.