Debian Codegraph @

instrumentation/github.com/aws/aws-sdk-go-v2/otelaws/example/README.md

raw
1 # aws/aws-sdk-go-v2 instrumentation example
2
3 A simple example to demonstrate the AWS SDK V2 for Go instrumentation. In this example, container `aws-sdk-client` initializes a S3 client and a DynamoDB client and runs 2 basic operations: `listS3Buckets` and `listDynamodbTables`.
4
5 These instructions assume you have
6 [docker-compose](https://docs.docker.com/compose/) installed and setup, and [AWS credential](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html) configured.
7
8 1. From within the `example` directory, bring up the project by running:
9
10 ```sh
11 docker-compose up --detach
12 ```
13
14 2. The instrumentation works with a `stdout` exporter. To inspect the output, you can run:
15
16 ```sh
17 docker-compose logs
18 ```
19
20 3. After inspecting the client logs, the example can be cleaned up by running:
21
22 ```sh
23 docker-compose down
24 ```