Skip to content

Commit a0fb01b

Browse files
committed
2 parents 33ef4f3 + b47b60b commit a0fb01b

File tree

1 file changed

+98
-26
lines changed

1 file changed

+98
-26
lines changed

README.md

Lines changed: 98 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,50 @@
44

55
This SDK allows Dynatrace customers to instrument java applications. This is useful to enhance the visibility for proprietary frameworks or custom frameworks not directly supported by Dynatrace OneAgent out-of-the-box.
66

7-
It provides the Java implementation of the [Dynatrace OneAgent SDK](https://github.com/Dynatrace/OneAgent-SDK).
7+
This is the official Java implementation of the [Dynatrace OneAgent SDK](https://github.com/Dynatrace/OneAgent-SDK).
8+
9+
#### Table of Contents
10+
11+
* [Package contents](#package)
12+
* [Requirements](#requirements)
13+
* [Integration](#integration)
14+
* [Dependencies](#dependencies)
15+
* [Troubleshooting](#troubleshooting)
16+
* [API Concepts](#apiconcepts)
17+
* [OneAgentSDK object](#oneagentsdkobject)
18+
* [Tracers](#tracers)
19+
* [Features](#features)
20+
* [Trace incoming and outgoing remote calls](#remoting)
21+
* [In process linking](#inprocess)
22+
* [Further reading](#furtherreading)
23+
* [Help & Support](#help)
24+
* [Release notes](#releasenotes)
25+
26+
<a name="package" />
827

928
## Package contents
1029

1130
- `samples`: contains sample application, which demonstrates the usage of the SDK. see readme inside the samples directory for more details
31+
- `docs`: contains the reference documentation (javadoc). The most recent version is also available online at [https://dynatrace.github.io/OneAgent-SDK-for-Java/](https://dynatrace.github.io/OneAgent-SDK-for-Java/).
1232
- `LICENSE`: license under which the whole SDK and sample applications are published
1333

14-
## Features
15-
Dynatrace OneAgent SDK for Java currently implements support for the following features (corresponding to features specified in [Dynatrace OneAgent SDK](https://github.com/Dynatrace/OneAgent-SDK)):
16-
- outgoing and incoming remote calls
34+
<a name="requirements" />
1735

18-
## Documentation
19-
The reference documentation is included in this package. The most recent version is also available online at [https://dynatrace.github.io/OneAgent-SDK-for-Java/](https://dynatrace.github.io/OneAgent-SDK-for-Java/).
36+
## Requirements
2037

21-
A high level documentation/description of OneAgent SDK concepts is available at [https://github.com/Dynatrace/OneAgent-SDK/](https://github.com/Dynatrace/OneAgent-SDK/).
38+
- JRE 1.6 or higher
39+
- Dynatrace OneAgent (required versions see below)
2240

23-
## Integrating into your application
41+
|OneAgent SDK for Java|Required OneAgent version|
42+
|:------|:--------|
43+
|1.1.0 |>=1.143 |
44+
|1.0.3 |>=1.135 |
45+
46+
<a name="integration" />
47+
48+
## Integration
49+
50+
<a name="dependencies" />
2451

2552
### Dependencies
2653
If you want to integrate the OneAgent SDK into your application, just add the following maven dependency:
@@ -32,27 +59,28 @@ If you want to integrate the OneAgent SDK into your application, just add the fo
3259
<scope>compile</scope>
3360
</dependency>
3461

35-
If you prefer to integrate the SDK using plain jar file, just download them from mavenCentral - Dynatrace OneAgent SDK for Java [binary](https://search.maven.org/remotecontent?filepath=com/dynatrace/oneagent/sdk/java/oneagent-sdk/1.0.3/oneagent-sdk-1.0.3.jar), [source](https://search.maven.org/remotecontent?filepath=com/dynatrace/oneagent/sdk/java/oneagent-sdk/1.0.3/oneagent-sdk-1.0.3-sources.jar) and [javadoc](https://search.maven.org/remotecontent?filepath=com/dynatrace/oneagent/sdk/java/oneagent-sdk/1.0.3/oneagent-sdk-1.0.3-javadoc.jar)
62+
If you prefer to integrate the SDK using plain jar file, just download them from mavenCentral. You can find the download links for each version in the [Release notes](#releasenotes) section.
3663

3764
The Dynatrace OneAgent SDK for Java has no further dependencies.
3865

66+
<a name="troubleshooting" />
67+
3968
### Troubleshooting
4069
If the SDK can't connect to the OneAgent (see usage of SDKState in samples) or you you don't see the desired result in the Dynatrace UI, you can set the following system property to print debug information to standard out:
4170

4271
-Dcom.dynatrace.oneagent.sdk.debug=true
4372

4473
Additionally you should/have to ensure, that you have set a `LoggingCallback`. For usage see class `StdErrLoggingCallback` in `remotecall-server` module (in samples/remotecall folder).
4574

46-
## OneAgent SDK for Java Requirements
75+
<a name="apiconcepts" />
4776

48-
- JRE 1.6 or higher
49-
- Dynatrace OneAgent Java (supported versions see below)
77+
## API Concepts
5078

51-
# API Concepts
79+
Common concepts of the Dynatrace OneAgent SDK are explained the [Dynatrace OneAgent SDK repository](https://github.com/Dynatrace/OneAgent-SDK#apiconcepts).
5280

53-
Common concepts of the Dynatrace OneAgent SDK are explained the [Dynatrace OneAgent SDK repository](https://github.com/Dynatrace/OneAgent-SDK).
81+
<a name="oneagentsdkobject" />
5482

55-
## Get an Api object
83+
### OneAgentSDK object
5684

5785
Use OneAgentSDKFactory.createInstance() to obtain an OneAgentSDK instance. You should reuse this object over the whole application
5886
and if possible JVM lifetime:
@@ -73,7 +101,9 @@ default:
73101

74102
It is good practice to check the SDK state regularly as it may change at every point of time (except PERMANENTLY_INACTIVE never changes over JVM lifetime).
75103

76-
## Common concepts: Tracers
104+
<a name="tracers" />
105+
106+
### Tracers
77107

78108
To trace any kind of call you first need to create a Tracer. The Tracer object represents the logical and physical endpoint that you want to call. A Tracer serves two purposes. First to time the call (duraction, cpu and more) and report errors. That is why each Tracer has these three methods. The error method must be called only once, and it must be in between start and end.
79109

@@ -86,8 +116,22 @@ void end();
86116
```
87117
The second purpose of a Tracer is to allow tracing across process boundaries. To achieve that these kind of traces supply so called tags. Tags are strings or byte arrays that enable Dynatrace to trace a transaction end to end. As such the tag is the one information that you need to transport across these calls yourselfs.
88118

119+
<a name="features" />
120+
121+
## Features
122+
123+
The feature sets differ slightly with each language implementation. More functionality will be added over time, see <a href="https://answers.dynatrace.com/spaces/483/dynatrace-product-ideas/idea/198106/planned-features-for-oneagent-sdk.html" target="_blank">Planned features for OneAgent SDK</a> for details on upcoming features.
124+
125+
A more detailed specification of the features can be found in [Dynatrace OneAgent SDK](https://github.com/Dynatrace/OneAgent-SDK#features).
126+
127+
|Feature|Required OneAgent SDK for Java version|
128+
|:------|:--------|
129+
|Trace incoming and outgoing remote calls |>=1.0.3 |
130+
|In process linking |>=1.1.0 |
89131

90-
## Using the Dynatrace OneAgent SDK to trace remote calls
132+
<a name="remoting" />
133+
134+
### Trace incoming and outgoing remote calls
91135

92136
You can use the SDK to trace proprietary IPC communication from one process to the other. This will enable you to see full Service Flow, PurePath and Smartscape topology for remoting technologies that Dynatrace is not aware of.
93137

@@ -125,7 +169,9 @@ try {
125169
}
126170
```
127171

128-
## Using the Dynatrace OneAgent SDK for in-process-linking
172+
<a name="inprocess" />
173+
174+
### In process linking
129175

130176
You can use the SDK to link inside a single process. To link for eg. an asynchronous execution, you need the following code:
131177
```Java
@@ -149,17 +195,43 @@ try {
149195
}
150196
```
151197

152-
### Compatibility OneAgent SDK for Java releases with OneAgent for Java releases
153-
|OneAgent SDK for Java|Dynatrace OneAgent Java|
154-
|:------|:--------|
155-
|1.1.0 |>=1.143 |
156-
|1.0.3 |>=1.135 |
198+
<a name="furtherreading" />
199+
200+
## Further readings
201+
202+
* <a href="https://www.dynatrace.com/support/help/extend-dynatrace/oneagent-sdk/what-is-oneagent-sdk/" target="_blank">What is the OneAgent SDK?</a> in the Dynatrace documentation
203+
* <a href="https://answers.dynatrace.com/spaces/483/dynatrace-product-ideas/idea/198106/planned-features-for-oneagent-sdk.html" target="_blank">Feedback & Roadmap thread in AnswerHub</a>
204+
* <a href="https://www.dynatrace.com/news/blog/dynatrace-oneagent-sdk-for-java-end-to-end-monitoring-for-proprietary-java-frameworks/" target="_blank">Blog: Dynatrace OneAgent SDK for Java: End-to-end monitoring for proprietary Java frameworks</a>
205+
206+
<a name="help" />
207+
208+
## Help & Support
209+
210+
The Dynatrace OneAgent SDK for Java is an open source project, currently in beta status. The features are fully supported by Dynatrace.
211+
212+
**Get Help**
213+
* Ask a question in the <a href="https://answers.dynatrace.com/spaces/482/view.html" target="_blank">product forums</a>
214+
* Read the <a href="https://www.dynatrace.com/support/help/" target="_blank">product documentation</a>
215+
216+
**Open a <a href="https://github.com/Dynatrace/OneAgent-SDK-for-Java/issues">GitHub issue</a> to:**
217+
* Report minor defects, minor items or typos
218+
* Ask for improvements or changes in the SDK API
219+
* Ask any questions related to the community effort
220+
221+
SLAs don't apply for GitHub tickets
222+
223+
**Customers can open a ticket on the <a href="https://support.dynatrace.com/supportportal/" target="_blank">Dynatrace support portal</a> to:**
224+
* Get support from the Dynatrace technical support engineering team
225+
* Manage and resolve product related technical issues
226+
227+
SLAs apply according to the customer's support level.
228+
229+
<a name="releasenotes" />
157230

158-
## Feedback
231+
## Release notes
159232

160-
In case of questions, issues or feature requests feel free to contact the maintainer by dynatrace.oneagent.sdk(at)dynatrace(dot)com or file an issue. Your feedback is welcome!
233+
see also https://github.com/Dynatrace/OneAgent-SDK-for-Java/releases
161234

162-
## OneAgent SDK for Java release notes
163235
|Version|Description|Links|
164236
|:------|:--------------------------------------|:----------------------------------------|
165237
|1.1.0 |Added support for in-process-linking |[binary](https://search.maven.org/remotecontent?filepath=com/dynatrace/oneagent/sdk/java/oneagent-sdk/1.1.0/oneagent-sdk-1.1.0.jar) [source](https://search.maven.org/remotecontent?filepath=com/dynatrace/oneagent/sdk/java/oneagent-sdk/1.0.3/oneagent-sdk-1.0.3-sources.jar) [javadoc](https://search.maven.org/remotecontent?filepath=com/dynatrace/oneagent/sdk/java/oneagent-sdk/1.0.3/oneagent-sdk-1.1.0-javadoc.jar)|

0 commit comments

Comments
 (0)