Skip to content

Commit

Permalink
Add instrumentation o11y
Browse files Browse the repository at this point in the history
* Add server/Cargo.lock (we are a binary)
* Add instrumentation

Signed-off-by: lloydmeta <[email protected]>
  • Loading branch information
lloydmeta committed Nov 3, 2024
1 parent 87effb7 commit 19b86a3
Show file tree
Hide file tree
Showing 17 changed files with 2,495 additions and 22 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ stop_dev_env:
cd terraform/localdev && docker-compose down

begin_dev:
source dev.env && cd server && RUST_BACKTRACE=full cargo lambda watch
source dev.env && cd server && cargo lambda watch

prod_workspace:
@cd terraform/prod && terraform workspace select miniaturs
Expand Down
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,3 @@ Use `Makefile` targets.
* `make plan_prod` to see changes
* `make provision_prod` to apply changes
* `TO_SIGN="200x-100/https://beachape.com/images/octopress_with_container.png" make signature_for_prod` to get a signed path

## To explore

* [Logs, tracing](https://github.com/tokio-rs/tracing?tab=readme-ov-file#in-applications)
4 changes: 3 additions & 1 deletion dev.env
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ export AWS_ACCESS_KEY_ID="mockaccesskeyid"
export AWS_ENDPOINT_URL="http://localhost:4566"
export REQUIRE_PATH_STYLE_S3=true
export PROCESSED_IMAGES_BUCKET=$(cd terraform/localdev && tflocal output --raw unprocessed_image_bucket_name)
export UNPROCESSED_IMAGES_BUCKET=$(cd terraform/localdev && tflocal output --raw processed_image_bucket_name)
export UNPROCESSED_IMAGES_BUCKET=$(cd terraform/localdev && tflocal output --raw processed_image_bucket_name)
export RUST_LOG=debug
export RUST_BACKTRACE=full
Loading

0 comments on commit 19b86a3

Please sign in to comment.