Skip to content

Commit 10cc543

Browse files
timfishlforst
authored andcommitted
Add latest tracing options to Http integration (#5810)
1 parent b390674 commit 10cc543

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

src/platforms/node/common/configuration/integrations/default-integrations.mdx

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,29 @@ Available options:
6161
```javascript
6262
{
6363
breadcrumbs: boolean; // default: true
64-
tracing: boolean; // default: false
64+
tracing: boolean | TracingOptions; // default: false
65+
}
66+
```
67+
68+
Where `TracingOptions` is:
69+
```javascript
70+
{
71+
/**
72+
* List of strings/regex controlling to which outgoing requests
73+
* the SDK will attach tracing headers.
74+
*
75+
* By default the SDK will attach those headers to all outgoing
76+
* requests. If this option is provided, the SDK will match the
77+
* request URL of outgoing requests against the items in this
78+
* array, and only attach tracing headers if a match was found.
79+
*/
80+
tracePropagationTargets?: TracePropagationTargets;
81+
82+
/**
83+
* Function determining whether or not to create spans to track outgoing requests to the given URL.
84+
* By default, spans will be created for all outgoing requests.
85+
*/
86+
shouldCreateSpanForRequest?: (url: string) => boolean;
6587
}
6688
```
6789

0 commit comments

Comments
 (0)