[FEATURE REQUEST] | Context information with `track` calls
peak-jiteshahuja opened this issue · 1 comments
Segment provides in a feature where it can collect some context information like the device info, ip address, etc. when calling the [track](https://segment.com/docs/connections/spec/track/)
function. Sadly most of the fields within the context aren't captured for python sdk. The only fields which are captured with the python sdk are library->name
and library->version
. It would be great if the python sdk could start collecting some more fields/details like the user agent, host, device info, etc. as it does for the Javascript and Android/IOS SDK's.
Current info collected for context by python sdk.
"context": {
"library": {
"name": "analytics-python",
"version": "2.2.2"
}
},
A great deal of the context information available on iOS and android are tied to the specific OS and device. Since our python library could be running anywhere, a lot of the context other platforms provide either doesn't apply or would require code too specific to any one platform.
However, all of our interfaces like identify, track, screen, etc. include a context
parameter, so you can add a dictionary of any information specific to the platform that you're running your application on.
Cheers!