Skip to content

Commit 47f13dc

Browse files
feat(python): Document HTTP request code origin options (#15268)
Document the `enable_http_request_source` and `http_request_source_threshold_ms` options for adding code source attributes to outgoing HTTP spans in the Python SDK.
1 parent 7d31819 commit 47f13dc

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/platforms/python/configuration/options.mdx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,18 @@ The threshold in milliseconds for adding the source location to database queries
409409

410410
</SdkOption>
411411

412+
<SdkOption name="enable_http_request_source" type='bool' defaultValue='True'>
413+
414+
When enabled, the source location will be added to outgoing HTTP requests.
415+
416+
</SdkOption>
417+
418+
<SdkOption name="http_request_source_threshold_ms" type='int' defaultValue='100'>
419+
420+
The threshold in milliseconds for adding the source location to an outgoing HTTP request. The request location will be added to the request for requests slower than the specified threshold.
421+
422+
</SdkOption>
423+
412424
<SdkOption name="trace_ignore_status_codes" type='bool' defaultValue='frozenset()'>
413425

414426
An optional property that disables tracing for HTTP requests with certain status codes.

0 commit comments

Comments
 (0)