Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 1.52 KB

File metadata and controls

45 lines (33 loc) · 1.52 KB

DeadShot 🎯

Smart HTTP Request Logging & Replay for Debugging APIs

Go Version License: MIT PRs Welcome

A lightweight logging API designed to capture, store, and replay HTTP request/response cycles for effortless debugging. Perfect for diagnosing production issues with full context.


Features

Full Request/Response Logging – Headers, query params, body, status codes
Request Replay – Reproduce bugs instantly by replaying captured traffic
Multi-SDK Support – Go and C# SDKs (more coming soon!)
Centralized Logging – Send logs to a single DeadShot instance for all services
Error Context – Attach custom tags, source system info, and error details


🚀 Quick Start

1. Install the SDK

# Go SDK
go get github.com/quantumbytecode/DeadShotGoLib


import deadshot "github.com/quantumbytecode/DeadShotGoLib"

log := deadshot.LogModel{
  Method:     "POST",
  URL:        "/api/login",
  Headers:    "Authorization: Bearer ...",
  Body:       `{"user":"hanizit"}`,
  StatusCode: 500,
  Source:     "AuthService",
  Error:      "Invalid credentials",
}

client := deadshot.DeadShot{
  EndPoint: "http://deadshot.yourdomain.com/log",
}

_ = client.Send(log)