8000 add support for custom request attributes (#7) · Dynatrace/OneAgent-SDK-for-Java@7dc7b66 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7dc7b66

Browse files
authored
add support for custom request attributes (#7)
* add support for custom request attributes
1 parent 1350b5e commit 7dc7b66

File tree

68 files changed

+1730
-148
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+1730
-148
lines changed

README.md

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ This is the official Java implementation of the [Dynatrace OneAgent SDK](https:/
1919
* [Features](#features)
2020
* [Trace incoming and outgoing remote calls](#remoting)
2121
* [In process linking](#inprocess)
22+
* [Add custom request attributes](#scav)
2223
* [Further reading](#furtherreading)
2324
* [Help & Support](#help)
2425
* [Release notes](#releasenotes)
@@ -39,9 +40,10 @@ This is the official Java implementation of the [Dynatrace OneAgent SDK](https:/
3940
- Dynatrace OneAgent (required versions see below)
4041

4142
|OneAgent SDK for Java|Required OneAgent version|
42-
|:------|:--------|
43-
|1.1.0 |>=1.143 |
44-
|1.0.3 |>=1.135 |
43+
|:--------------------|:------------------------|
44+
|1.2.0 |>=1.147 |
45+
|1.1.0 |>=1.143 |
46+
|1.0.3 |>=1.135 |
4547

4648
<a name="integration" />
4749

@@ -55,7 +57,7 @@ If you want to integrate the OneAgent SDK into your application, just add the fo
5557
<dependency>
5658
<groupId>com.dynatrace.oneagent.sdk.java</groupId>
5759
<artifactId>oneagent-sdk</artifactId>
58-
<version>1.1.0</version>
60+
<version>1.2.0</version>
5961
<scope>compile</scope>
6062
</dependency>
6163

@@ -124,10 +126,11 @@ The feature sets differ slightly with each language implementation. More functio
124126

125127
A more detailed specification of the features can be found in [Dynatrace OneAgent SDK](https://github.com/Dynatrace/OneAgent-SDK#features).
126128

127-
|Feature|Required OneAgent SDK for Java version|
128-
|:------|:--------|
129-
|In process linking |>=1.1.0 |
130-
|Trace incoming and outgoing remote calls |>=1.0.3 |
129+
|Feature |Required OneAgent SDK for Java version|
130+
|:-----------------------------------------|:-------------------------------------|
131+
|Custom request attributes |>=1.2.0 |
132+
|In process linking |>=1.1.0 |
133+
|Trace incoming and outgoing remote calls |>=1.0.3 |
131134

132135
<a name="remoting" />
133136

@@ -195,6 +198,21 @@ try {
195198
}
196199
```
197200

201+
<a name="scav" />
202+
203+
### Add custom request attributes
204+
205+
You can use the SDK to add custom request attributes to the current traced service. Custom request attributes allow you to do advanced filtering of your requests in Dynatrace.
206+
207+
Adding custom request attributes to the currently traced service call is simple. Just call one of the addCustomRequestAttribute methods with your key and value:
208+
209+
```Java
210+
oneAgentSDK.addCustomRequestAttribute("region", "EMEA");
211+
oneAgentSDK.addCustomRequestAttribute("salesAmount", 2500);
212+
```
213+
214+
When no service call is being traced, the custom request attributes are dropped.
215+
198216
<a name="furtherreading" />
199217

200218
## Further readings
@@ -232,7 +250,8 @@ SLAs apply according to the customer's support level.
232250

233251
see also https://github.com/Dynatrace/OneAgent-SDK-for-Java/releases
234252

235-
|Version|Description|Links|
253+
|Version|Description |Links |
236254
|:------|:--------------------------------------|:----------------------------------------|
255+
|1.2.0 |Added support for in-process-linking |[binary](https://search.maven.org/remotecontent?filepath=com/dynatrace/oneagent/sdk/java/oneagent-sdk/1.2.0/oneagent-sdk-1.2.0.jar) [source](https://search.maven.org/remotecontent?filepath=com/dynatrace/oneagent/sdk/java/oneagent-sdk/1.2.0/oneagent-sdk-1.2.0-sources.jar) [javadoc](https://search.maven.org/remotecontent?filepath=com/dynatrace/oneagent/sdk/java/oneagent-sdk/1.2.0/oneagent-sdk-1.2.0-javadoc.jar)|
237256
|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.1.0/oneagent-sdk-1.1.0-sources.jar) [javadoc](https://search.maven.org/remotecontent?filepath=com/dynatrace/oneagent/sdk/java/oneagent-sdk/1.1.0/oneagent-sdk-1.1.0-javadoc.jar)|
238257
|1.0.3 |Initial release |[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) [javadoc](https://search.maven.org/remotecontent?filepath=com/dynatrace/oneagent/sdk/java/oneagent-sdk/1.0.3/oneagent-sdk-1.0.3-javadoc.jar)|

docs/META-INF/MANIFEST.MF

Lines changed: 0 additions & 2 deletions
This file was deleted.

docs/allclasses-frame.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
<!--NewPage-->
33
<HTML>
44
<HEAD>
5-
<!-- Generated by javadoc (build 1.6.0_45) on Tue Apr 24 08:16:21 CEST 2018 -->
5+
<!-- Generated by javadoc (build 1.6.0_45) on Thu May 24 14:52:46 CEST 2018 -->
66
<TITLE>
7-
All Classes (sdk 1.1.0 API)
7+
All Classes (sdk 1.2.0 API)
88
</TITLE>
99

10-
<META NAME="date" CONTENT="2018-04-24">
10+
<META NAME="date" CONTENT="2018-05-24">
1111

1212
<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
1313

docs/allclasses-noframe.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
<!--NewPage-->
33
<HTML>
44
<HEAD>
5-
<!-- Generated by javadoc (build 1.6.0_45) on Tue Apr 24 08:16:21 CEST 2018 -->
5+
<!-- Generated by javadoc (build 1.6.0_45) on Thu May 24 14:52:46 CEST 2018 -->
66
<TITLE>
7-
All Classes (sdk 1.1.0 API)
7+
All Classes (sdk 1.2.0 API)
88
</TITLE>
99

10-
<META NAME="date" CONTENT="2018-04-24">
10+
<META NAME="date" CONTENT="2018-05-24">
1111

1212
<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
1313

docs/com/dynatrace/oneagent/sdk/OneAgentSDKFactory.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@
22
<!--NewPage-->
33
<HTML>
44
<HEAD>
5-
<!-- Generated by javadoc (build 1.6.0_45) on Tue Apr 24 08:16:21 CEST 2018 -->
5+
<!-- Generated by javadoc (build 1.6.0_45) on Thu May 24 14:52:46 CEST 2018 -->
66
<TITLE>
7-
OneAgentSDKFactory (sdk 1.1.0 API)
7+
OneAgentSDKFactory (sdk 1.2.0 API)
88
</TITLE>
99

10-
<META NAME="date" CONTENT="2018-04-24">
10+
<META NAME="date" CONTENT="2018-05-24">
1111

1212
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
1313

1414
<SCRIPT type="text/javascript">
1515
function windowTitle()
1616
{
1717
if (location.href.indexOf('is-external=true') == -1) {
18-
parent.document.title="OneAgentSDKFactory (sdk 1.1.0 API)";
18+
parent.document.title="OneAgentSDKFactory (sdk 1.2.0 API)";
1919
}
2020
}
2121
</SCRIPT>

docs/com/dynatrace/oneagent/sdk/api/InProcessLink.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@
22
<!--NewPage-->
33
<HTML>
44
<HEAD>
5-
<!-- Generated by javadoc (build 1.6.0_45) on Tue Apr 24 08:16:20 CEST 2018 -->
5+
<!-- Generated by javadoc (build 1.6.0_45) on Thu May 24 14:52:46 CEST 2018 -->
66
<TITLE>
7-
InProcessLink (sdk 1.1.0 API)
7+
InProcessLink (sdk 1.2.0 API)
88
</TITLE>
99

10-
<META NAME="date" CONTENT="2018-04-24">
10+
<META NAME="date" CONTENT="2018-05-24">
1111

1212
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
1313

1414
<SCRIPT type="text/javascript">
1515
function windowTitle()
1616
{
1717
if (location.href.indexOf('is-external=true') == -1) {
18-
parent.document.title="InProcessLink (sdk 1.1.0 API)";
18+
parent.document.title="InProcessLink (sdk 1.2.0 API)";
1919
}
2020
}
2121
</SCRIPT>

docs/com/dynatrace/oneagent/sdk/api/InProcessLinkTracer.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@
22
<!--NewPage-->
33
<HTML>
44
<HEAD>
5-
<!-- Generated by javadoc (build 1.6.0_45) on Tue Apr 24 08:16:20 CEST 2018 -->
5+
<!-- Generated by javadoc (build 1.6.0_45) on Thu May 24 14:52:46 CEST 2018 -->
66
<TITLE>
7-
InProcessLinkTracer (sdk 1.1.0 API)
7+
InProcessLinkTracer (sdk 1.2.0 API)
88
</TITLE>
99

10-
<META NAME="date" CONTENT="2018-04-24">
10+
<META NAME="date" CONTENT="2018-05-24">
1111

1212
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
1313

1414
<SCRIPT type="text/javascript">
1515
function windowTitle()
1616
{
1717
if (location.href.indexOf('is-external=true') == -1) {
18-
parent.document.title="InProcessLinkTracer (sdk 1.1.0 API)";
18+
parent.document.title="InProcessLinkTracer (sdk 1.2.0 API)";
1919
}
2020
}
2121
</SCRIPT>

docs/com/dynatrace/oneagent/sdk/api/IncomingRemoteCallTracer.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@
22
<!--NewPage-->
33
<HTML>
44
<HEAD>
5-
<!-- Generated by javadoc (build 1.6.0_45) on Tue Apr 24 08:16:20 CEST 2018 -->
5+
<!-- Generated by javadoc (build 1.6.0_45) on Thu May 24 14:52:46 CEST 2018 -->
66
<TITLE>
7-
IncomingRemoteCallTracer (sdk 1.1.0 API)
7+
IncomingRemoteCallTracer (sdk 1.2.0 API)
88
</TITLE>
99

10-
<META NAME="date" CONTENT="2018-04-24">
10+
<META NAME="date" CONTENT="2018-05-24">
1111

1212
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
1313

1414
<SCRIPT type="text/javascript">
1515
function windowTitle()
1616
{
1717
if (location.href.indexOf('is-external=true') == -1) {
18-
parent.document.title="IncomingRemoteCallTracer (sdk 1.1.0 API)";
18+
parent.document.title="IncomingRemoteCallTracer (sdk 1.2.0 API)";
1919
}
2020
}
2121
</SCRIPT>

docs/com/dynatrace/oneagent/sdk/api/IncomingTaggable.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@
22
<!--NewPage-->
33
<HTML>
44
<HEAD>
5-
<!-- Generated by javadoc (build 1.6.0_45) on Tue Apr 24 08:16:20 CEST 2018 -->
5+
<!-- Generated by javadoc (build 1.6.0_45) on Thu May 24 14:52:46 CEST 2018 -->
66
<TITLE>
7-
IncomingTaggable (sdk 1.1.0 API)
7+
IncomingTaggable (sdk 1.2.0 API)
88
</TITLE>
99

10-
<META NAME="date" CONTENT="2018-04-24">
10+
<META NAME="date" CONTENT="2018-05-24">
1111

1212
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
1313

1414
<SCRIPT type="text/javascript">
1515
function windowTitle()
1616
{
1717
if (location.href.indexOf('is-external=true') == -1) {
18-
parent.document.title="IncomingTaggable (sdk 1.1.0 API)";
18+
parent.document.title="IncomingTaggable (sdk 1.2.0 API)";
1919
}
2020
}
2121
</SCRIPT>

docs/com/dynatrace/oneagent/sdk/api/LoggingCallback.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@
22
<!--NewPage-->
33
<HTML>
44
<HEAD>
5-
<!-- Generated by javadoc (build 1.6.0_45) on Tue Apr 24 08:16:20 CEST 2018 -->
5+
<!-- Generated by javadoc (build 1.6.0_45) on Thu May 24 14:52:46 CEST 2018 -->
66
<TITLE>
7-
LoggingCallback (sdk 1.1.0 API)
7+
LoggingCallback (sdk 1.2.0 API)
88
</TITLE>
99

10-
<META NAME="date" CONTENT="2018-04-24">
10+
<META NAME="date" CONTENT="2018-05-24">
1111

1212
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
1313

1414
<SCRIPT type="text/javascript">
1515
function windowTitle()
1616
{
1717
if (location.href.indexOf('is-external=true') == -1) {
18-
parent.document.title="LoggingCallback (sdk 1.1.0 API)";
18+
parent.document.title="LoggingCallback (sdk 1.2.0 API)";
1919
}
2020
}
2121
</SCRIPT>

0 commit comments

Comments
 (0)
0