You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/core/tracer.md
+3-6Lines changed: 3 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ Tracer is an opinionated thin wrapper for [AWS X-Ray SDK for Node.js](https://gi
8
8
## Key features
9
9
10
10
* Auto-capturing cold start and service name as annotations, and responses or full exceptions as metadata.
11
-
* Automatically tracing HTTP(S) clients and generating segments for each request.
11
+
* Automatically tracing HTTP(S) clients including `fetch`and generating segments for each request.
12
12
* Supporting tracing functions via decorators, middleware, and manual instrumentation.
13
13
* Supporting tracing AWS SDK v2 and v3 via AWS X-Ray SDK for Node.js.
14
14
* Auto-disable tracing when not running in the Lambda environment.
@@ -211,12 +211,12 @@ If you're looking to shave a few microseconds, or milliseconds depending on your
211
211
212
212
### Tracing HTTP requests
213
213
214
-
When your function makes calls to HTTP APIs, Tracer automatically traces those calls and add the API to the service graph as a downstream service.
214
+
When your function makes outgoing requests to APIs, Tracer automatically traces those calls and adds the API to the service graph as a downstream service.
215
215
216
216
You can opt-out from this feature by setting the **`POWERTOOLS_TRACER_CAPTURE_HTTPS_REQUESTS=false`** environment variable or by passing the `captureHTTPSRequests: false` option to the `Tracer` constructor.
217
217
218
218
!!! info
219
-
The following snippet shows how to trace [axios](https://www.npmjs.com/package/axios) requests, but you can use any HTTP client library built on top of [http](https://nodejs.org/api/http.html) or[https](https://nodejs.org/api/https.html).
219
+
The following snippet shows how to trace [`fetch`](https://developer.mozilla.org/en-US/docs/Web/API/fetch) requests, but you can use any HTTP client library built on top it, or on [http](https://nodejs.org/api/http.html), and[https](https://nodejs.org/api/https.html).
220
220
Support to 3rd party HTTP clients is provided on a best effort basis.
221
221
222
222
=== "index.ts"
@@ -225,9 +225,6 @@ You can opt-out from this feature by setting the **`POWERTOOLS_TRACER_CAPTURE_HT
225
225
--8<-- "docs/snippets/tracer/captureHTTP.ts"
226
226
```
227
227
228
-
1. You can install the [axios](https://www.npmjs.com/package/axios) package using `npm i axios`
0 commit comments