There are many ways your business can interact with your customers in the digital world. Monitoring user experience and behavior in your web and mobile applications is a great way to get started with digital experience monitoring; Dynatrace easily detects and monitors these touchpoints automatically using Dynatrace OneAgent. However, your business likely has many other digital touchpoints where your customers interact with your brand that are also key to the success of your business. With support for Dynatrace OpenKit instrumentation, you get a set of open source libraries that enable you to instrument all other digital touchpoints in your environment, whether or not they’re traditional rich client applications, smart IoT applications, or even Alexa skills.
The application type custom application encapsulates the monitoring data sent via Dynatrace OpenKit.
Get started with Dynatrace OpenKit
- From the navigation menu, select Deploy Dynatrace.
- Within the Digital touchpoint monitoring section, click the Monitor custom application button.
- Type a name for your custom application.
- Select an icon to visually represent your custom application in the Dynatrace UI.
- Click the Monitor custom application button.
- You’ll be directed to the instrumentation page of your new custom application. From here, you can download Dynatrace OpenKit from GitHub and instrument your application using the provided
ApplicationID. The Beacons view below is especially handy as it shows you incoming beacons as they arrive, with only a couple of seconds delay. This view also provides information about potential problems.
Once your custom application begins to send monitoring data to Dynatrace, you can analyze the data just like any other application. Have a look at the example Custom IoT application page below.
You can view all your user actions by selecting the View all user actions button in the Top actions section (see above).
From here you can continue to the list of user action instances and view detailed timings for a single user action
Dynatrace OpenKit libraries on GitHub
You can use the Dynatrace OpenKit libraries that are currently available for download so that you can begin instrumenting your custom applications.
Basic instrumentation example
Here’s a basic example that shows you how to use Dynatrace OpenKit to send monitoring data to Dynatrace:
String applicationName = "My OpenKit application"; String applicationID = "application-id"; long deviceID = 42; String endpointURL = "https://tenantid.beaconurl.com"; OpenKit openKit = new DynatraceOpenKitBuilder(endpointURL, applicationID, deviceID) .withApplicationName(applicationName) .withApplicationVersion("220.127.116.11") .withOperatingSystem("Windows 10") .withManufacturer("MyCompany") .withModelID("MyModelID") .build(); String clientIP = "18.104.22.168"; Session session = openKit.createSession(clientIP); session.identifyUser("firstname.lastname@example.org"); String rootActionName = "rootActionName"; RootAction rootAction = session.enterAction(rootActionName); String childActionName = "childAction"; Action childAction = rootAction.enterAction(childActionName); childAction.leaveAction(); rootAction.leaveAction(); session.end(); openKit.shutdown();
string applicationName = "My OpenKit application"; string applicationID = "application-id"; long deviceID = 42L; string endpointURL = "https://tenantid.beaconurl.com/mbeacon"; IOpenKit openKit = new DynatraceOpenKitBuilder(endpointURL, applicationID, deviceID) .WithApplicationName(applicationName) .WithApplicationVersion("22.214.171.124") .WithOperatingSystem("Windows 10") .WithManufacturer("MyCompany") .WithModelID("MyModelID") .Build(); string clientIP = "126.96.36.199"; ISession session = openKit.CreateSession(clientIP); session.IdentifyUser("email@example.com"); string rootActionName = "rootActionName"; IRootAction rootAction = session.EnterAction(rootActionName); string childActionName = "childAction"; IAction childAction = rootAction.EnterAction(childActionName); childAction.LeaveAction(); rootAction.LeaveAction(); session.End(); openKit.ShutDown();
Find out how to solve problems that you may encounter when integrating OpenKit.
If no data is sent to the custom application, check the following:
- Verify that you're using an official OpenKit release. The releases can be found on the GitHub pages:
- Verify that you used the correct property values that are provided in the settings of the custom application.
- Confirm that Dynatrace and your Cluster ActiveGate are reachable from your company network.
- Confirm that the ActiveGate is configured with a valid SSL certificate.
- Check if the OpenKit log output contains messages indicating connection problems. See logging for OpenKit for details.