@@ -76,23 +76,14 @@ also provided. For detailed code samples have a look into [example.md](docs/exam
7676
7777### OpenKit
7878
79- An ` OpenKit ` instance is responsible for getting and setting application relevant information, e.g.
80- the application's version and device specific information.
81- Furthermore the ` OpenKit ` is responsible for creating user sessions (see ` Session ` ).
79+ The ` OpenKit ` is responsible for creating user sessions (see ` Session ` ).
8280
8381Although it would be possible to have multiple ` OpenKit ` instances connected to the same endpoint
8482(Dynatrace/AppMon) within one process, there should be one unique instance. ` OpenKit ` is designed to be
8583thread safe and therefore the instance can be shared among threads.
8684
8785On application shutdown, ` shutdown() ` needs to be called on the OpenKit instance.
8886
89- ### Device
90-
91- A ` Device ` instance, which can be retrieved from an ` OpenKit ` instance, contains methods
92- for setting device specific information. It's not mandatory for the application developer to
93- provide this information, reasonable default values exist.
94- However when the application is run on multiple different devices it might be quite handy
95- to know details about the used device (e.g device identifier, device manufacturer, operating system).
9687
9788### Session
9889
@@ -134,6 +125,14 @@ Crashes are used to report (unhandled) exceptions on a `Session`.
134125OpenKit enables you to tag sessions with unique user tags. The user tag is a String
135126that allows to uniquely identify a single user.
136127
128+
129+ ### GDPR Compliance
130+
131+ When creating an ` OpenKit ` instance, it is also possible to set the GDPR compliant mode
132+ where you can specify which data is collected.
133+ For detailed description and samples refer to [ example.md] ( docs/example.md ) .
134+ Getting user consent must be handled within the application itself.
135+
137136## Example
138137
139138This small example provides a rough overview how OpenKit can be used.
@@ -142,7 +141,7 @@ Detailed explanation is available in [example.md](docs/example.md).
142141``` java
143142String applicationName = " My OpenKit application" ;
144143String applicationID = " application-id" ;
145- long deviceID = 42 ;
144+ long deviceID = getDeviceIdentifier() ;
146145String endpointURL = " https://tenantid.beaconurl.com/mbeacon" ;
147146
148147OpenKit openKit = new DynatraceOpenKitBuilder (endpointURL, applicationID, deviceID)
0 commit comments