cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to inject JS agent from application useing owin to self-host webapi

Yosi_Neuman
DynaMight Guru
DynaMight Guru

Hi guys,

Prospect are running their application with owin self-host web api (https://docs.microsoft.com/en-us/aspnet/web-api/ov...

Agent work OK and we can see server side information but no JS agent is being inject into the html pages that are coming from this PG.

When checking the PG setting the JS injection is set on

Any suggestions why there is no injection here?

Thanks in advance

Yos


dynatrace certificated professional - dynatrace master partner - Matrix Soft Ware Division - Israel
6 REPLIES 6

rohith_samudral
Organizer

Hey Yos,

Can you confirm that you have turned on monitoring for all the processes from the Deployment status page?


@Rohith S. process is monitor the issue as @Alexander S. point is that .net is not auto injection technology

Thanks for your answer

Yos


dynatrace certificated professional - dynatrace master partner - Matrix Soft Ware Division - Israel

skrystosik
DynaMight Guru
DynaMight Guru

In general you have Web Api as I understand. So you don't have monitoring on processes that are serving frontend or on mobile devices. Am I correct? If yes you should install OneAgent (or inject it manually) on WebServer where front is serving. If this API is for mobile app you should check documentation about how to instrument them.

Sebastian


Regards, Sebastian

Hi @Sebastian K.

Thanks for your input - thats not the issue here , please see down @Alexander S. answer

Yos


dynatrace certificated professional - dynatrace master partner - Matrix Soft Ware Division - Israel

AlexanderSommer
Dynatrace Champion
Dynatrace Champion

Hi Yos,

I guess you don't have a web server like IIS in front of your application. Even if the OneAgent is installed and monitoring this process it is not capable of doing the real user monitoring injection on the .NET or in your case OWIN process.
You can put an IIS (or Apache, Nginx) in front of OWIN and then the RUM injection is done at this tier.
Please take a look at the Real user monitoring auto injection section here: https://www.dynatrace.com/support/help/shortlink/supported-technologies#real-user-monitoring


Hi @Alexander S.

Yes you are right there is no WebServer in front of the OWIN and since .net is not list as auto-injection technology there will be no auto-injection 😞

Thanks

Yos


dynatrace certificated professional - dynatrace master partner - Matrix Soft Ware Division - Israel

Featured Posts