-
Notifications
You must be signed in to change notification settings - Fork 440
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
read resource attributes from annotations (#3204)
* read resource attributes from annotations * use labels * changelog entry * fix rebase * change prefix to "resource.opentelemetry.io/" * change prefix to "resource.opentelemetry.io/" * fix rebase * update changelog and docs * changes from feedback * changes from feedback * generate * Update pkg/instrumentation/apachehttpd.go Co-authored-by: Jacob Aronoff <[email protected]> * pr review * comments * lint * lint * Update README.md Co-authored-by: Jacob Aronoff <[email protected]> * change priority to avoid breaking change * add e2e test * add e2e test * add e2e test * pr review * use pod methods * don't modify the existing chainsaw test * don't modify the existing chainsaw test --------- Co-authored-by: Jacob Aronoff <[email protected]>
- Loading branch information
1 parent
e40e3eb
commit e82f595
Showing
20 changed files
with
720 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
change_type: enhancement | ||
|
||
component: auto-instrumentation | ||
|
||
note: Add support for k8s labels such as app.kubernetes.io/name for resource attributes | ||
|
||
issues: [3112] | ||
|
||
subtext: | | ||
You can opt-in as follows: | ||
```yaml | ||
apiVersion: opentelemetry.io/v1alpha1 | ||
kind: Instrumentation | ||
metadata: | ||
name: my-instrumentation | ||
spec: | ||
defaults: | ||
useLabelsForResourceAttributes: true | ||
``` | ||
The following labels are supported: | ||
- `app.kubernetes.io/name` becomes `service.name` | ||
- `app.kubernetes.io/version` becomes `service.version` | ||
- `app.kubernetes.io/part-of` becomes `service.namespace` | ||
- `app.kubernetes.io/instance` becomes `service.instance.id` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.