You will need to find the .Net dll files and packages that can push data to Dynatrace.
After, you will need to specify them in the Nlog and configure the Nlog connection to your Dynatrace and the log format.
Some samples:
For NLog troubleshooting check Logging Troubleshooting · NLog/NLog Wiki · GitHub
For NLog Database target check Database target · NLog/NLog Wiki · GitHub
But start with Dynatrace documentation and see if they have some NLog configuration samples already.
Also another way without NLog is to use the Rest API calls of UiPath, and based on the JSON responses to ingest the data in the Dynatrace.
Some minuses for this approach:
- The data will not be in real-time while the robot is sending the logs. You will ingest the data to Dynatrace after the logs are created and present in UiPath Orchestrator.
- There will be some rate limit on requests/minute/tenant for non-automation usage. Orchestrator - Rate limits and large data field usage optimization
For .Net app monitoring check .NET — Dynatrace Docs