Skip to content

Feature Request: Allow to filter out specific hostnames when capturing HTTP(s) requests #480

@dreamorosi

Description

@dreamorosi

Description

As a user I would like to be able to filter out from my traces specific requests based on the hostname of the request itself when using captureHTTPsGlobal & captureHTTPs. This way I can avoid sending sensitive data or polluting traces to X-Ray when I instrument my functions.

Example

var AWSXRay = require('aws-xray-sdk');
AWSXRay.captureHTTPsGlobal(require('http'));
var http = require('http');

// ignore requests to test.myapp.com
AWSXRay.ignore_hostnames('test.myapp.com');
// OR ignore requests to test.myapp.com AND other.myapp.com
AWSXRay.ignore_hostnames(['test.myapp.com', 'other.myapp.com']);

aws-xray-sdk-python supports this: https://github.com/aws/aws-xray-sdk-python#ignoring-httplib-requests

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions