amazon-cloudwatch-agent
amazon-cloudwatch-agent copied to clipboard
[GA] Autofill ECS cluster info if it's missing
Description of issues
- OTEL resource detection processor is unable to detect ECS cluster information.
2024-05-01T18:23:58Z I! {
"caller": "internal/resourcedetection.go:139",
"msg": "detected resource information",
"kind": "processor",
"name": "resourcedetection",
"pipeline": "traces/application_signals",
"resource": {}
}
Description of changes
- This PR reads ECS cluster name from CWA if it's not populated from SDK side.
- This PR completes a TODO after semconv version has bumped to 1.22.
License
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Tests
Describe what tests you have done.
Requirements
Before commit the code, please do the following steps.
- Run
make fmtandmake fmt-sh - Run
make lint