Skip to content

Commit

Permalink
Add latest tracing options to Http integration (#5810)
Browse files Browse the repository at this point in the history
  • Loading branch information
timfish authored and lforst committed Nov 22, 2022
1 parent b390674 commit 10cc543
Showing 1 changed file with 23 additions and 1 deletion.
Expand Up @@ -61,7 +61,29 @@ Available options:
```javascript
{
breadcrumbs: boolean; // default: true
tracing: boolean; // default: false
tracing: boolean | TracingOptions; // default: false
}
```

Where `TracingOptions` is:
```javascript
{
/**
* List of strings/regex controlling to which outgoing requests
* the SDK will attach tracing headers.
*
* By default the SDK will attach those headers to all outgoing
* requests. If this option is provided, the SDK will match the
* request URL of outgoing requests against the items in this
* array, and only attach tracing headers if a match was found.
*/
tracePropagationTargets?: TracePropagationTargets;

/**
* Function determining whether or not to create spans to track outgoing requests to the given URL.
* By default, spans will be created for all outgoing requests.
*/
shouldCreateSpanForRequest?: (url: string) => boolean;
}
```

Expand Down

0 comments on commit 10cc543

Please sign in to comment.