View Source otel_resource_aws_ecs (opentelemetry_resource_detector_aws v0.0.1)
OpenTelemetry Resource Detector for AWS ECS.
This module fetches metadata from the ECS container, task metadata endpoints, and the cgroup file, and sets the the following resource attributes:
cloud.provider
: The cloud provider (AWS).cloud.platform
: The cloud platform (AWS ECS).cloud.account.id
: The AWS account ID.cloud.region
: The AWS region.cloud.resource.id
: The resource ID (Container ARN).cloud.availability_zone
: The availability zone.container.name
: The container name.container.id
: The container ID.aws.ecs.container.arn
: The ECS container ARN.aws.ecs.cluster.arn
: The ECS cluster ARN.aws.ecs.launchtype
: The ECS launch type.aws.ecs.task.arn
: The ECS task ARN.aws.ecs.task.family
: The ECS task family.aws.ecs.task.revision
: The ECS task revision.aws.log.group.names
: The log group names.aws.log.group.arns
: The log group ARNs.aws.log.stream.names
: The log stream names.aws.log.stream.arns
: The log stream ARNs.
Summary
Functions
-spec get_resource(list()) -> otel_resource:t() | no_return().