opentelemetry-go-contrib/detectors/aws
github-actions[bot] 15ceaa236f
dependabot updates Mon Nov 21 15:58:19 UTC 2022 (#3028)
build(deps): bump github.com/aws/aws-sdk-go-v2/config from 1.18.0 to 1.18.2 in /instrumentation/github.com/aws/aws-lambda-go/otellambda/example
build(deps): bump github.com/aws/aws-lambda-go from 1.34.1 to 1.35.0 in /instrumentation/github.com/aws/aws-lambda-go/otellambda/example
build(deps): bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.29.2 to 1.29.3 in /instrumentation/github.com/aws/aws-lambda-go/otellambda/example
build(deps): bump google.golang.org/grpc from 1.50.1 to 1.51.0 in /instrumentation/github.com/aws/aws-lambda-go/otellambda/xrayconfig
build(deps): bump github.com/aws/aws-lambda-go from 1.34.1 to 1.35.0 in /instrumentation/github.com/aws/aws-lambda-go/otellambda/test
build(deps): bump github.com/aws/aws-lambda-go from 1.34.1 to 1.35.0 in /instrumentation/github.com/aws/aws-lambda-go/otellambda/xrayconfig
build(deps): bump github.com/aws/aws-lambda-go from 1.34.1 to 1.35.0 in /instrumentation/github.com/aws/aws-lambda-go/otellambda
build(deps): bump github.com/aws/aws-sdk-go-v2/service/dynamodb from 1.17.4 to 1.17.6 in /instrumentation/github.com/aws/aws-sdk-go-v2/otelaws/example
build(deps): bump github.com/aws/aws-sdk-go-v2/service/route53 from 1.23.0 to 1.24.0 in /instrumentation/github.com/aws/aws-sdk-go-v2/otelaws/test
build(deps): bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.29.2 to 1.29.3 in /instrumentation/github.com/aws/aws-sdk-go-v2/otelaws/example
build(deps): bump github.com/aws/aws-sdk-go-v2/service/sqs from 1.19.13 to 1.19.14 in /instrumentation/github.com/aws/aws-sdk-go-v2/otelaws
build(deps): bump github.com/aws/aws-sdk-go-v2/service/dynamodb from 1.17.4 to 1.17.6 in /instrumentation/github.com/aws/aws-sdk-go-v2/otelaws/test
build(deps): bump github.com/aws/aws-sdk-go from 1.44.136 to 1.44.142 in /detectors/aws/ec2
build(deps): bump github.com/aws/aws-sdk-go-v2/config from 1.18.0 to 1.18.2 in /instrumentation/github.com/aws/aws-sdk-go-v2/otelaws/example
build(deps): bump github.com/aws/aws-sdk-go-v2/service/dynamodb from 1.17.4 to 1.17.6 in /instrumentation/github.com/aws/aws-sdk-go-v2/otelaws
build(deps): bump github.com/emicklei/go-restful/v3 from 3.10.0 to 3.10.1 in /instrumentation/github.com/emicklei/go-restful/otelrestful/test
build(deps): bump google.golang.org/grpc from 1.50.1 to 1.51.0 in /instrumentation/google.golang.org/grpc/otelgrpc/test
build(deps): bump google.golang.org/grpc from 1.50.1 to 1.51.0 in /propagators/opencensus/examples
build(deps): bump google.golang.org/grpc from 1.50.1 to 1.51.0 in /instrumentation/google.golang.org/grpc/otelgrpc/example
build(deps): bump google.golang.org/grpc from 1.50.1 to 1.51.0 in /instrumentation/google.golang.org/grpc/otelgrpc
build(deps): bump github.com/emicklei/go-restful/v3 from 3.10.0 to 3.10.1 in /instrumentation/github.com/emicklei/go-restful/otelrestful/example
build(deps): bump github.com/prometheus/client_golang from 1.13.1 to 1.14.0 in /instrumentation/github.com/gocql/gocql/otelgocql/example
build(deps): bump github.com/emicklei/go-restful/v3 from 3.10.0 to 3.10.1 in /instrumentation/github.com/emicklei/go-restful/otelrestful
build(deps): bump golang.org/x/tools from 0.2.0 to 0.3.0 in /tools

Co-authored-by: MrAlias <MrAlias@users.noreply.github.com>
2022-11-21 08:19:19 -08:00
..
ec2 dependabot updates Mon Nov 21 15:58:19 UTC 2022 (#3028) 2022-11-21 08:19:19 -08:00
ecs dependabot updates Mon Oct 31 16:25:20 UTC 2022 (#2957) 2022-10-31 09:43:28 -07:00
eks dependabot updates Mon Nov 21 15:58:19 UTC 2022 (#3028) 2022-11-21 08:19:19 -08:00
lambda dependabot updates Mon Oct 31 16:25:20 UTC 2022 (#2957) 2022-10-31 09:43:28 -07:00
README.md Added `NewResourceDetector` API for EC2 resource detector init (#1030) 2021-09-08 18:00:58 -04:00

README.md

AWS Resource Detectors

EC2

Sample code snippet to initialize EC2 resource detector

// Instantiate a new EC2 Resource detector
ec2ResourceDetector := ec2.NewResourceDetector()
resource, err := ec2ResourceDetector.Detect(context.Background())

EC2 resource detector captures following EC2 instance environment attributes

region
availability_zone
account.id
host.id
host.image.id
host.type

ECS

Sample code snippet to initialize ECS resource detector

// Instantiate a new ECS Resource detector
ecsResourceDetector := ecs.NewResourceDetector()
resource, err := ecsResourceDetector.Detect(context.Background())

ECS resource detector captures following ECS environment attributes

container.name
container.id

EKS

Sample code snippet to initialize EKS resource detector

// Instantiate a new EKS Resource detector
eksResourceDetector := eks.NewResourceDetector()
resource, err := eksResourceDetector.Detect(context.Background())

EKS resource detector captures following EKS environment attributes

k8s.cluster.name
container.id