Skip to content

Commit e31d845

Browse files
committed
Simplifying code example
1 parent 3c6f62e commit e31d845

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/index.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,8 +316,11 @@ It is possible to filter or modify traces before they are sent to the agent by
316316
configuring the tracer with a processing pipeline. For instance to filter out
317317
all traces of incoming requests to a specific url::
318318

319-
processing_pipeline = [FilterRequestsOnUrl(r'http://test\.example\.com')]
320-
Tracer.configure(settings={'PROCESSING_PIPELINE': processing_pipeline})
319+
Tracer.configure(settings={
320+
'PROCESSING_PIPELINE': [
321+
FilterRequestsOnUrl(r'http://test\.example\.com'),
322+
],
323+
})
321324

322325
All the processors in the processing pipeline will be evaluated sequentially
323326
for each trace and the resulting trace will either be sent to the agent or

0 commit comments

Comments
 (0)