Search…
Exclusions
You can configure regex using a pod annotation to ignore the URLs from tracing in the sidecar that is being injected. Add the annotations to the pod spec file.
Example
1
apiVersion: apps/v1
2
kind: Deployment
3
metadata:
4
name: trace-server
5
namespace: trace-env
6
labels:
7
app: trace-server
8
spec:
9
selector:
10
matchLabels:
11
app: trace-server
12
template:
13
metadata:
14
labels:
15
app: trace-server
16
annotations:
17
proxy.traceable.ai/ignoreMatcher: '[{"url_path":"\/echo\/live"}, {"url_path":"\/user\/[0-9]*\/cart"}]'
18
spec:
19
containers:
20
- name: trace-server
21
image: trace-server:latest
22
imagePullPolicy: Never
23
ports:
24
- containerPort: 8090
25
env:
26
- name: JAVA_TOOL_OPTIONS
27
value: "-XX:+HeapDumpOnOutOfMemoryError"
28
Copied!
In the above proxy.traceable.ai/ignoreMatcher annotation example:
  • "/echo/live" - Matches the requests for the path "/echo/live" and leaves it out from tracing.
  • "/user/[0-9]*/cart" - Matches the URL, for example, "/user/10/cart and ignores it from tracing.
  • "/mypage\.html" - Matches the page mypage.html from tracing. Make sure to add "\" in the regex to escape the character.
  • "/product/[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}" - Matches the product UUIDs in the URL.
Last modified 4mo ago
Export as PDF
Copy link