Skip to content

Commit 3fb51b5

Browse files
feat(ssi): add release note for workload selection (#33936)
Co-authored-by: May Lee <[email protected]>
1 parent 0301f10 commit 3fb51b5

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Each section from every release note are combined when the
2+
# CHANGELOG.rst is rendered. So the text needs to be worded so that
3+
# it does not depend on any information only available in another
4+
# section. This may mean repeating some details, but each section
5+
# must be readable independently of the other.
6+
#
7+
# Each section note must be formatted as reStructuredText.
8+
---
9+
features:
10+
- |
11+
Target-based workload selection is now available for Single Step Instrumentation. This feature enables you to
12+
instrument specific workloads using pod and namespace label selectors. By applying user-defined labels, you can
13+
select workloads for instrumentation without modifying applications. For example, the following configuration
14+
injects the Python tracer with a default version for pods labeled with `language=python`:
15+
```yaml
16+
instrumentation:
17+
enabled: true
18+
targets:
19+
- name: "Python Services"
20+
podSelector:
21+
matchLabels:
22+
language: "python"
23+
ddTraceVersions:
24+
python: "default"
25+
```
26+
27+
Targets can also be chained together, with the first matching rule taking precedence. For example, the following
28+
configuration installs the Python tracer for pods labeled `language=python` and the Java tracer for pods in a
29+
namespace labeled `language=java`. If a pod matches both rules, the first match takes precedence:
30+
```
31+
instrumentation:
32+
enabled: true
33+
targets:
34+
- name: "Python Services"
35+
podSelector:
36+
matchLabels:
37+
language: "python"
38+
ddTraceVersions:
39+
python: "default"
40+
- name: "Java Namespaces"
41+
namespaceSelector:
42+
matchLabels:
43+
language: "java"
44+
ddTraceVersions:
45+
python: "default"
46+
```

0 commit comments

Comments
 (0)