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: README.md
+56-2
Original file line number
Diff line number
Diff line change
@@ -717,7 +717,9 @@ spec:
717
717
EOF
718
718
```
719
719
720
-
### Setting instrumentation resource attributes via namespace annotations
720
+
## Configure resource attributes
721
+
722
+
### Configure resource attributes with annotations
721
723
722
724
This example shows a pod configuration with OpenTelemetry annotations using the `resource.opentelemetry.io/` prefix. These annotations can be used to add resource attributes to data produced by OpenTelemetry instrumentation.
723
725
@@ -734,7 +736,59 @@ spec:
734
736
containers:
735
737
- name: main-container
736
738
image: your-image:tag
737
-
```
739
+
```
740
+
741
+
### Configure resource attributes with labels
742
+
743
+
You can also use common labels to set resource attributes.
0 commit comments