opentelemetry-go-contrib/instrumentation/github.com/aws/aws-lambda-go/otellambda/example
opentelemetrybot d79a098204 dependabot updates Sun Nov 19 17:53:56 UTC 2023
build(deps): bump github.com/aws/aws-sdk-go from 1.47.9 to 1.48.0 in /detectors/aws/ec2
build(deps): bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.42.1 to 1.43.0 in /instrumentation/github.com/aws/aws-lambda-go/otellambda/example
build(deps): bump github.com/aws/aws-sdk-go-v2/config from 1.23.0 to 1.25.3 in /instrumentation/github.com/aws/aws-lambda-go/otellambda/example
build(deps): bump k8s.io/client-go from 0.28.3 to 0.28.4 in /detectors/aws/eks
build(deps): bump k8s.io/apimachinery from 0.28.3 to 0.28.4 in /detectors/aws/eks
build(deps): bump github.com/aws/smithy-go from 1.16.0 to 1.17.0 in /instrumentation/github.com/aws/aws-sdk-go-v2/otelaws
build(deps): bump github.com/aws/aws-sdk-go-v2/service/sqs from 1.28.0 to 1.28.1 in /instrumentation/github.com/aws/aws-sdk-go-v2/otelaws
build(deps): bump github.com/aws/aws-sdk-go-v2 from 1.22.2 to 1.23.0 in /instrumentation/github.com/aws/aws-sdk-go-v2/otelaws
build(deps): bump github.com/aws/aws-sdk-go-v2/config from 1.23.0 to 1.25.3 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.25.1 to 1.25.2 in /instrumentation/github.com/aws/aws-sdk-go-v2/otelaws
build(deps): bump github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp from 1.20.0 to 1.21.0 in /detectors/gcp
build(deps): bump github.com/aws/aws-sdk-go-v2/service/s3 from 1.42.1 to 1.43.0 in /instrumentation/github.com/aws/aws-sdk-go-v2/otelaws/example
build(deps): bump github.com/aws/aws-sdk-go-v2 from 1.22.2 to 1.23.0 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.25.1 to 1.25.2 in /instrumentation/github.com/aws/aws-sdk-go-v2/otelaws/example
2023-11-19 17:53:56 +00:00
..
Dockerfile build(deps): bump golang (#4193) 2023-08-14 07:49:50 -07:00
README.md End to end tracing support - Lambda (#983) 2021-10-25 12:50:58 -04:00
assumeRolePolicyDocument.json End to end tracing support - Lambda (#983) 2021-10-25 12:50:58 -04:00
build.sh End to end tracing support - Lambda (#983) 2021-10-25 12:50:58 -04:00
docker-compose.yml End to end tracing support - Lambda (#983) 2021-10-25 12:50:58 -04:00
go.mod dependabot updates Sun Nov 19 17:53:56 UTC 2023 2023-11-19 17:53:56 +00:00
go.sum dependabot updates Sun Nov 19 17:53:56 UTC 2023 2023-11-19 17:53:56 +00:00
main.go End to end tracing support - Lambda (#983) 2021-10-25 12:50:58 -04:00
manualAWSCleanup.sh End to end tracing support - Lambda (#983) 2021-10-25 12:50:58 -04:00
policyForRoleDocument.json End to end tracing support - Lambda (#983) 2021-10-25 12:50:58 -04:00

README.md

aws/aws-lambda-go instrumentation example

A simple example to demonstrate the AWS Lambda for Go instrumentation. In this example, container aws-lambda-client initializes an S3 client and an HTTP client and runs 2 basic operations: listS3Buckets and GET.

These instructions assume you have docker-compose installed and setup, and AWS credential configured.

  1. From within the example directory, bring up the project by running:

    docker-compose up --detach
    
  2. The instrumentation works with a stdout exporter. The example pulls this output from AWS and outputs back to stdout. To inspect the output (following build output), you can run:

    docker-compose logs
    
  3. After inspecting the client logs, the example can be cleaned up by running:

    docker-compose down
    

Note: Because the example runs on AWS Lambda, a handful of resources are created in AWS by the example. The example will automatically destroy any resources it makes; however, if you terminate the container before it completes you may have leftover resources in AWS. Should you terminate the container early, run the below command to ensure all AWS resources are cleaned up:

./manualAWSCleanup.sh