amazon-cloudwatch-agent icon indicating copy to clipboard operation
amazon-cloudwatch-agent copied to clipboard

[GA] Autofill ECS cluster info if it's missing

Open bjrara opened this issue 1 year ago • 0 comments

Description of issues

  1. 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

  1. This PR reads ECS cluster name from CWA if it's not populated from SDK side.
  2. 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.

  1. Run make fmt and make fmt-sh
  2. Run make lint

bjrara avatar May 06 '24 17:05 bjrara