diff --git a/src/platforms/node/common/configuration/integrations/default-integrations.mdx b/src/platforms/node/common/configuration/integrations/default-integrations.mdx index 39dc76aca419e..e16dcf163c4c2 100644 --- a/src/platforms/node/common/configuration/integrations/default-integrations.mdx +++ b/src/platforms/node/common/configuration/integrations/default-integrations.mdx @@ -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; } ```