Skip to content

Commit

Permalink
Add latest tracing options to Http integration
Browse files Browse the repository at this point in the history
  • Loading branch information
timfish committed Nov 18, 2022
1 parent 98303c8 commit 0bb5214
Showing 1 changed file with 23 additions and 1 deletion.
Original file line number Diff line number Diff line change
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 0bb5214

Please sign in to comment.