You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: instrumentation/opentelemetry-instrumentation-falcon/src/opentelemetry/instrumentation/falcon/__init__.py
+68-3
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,36 @@
21
21
* The ``falcon.resource`` Span attribute is set so the matched resource.
22
22
* Error from Falcon resources are properly caught and recorded.
23
23
24
+
Configuration
25
+
-------------
26
+
27
+
Exclude lists
28
+
*************
29
+
To exclude certain URLs from being tracked, set the environment variable ``OTEL_PYTHON_FALCON_EXCLUDED_URLS`` with comma delimited regexes representing which URLs to exclude.
will exclude requests such as ``https://site/client/123/info`` and ``https://site/xyz/healthcheck``.
38
+
39
+
Request attributes
40
+
********************
41
+
To extract certain attributes from Falcon's request object and use them as span attributes, set the environment variable ``OTEL_PYTHON_FALCON_TRACED_REQUEST_ATTRS`` to a comma
The instrumentation supports specifying request and response hooks. These are functions that get called back by the instrumentation right after a Span is created for a request
76
+
and right before the span is finished while processing a response. The hooks can be configured as follows:
0 commit comments