Python attribute examples

Here are some examples of using attributes with the New Relic Python agent.

Contents

Capture request parameters

Capturing request parameters is not enabled by default. The following configuration will turn on parameter capture for the default destinations: transaction_tracer, transaction_events, and error_collector. To limit the destinations see the Selecting specific destinations example.

Configuration:

attributes.include = request.parameters.*

Capture only specific request parameters

To capture only specific request parameters, you can simply pass a list to attributes.include: