• 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 Ziv Y. · Nov 13, 2014 at 08:51 PM ·

Using REST API in dynatrace - startrecording from code don't get a label

Hi,

I have an issue with startrecording method in REST API - when I run my tests (from .net code, Integration Tests & Unit Tests).

The issue is that I pass a label of a date time stamp and some description on my tests start to run - and I don't see this data in any place in DT Client.

Though I do have the session starting recording and stop recording correctly.

The request - http://<myDTServerIP>:8020/rest/management/profiles/myDTSystemPtofile/startrecording?label=11-21-13-11-2014-FirstRecording

I would expect to see the "11-21-13-11-2014-FirstRecording" to appear in the window of DT Client, and I don't.

Do I miss something?

Thanx.

 

 

 

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.

3 Replies

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

Answer by Andreas G. · Nov 18, 2014 at 06:50 PM

Hi. I was just corrected by our developers. Not a bug - but I guess both of us just made the same mistake. Here is the screenshot of the request that shows that this actually works


Can you give this another try?

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 Andreas G. · Nov 13, 2014 at 09:24 PM

Can you let me know which version of dynatrace you are using?

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 Ziv Y. · Nov 14, 2014 at 02:12 AM 0
Share

Hi Andi,

The version 6.0.0.6733 for both Agent & Client, the Server version is also 6.0.0.6733.

About the presentableName - will try it and post here if it works.

Thank you.

avatar image

Answer by Andreas G. · Nov 13, 2014 at 09:02 PM

Hi

I think you found a bug. i just tested this myself and it really seems to not put the label on the stored session. I will post this to the R&D team.

However - what you can do is to use the parameter presentableName. Thats then going to be the name of the stored session which you will see in your list of stored sessions. That will work

Andi

Comment

People who like this

0 Show 4 · 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 Ziv Y. · Nov 14, 2014 at 03:11 AM 0
Share

Hi,

Here are steps I tried in order to create a recorded session with a specified name:

  1. I have a System Profile named "GoodCompany_POC".
  2. I have Fiddler - and I try manually to run this link: http://<IpOfMyDynatraceServer>:8020/rest/management/profiles/GoodCompany_POC/startrecording?presentableName=TestRecording or this link: http://<IpOfMyDynatraceServer>:8020/rest/management/profiles/GoodCompany_POC/startrecording and in the header I pass: presentableName=TestRecording.
  3. Each time I call the startrecording method, I have the Session with the name "GoodCompany_POC", if I run more then once the startrecording (after I run the stoprecording of course) - I have the name with postfix of (1), (2), etc..
  4. Also I have tried the "presentableName:TestRecording" - passing in the header - with no luck.
  5. Is there anything missing? Also I have the documentation and an example of working with the REST API but it seems ignoring the parameter I want to be set as a Session name.


 

avatar image Andreas G. ♦ Ziv Y. · Nov 14, 2014 at 05:05 AM 0
Share

I just tested this on my machine - using HttpRequester Plugin in Firefox and it works as expected

I think the problem in your case is that your Content-Length is 0. This means that dynaTrace will not try to read to HTTP POST Body and therefore wont see the parameters that you have passed!

avatar image Ziv Y. Andreas G. ♦ · Nov 16, 2014 at 07:17 PM 0
Share

I will try.

UPD:

  1. I did try to use the presentableName=TestRecording passed in a header, also the presentableName:TestRecording, also giving the body some content (BTW what can/should it be? I passed same string for testing purpose) - didn't succeed to see any label/presentableName.
  2. Is there a specific synatx except what is mentioned in the documentation?
  3. Can the feature be disabled?

WBR.

avatar image Andreas G. ♦ Ziv Y. · Nov 17, 2014 at 08:23 PM 0
Share

Do you have continuous session recording enabled or disabled? It has to be disabled in order for Start/Stop Recording to work. It can be disabled in the SErver Settings Dialog under Storage

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

2 People are following this question.

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