• Forums
    • Public Forums
      • Community Connect
      • Dynatrace
        • Dynatrace Open Q&A
      • Application Monitoring & UEM
        • AppMon & UEM Open Q&A
      • Network Application Monitoring
        • NAM Open Q&A
  • Home /
  • Public Forums /
  • Application Monitoring & UEM /
  • AppMon & UEM Open Q&A /
avatar image
Question by NessPro S. · Aug 01, 2012 at 09:28 PM ·

How trace Python code??

Hi all,

I need to some python code.

have I any possibilities with ADK?

Thanks
Antonio

Comment

People who like this

0 Show 0
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

5 Replies

  • Sort: 
  • Most voted
  • Newest
  • Oldest
avatar image

Answer by NessPro S. · Sep 13, 2012 at 09:51 PM

Hi Roman,

my source file is written in Python, is it the same? The only worry is how to call a C/C++ library (dtagent.dll for Windows), right?

many thanks and regards
Antonio

Comment

People who like this

0 Show 1 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image Roman S. · Sep 13, 2012 at 09:58 PM 0
Share

Right, you need to call a C/C++ library (the ADK dll) from your Python source file. Sorry, can't help you with that part - maybe someone else reading the forum can?

Best, Roman

avatar image

Answer by NessPro S. · Sep 12, 2012 at 05:07 PM

Roman,

the reasons fo the question is becuase I see in the examples the include of #include <dynatrace_adk.h>

and I suppose must be compiled.

Many thanks again
Antonio

Comment

People who like this

0 Show 1 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image Roman S. · Sep 13, 2012 at 02:32 PM 0
Share

No, there is no compiling of the ADK necessary. You already get the compiled DLL. The header file (dynatrace_adk.h) just contains the declarations of the methods you can use. Just include it in you C or C++ source file like the example does...

Best, Roman

avatar image

Answer by NessPro S. · Sep 12, 2012 at 04:31 PM

Hi Roman,

yes we are using Windows systems for Python applications. But what I don't understood well is regarding the ADK functions.

For example: I insert "DYNATRACE START_PUREPATH" function in my Python source, this function does is found in DTAGENT.DLL and it's enought to call the dtagent.dll or do I need to compile the ADK functions?

Many thanks for your help.

regards
Antonio

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by NessPro S. · Aug 10, 2012 at 10:46 PM

Hi Christian,

to use C/C++ library functions of ADK in my Python code do I need to load DTAGENT.DLL?

Many thanks for the replay.

Antonio

Comment

People who like this

0 Show 1 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image Roman S. · Aug 11, 2012 at 12:15 AM 0
Share

Hi Antonio,

That depends on what platform you want to use the ADK. The DLL would be for Windows systems. Check out https://apmcommunity.compuware.com/community/display/DOCDT41/Agent+Development+Kit#AgentDevelopmentKit-NativeADK for examples of how to use the ADK in C/C++ apps.

Please note that you will require native agent licenses on the dynaTrace server.

Best, Roman

avatar image

Answer by Christian S. · Aug 01, 2012 at 10:19 PM

hi Antonio,

as long as you are able to call functions in a native library (e.g. like in here: http://docs.python.org/library/ctypes.html), you should be able to use the ADK pretty well.

best,
Christian

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

How to get started

First steps in the forum
Read Community User Guide
Best practices of using forum

NAM 2019 SP5 is available


Check the RHEL support added in the latest NAM service pack.

Learn more

LIVE WEBINAR

"Performance Clinic - Monitoring as a Self Service with Dynatrace"


JANUARY 15, 3:00 PM GMT / 10:00 AM ET

Register here

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Forum Tags

dotnet mobile monitoring load iis 6.5 kubernetes mainframe rest api dashboard framework 7.0 appmon 7 health monitoring adk log monitoring services auto-detection uem webserver test automation license web performance monitoring ios nam probe collector migration mq web services knowledge sharing reports window java hybris javascript appmon sensors good to know extensions search 6.3+ server documentation easytravel web dashboard kibana system profile purelytics docker splunk 6.1 process groups account 7.2 rest dynatrace saas spa guardian appmon administration production user actions postgresql upgrade oneagent measures security Dynatrace Managed transactionflow technologies diagnostics user session monitoring unique users continuous delivery sharing configuration alerting NGINX splitting business transaction client 6.3 installation database scheduler apache mobileapp RUM php dashlet azure purepath agent 7.1 appmonsaas messagebroker nodejs 6.2 android sensor performance warehouse
  • Forums
  • Public Forums
    • Community Connect
    • Dynatrace
      • Dynatrace Open Q&A
    • Application Monitoring & UEM
      • AppMon & UEM Open Q&A
    • Network Application Monitoring
      • NAM Open Q&A