diff --git a/README.md b/README.md index 797fca4f..90ed08e1 100644 --- a/README.md +++ b/README.md @@ -69,6 +69,22 @@ async fn main() { } ``` +## Support `tokio-rs/tracing` + +`raiden` supports making span for Tracing ( span name is `dynamodb::action` with table name and api name in field ). +To activate this feature, you need to specify `tracing` feature in your `Cargo.toml`. And your crate needs `tracing` . + +```toml +# Example +[dependencies] +raiden = { + tag = "0.0.76", + git = "https://github.com/raiden-rs/raiden-dynamo.git", + features = [ "tracing"] +} +tracing = "0.1" +``` + ## Development ### Requirements diff --git a/compose.yaml b/compose.yaml deleted file mode 100644 index 5c67baca..00000000 --- a/compose.yaml +++ /dev/null @@ -1,28 +0,0 @@ -name: "raiden-rs-raiden-dynamo" - -services: - dynamodb: - image: "amazon/dynamodb-local" - command: [ - "-jar", - "DynamoDBLocal.jar", - "-sharedDb", - "-dbPath", - ".", - "-delayTransientStatuses", - "-port", - "8000", - ] - ports: - - "127.0.0.1:8000:8000" - working_dir: "/home/dynamodblocal" - - # dynamodb-admin: - # image: "aaronshaf/dynamodb-admin" - # depends_on: - # dynamodb: - # condition: "service_started" - # environment: - # DYNAMO_ENDPOINT: "http://dynamodb:8000" - # ports: - # - "127.0.0.1:8001:8001" diff --git a/makefile b/makefile index d3a8635c..d89c27fb 100644 --- a/makefile +++ b/makefile @@ -1,7 +1,8 @@ .PHONY: dynamo dynamo: - - docker compose down --volumes - - docker compose up -d --wait + - docker rm -f dynamodb + - docker stop dynamodb + docker run --rm -d --name dynamodb -p 8000:8000 amazon/dynamodb-local:latest deno run --allow-net=localhost:8000 --allow-env --no-check ./setup/setup.ts .PHONY: test