Skip to content

Commit ed0c15e

Browse files
authored
Merge pull request #101 from stefaneberl/release/1.1
Release/1.1
2 parents 40b2bbc + 9250411 commit ed0c15e

File tree

4 files changed

+21
-16
lines changed

4 files changed

+21
-16
lines changed

README.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -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

8381
Although 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
8583
thread safe and therefore the instance can be shared among threads.
8684

8785
On 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`.
134125
OpenKit enables you to tag sessions with unique user tags. The user tag is a String
135126
that 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

139138
This 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
143142
String applicationName = "My OpenKit application";
144143
String applicationID = "application-id";
145-
long deviceID = 42;
144+
long deviceID = getDeviceIdentifier();
146145
String endpointURL = "https://tenantid.beaconurl.com/mbeacon";
147146

148147
OpenKit openKit = new DynatraceOpenKitBuilder(endpointURL, applicationID, deviceID)

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ buildscript {
1212
}
1313

1414
group 'com.dynatrace.openkit'
15-
version '1.1.0-rc1'
15+
version '1.1.0'
1616

1717
def buildNumber = System.getenv()['BUILD_NUMBER']
1818
if (version.endsWith('-SNAPSHOT') && buildNumber != null) {

docs/example.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ customize OpenKit. This includes device specific information like operating syst
6161
| `withBeaconCacheMaxRecordAge` | sets the maximum age of an entry in the beacon cache in milliseconds | 1 h 45 min |
6262
| `withBeaconCacheLowerMemoryBoundary` | sets the lower memory boundary of the beacon cache in bytes | 100 MB |
6363
| `withBeaconCacheUpperMemoryBoundary` | sets the upper memory boundary of the beacon cache in bytes | 80 MB |
64+
| `withDataCollectionLevel` | sets the data collection level (enum DataCollectionLevel) | USER_BEHAVIOR |
65+
| `withCrashReportingLevel` | sets the crash reporting level (enum CrashReportingLevel) | OPT_IN_CRASHES |
6466
| `enableVerbose` | enables extended log output for OpenKit if the default logger is used | `false` |
6567

6668
:grey_exclamation: Please refer to the the JavaDoc for more information regarding possible configuration values.

src/main/java/com/dynatrace/openkit/AbstractOpenKitBuilder.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ public AbstractOpenKitBuilder withBeaconCacheUpperMemoryBoundary(long upperMemor
201201
* OFF (0) - no data collected
202202
* PERFORMANCE (1) - only performance related data is collected
203203
* USER_BEHAVIOR (2) - all available RUM data including performance related data is collected
204-
* default value is OFF(0)
204+
* default value is USER_BEHAVIOR(2)
205205
* </p>
206206
*
207207
* @param dataCollectionLevel Data collection level to apply.
@@ -215,13 +215,17 @@ public AbstractOpenKitBuilder withDataCollectionLevel(DataCollectionLevel dataCo
215215
}
216216

217217
/**
218-
* Sets the flag if crash reporting is enabled
218+
* Sets the crash reporting level.
219219
*
220220
* <p>
221-
* default value is false
221+
* Depending on the chosen level the amount and granularity of data sent is controlled.
222+
* OFF(0) - no crashes are collected
223+
* OPT_OUT_CRASHES(1) - no crashes are collected, currently the same as OFF
224+
* OPT_IN_CRASHES(2) - all crash relevant data is collected
225+
* default value is OPT_IN_CRASHES(2)
222226
* </p>
223227
*
224-
* @param crashReportLevel Flag if crash reporting is enabled
228+
* @param crashReportLevel Crash reporting level to apply
225229
* @return {@code this}
226230
*/
227231
public AbstractOpenKitBuilder withCrashReportingLevel(CrashReportingLevel crashReportLevel) {

0 commit comments

Comments
 (0)