-
Notifications
You must be signed in to change notification settings - Fork 3.1k
service resource attributes #39335
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
dmitryax
merged 30 commits into
open-telemetry:main
from
zeitlinger:automatic-resource-attributes
May 20, 2025
Merged
service resource attributes #39335
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
d837282
automatic resource attributes
zeitlinger 677d462
rename to service rules
zeitlinger 105cfdf
remove exclude
zeitlinger f7991de
remove exclude
zeitlinger 6345139
cleanup
zeitlinger 912bf7c
cleanup
zeitlinger 2300f1b
cleanup
zeitlinger 474f622
fix test
zeitlinger 0f425c4
lint
zeitlinger 08858ca
readme, changelog
zeitlinger bdf6acf
readme, changelog
zeitlinger f0f7d3c
added note
zeitlinger 9500f72
pr review
zeitlinger f1d0618
fix
zeitlinger c2b6488
fix
zeitlinger 4b25a30
put service attribute config in extract.metadata
zeitlinger 4570828
put service attribute config in extract.metadata
zeitlinger 5c1f903
put service attribute config in extract.metadata
zeitlinger c5b62a0
put service attribute config in extract.metadata
zeitlinger febd8f7
add docs
zeitlinger 7e93ba9
generate
zeitlinger ee3b3bc
generate
zeitlinger 4bc8fa9
gci
zeitlinger 40ef149
gci
zeitlinger 1c16195
fix todo
zeitlinger 0a574d1
simplify logic
zeitlinger 6c5c964
docs
zeitlinger b45f22f
container can never be a fallback for service name
zeitlinger e437d36
container can never be a fallback for service name
zeitlinger 7760e5d
container can never be a fallback for service name
zeitlinger File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,17 @@ | ||
change_type: enhancement | ||
|
||
component: k8sattributesprocessor | ||
|
||
note: Add option to configure automatic service resource attributes | ||
|
||
issues: [37114] | ||
|
||
subtext: | | ||
Implements [Service Attributes](https://opentelemetry.io/docs/specs/semconv/non-normative/k8s-attributes/#service-attributes). | ||
|
||
If you are using the file log receiver, you can now create the same resource attributes as traces (via OTLP) received | ||
from an application instrumented with the OpenTelemetry Operator - | ||
simply by adding the | ||
`extract: { metadata: ["service.namespace", "service.name", "service.version", "service.instance.id"] }` | ||
configuration to the `k8sattributesprocessor` processor. | ||
See the [documentation](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/processor/k8sattributesprocessor/README.md#configuring-recommended-resource-attributes) for more details. |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.