8000 fix typo · newtork/OneAgent-SDK-for-Java@7494382 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7494382

Browse files
committed
fix typo
1 parent 232b5a3 commit 7494382

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

README.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ This is the official Java implementation of the [Dynatrace OneAgent SDK](https:/
2020
* [Trace incoming and outgoing remote calls](#remoting)
2121
* [In process linking](#inprocess)
2222
* [Add custom request attributes](#scav)
23-
* [Trace incoming web requests](#inwebrequests)
24-
* [Trace outgoing web requests](#outwebrequests)
23+
* [Trace web requests](#webrequests)
24+
* [Trace incoming web requests](#inwebrequests)
25+
* [Trace outgoing web requests](#outwebrequests)
2526
* [Further reading](#furtherreading)
2627
* [Help & Support](#help)
2728
* [Release notes](#releasenotes)
@@ -219,19 +220,23 @@ oneAgentSDK.addCustomRequestAttribute("salesAmount", 2500);
219220

220221
When no service call is being traced, the custom request attributes are dropped.
221222

223+
<a name="webrequests"/>
224+
225+
## Trace web requests
226+
222227
<a name="inwebrequests"/>
223228

224-
## Trace incoming web requests
229+
### Trace incoming web requests
225230

226-
You can use the SDK to trace incoming web requests. This might be useful if Dynatrace does not support the respective web server framework or language.
231+
You can use the SDK to trace incoming web requests. This might be useful if Dynatrace does not support the respective web server framework or language processing the incoming web requests.
227232

228-
To trace any kind of incoming web request you first need to create a WebServerInfo object. The info object represents the endpoint of your web server (webservername, applicationname and context root). This object should be reused for all traced webrequests for the same application.
233+
To trace an incoming web request you first need to create a WebServerInfo object. The info object represents the endpoint of your web server (web server name, application name and context root). This object should be reused for all traced web requests within for the same application.
229234

230235
```Java
231236
WebServerInfo wsInfo = OneAgentSDK.createWebServerInfo("WebShopProduction", "CheckoutService", "/api/service/checkout");
232237
```
233238

234-
To trace a specific incoming web request you then need to create a Tracer object. It is important to provide all http headers from the request to the SDK by calling addRequestHeader(...). This ensures that tagging with our built-in sensor is working.
239+
To trace a specific incoming web request you then need to create a Tracer object. Make sure you provide all http headers from the request to the SDK by calling addRequestHeader(...). This ensures that tagging with our built-in sensor is working.
235240

236241
```Java
237242
IncomingWebRequestTracer tracer = OneAgentSDK.traceIncomingWebRequest(wsInfo,"https://www.oursupershop.com/api/service/checkout/save","POST")
@@ -263,7 +268,7 @@ try {
263268

264269
<a name="outwebrequests"/>
265270

266-
## Trace outgoing web requests
271+
### Trace outgoing web requests
267272

268273
You can use the SDK to trace outgoing web requests. This might be useful if Dynatrace does not support the respective http library or language.
269274

0 commit comments

Comments
 (0)
0