Skip to content

gzp79/shine-service-rs

Repository files navigation

Shared crates for the shine project

Some common crates for the shine project:

  • shine-test
  • shine-test-macros
  • shine-macros
  • shine-service

shine-test

Automatically initializing logging and other handy features for the shine engine tests.

This crate was highly inspired by the test-log crate.

Requirements

shine-service

The common features for all the server projects.

Testing

# Start up mocked resource
$ docker compose up --build

# Run tests
$ cargo test -p shine-service

Telemetry

Jaeger

Set up telemetry configuration:

  {
    "telemetry": {
      "tracing": {
        "type": "openTelemetryProtocol",
        "endpoint": "http://localhost:4317"
      }
    }
  }

Launch the application:

# Run jaeger in background with OTLP ingestion enabled.
$ docker run -d -p16686:16686 -p4317:4317 -e COLLECTOR_OTLP_ENABLED=true jaegertracing/all-in-one:latest

# View spans
$ firefox http://localhost:16686/

Cargo extensions

These are the most frequently used cargo extensions in the shine project:

cargo install cargo-outdated
cargo install cargo-tree
cargo install trunk

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages