File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -473,6 +473,27 @@ XRayMiddleware(app, xray_recorder)
473
473
db = XRayFlaskSqlAlchemy(app)
474
474
475
475
```
476
+
477
+ ### Ignoring httplib requests
478
+
479
+ If you want to ignore certain httplib requests you can do so based on the hostname or URL that is being requsted.
480
+
481
+ ``` python
482
+ from aws_xray_sdk.ext.httplib import add_ignored as xray_add_ignored
483
+
484
+ # ignore requests to test.myapp.com
485
+ xray_add_ignored(hostname = ' test.myapp.com' )
486
+
487
+ # ignore requests to a subdomain of myapp.com with a glob pattern
488
+ xray_add_ignored(hostname = ' *.myapp.com' )
489
+
490
+ # ignore requests to /test-url and /other-test-url
491
+ xray_add_ignored(urls = [' /test-path' , ' /other-test-path' ])
492
+
493
+ # ignore requests to myapp.com for /test-url
494
+ xray_add_ignored(hostname = ' myapp.com' , urls = [' /test-url' ])
495
+ ```
496
+
476
497
## License
477
498
478
499
The AWS X-Ray SDK for Python is licensed under the Apache 2.0 License. See LICENSE and NOTICE.txt for more information.
You can’t perform that action at this time.
0 commit comments