dynatrace-oss / OneAgent-SDK-Python-AutoInstrumentation

autodynatrace, a python library that implements automatic instrumentation using the OneAgent SDK for Python
Other
62 stars 28 forks source link

DT_CUSTOM_PROP is always shown as "1.082" regardless of the version of pip autodynatrace #81

Closed yasusuzu closed 3 months ago

yasusuzu commented 1 year ago

Hi Team,

The version field in the following code is hard-coded with the number of "1.082" as always. When we install autodynatrace into my application, it's show us that Autodynatce custom properties equals "1.082" on the UI under python process in Dynatrace. It's a same number regardless of whether what kind of pip autodynatrace version we install into application.

image I want you to corelate this version of DT_CUSTOM_PROP to the version of pip autodynatrace automatically.

In terms of DT_CUSTOM_PROP itself, it works fine. When I configured DT_CUSTOM_PROP=1.1.0 as an os environemt value, it passed for custom properties to python process correctly.

image

Could you link DT_CUSTOM_PROP field to the version history of pip autodynatrace?

https://github.com/dynatrace-oss/OneAgent-SDK-Python-AutoInstrumentation/blob/1c2666781cd9d6b424c52db26c6a70d92bab9986/autodynatrace/__init__.py#L12