Skip to content

Commit

Permalink
Merge pull request #4 from tointernet/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
ralvescosta authored May 4, 2024
2 parents 888217a + 49a68db commit 3a37578
Show file tree
Hide file tree
Showing 12 changed files with 4,606 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
resolver = "2"

exclude = [
"examples/http_api"
"examples/http_api",
"examples/rmq-consumer"
]

members = [
Expand All @@ -22,7 +23,7 @@ members = [
"secrets_manager",
"sql_pool",
"traces",
"auth",
"auth"
]

[workspace.dependencies]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ logging = { git = "ssh://git@github.com/tointernet/ruskit.git", rev = "v1.25.0"

# Documentation

For detailed documentation and usage examples, please visit our [ruskit example repository](https://github.com/ralvescosta/ruskit_examples)
For detailed documentation and usage examples, please visit [ruskit examples](https://github.com/tointernet/ruskit/tree/main/examples)

# License

Expand Down
3 changes: 3 additions & 0 deletions examples/http_api/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# HTTP API Example

This is a simple HTTP Server example built using the Ruskit library, the main features of this example are:

- Swagger
- Auth0 Support
- Opentelemetry Trace with OTLP
- Opentelemetry Metrics with OTLP
27 changes: 27 additions & 0 deletions examples/rmq-consumer/.env.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
RUST_ENV=local
LOG_LEVEL=debug

ENABLE_HEALTH_READINESS=true
HEALTH_READINESS_PORT=8888

SECRET_MANAGER=NONE

RABBITMQ_HOST=
RABBITMQ_PORT=
RABBITMQ_USER=
RABBITMQ_PASSWORD=

#OTLP Configs
ENABLE_TRACES=false
TRACE_SERVICE_TYPE=HTTP
TRACE_HOST=localhost
TRACE_KEY=key
TRACE_EXPORT_TIMEOUT=60
TRACE_EXPORT_RATE_BASE=0.7

ENABLE_METRICS=false
METRIC_SERVICE_TYPE=HTTP
METRIC_HOST=localhost
METRIC_KEY=key
METRIC_EXPORT_TIMEOUT=60
METRIC_EXPORT_RATE_BASE=0.7
27 changes: 27 additions & 0 deletions examples/rmq-consumer/.env.prod
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
RUST_ENV=prod
LOG_LEVEL=debug

ENABLE_HEALTH_READINESS=true
HEALTH_READINESS_PORT=8888

SECRET_MANAGER=NONE

RABBITMQ_HOST=
RABBITMQ_PORT=
RABBITMQ_USER=
RABBITMQ_PASSWORD=

#OTLP Configs
ENABLE_TRACES=false
TRACE_SERVICE_TYPE=HTTP
TRACE_HOST=localhost
TRACE_KEY=key
TRACE_EXPORT_TIMEOUT=60
TRACE_EXPORT_RATE_BASE=0.7

ENABLE_METRICS=false
METRIC_SERVICE_TYPE=HTTP
METRIC_HOST=localhost
METRIC_KEY=key
METRIC_EXPORT_TIMEOUT=60
METRIC_EXPORT_RATE_BASE=0.7
27 changes: 27 additions & 0 deletions examples/rmq-consumer/.env.staging
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
RUST_ENV=staging
LOG_LEVEL=debug

ENABLE_HEALTH_READINESS=true
HEALTH_READINESS_PORT=8888

SECRET_MANAGER=NONE

RABBITMQ_HOST=
RABBITMQ_PORT=
RABBITMQ_USER=
RABBITMQ_PASSWORD=

#OTLP Configs
ENABLE_TRACES=false
TRACE_SERVICE_TYPE=HTTP
TRACE_HOST=localhost
TRACE_KEY=key
TRACE_EXPORT_TIMEOUT=60
TRACE_EXPORT_RATE_BASE=0.7

ENABLE_METRICS=false
METRIC_SERVICE_TYPE=HTTP
METRIC_HOST=localhost
METRIC_KEY=key
METRIC_EXPORT_TIMEOUT=60
METRIC_EXPORT_RATE_BASE=0.7
Loading

0 comments on commit 3a37578

Please sign in to comment.