Skip to content

HabitaNexus/monorepo / skills/system-reliability-engineering/observability-stack

observability-stack

Unverified

scripts/rust/src/main.rs

View on GitHub
//! Example Rust Application with OpenTelemetry
//!
//! Demonstrates OpenTelemetry instrumentation in Rust.

use tracing::info;
use crate::telemetry::init_tracer;

mod telemetry;
mod services;

use services::user_service::UserService;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    // Initialize OpenTelemetry
    init_tracer(
        "my-service",
        "1.0.0",
        std::env::var("ENV")
            .unwrap_or_else(|_| "development".to_string())
            .as_str(),
    )?;

    info!("Service started");

    // Example usage
    let user_service = UserService;
    let user = user_service.get_user_by_id("123".to_string()).await?;

    info!(user_id = %user.id, "User fetched successfully");

    // Your application code here

    Ok(())
}
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 197kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall