go-tee

command module
v0.0.0-...-622ad5a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2017 License: MIT Imports: 2 Imported by: 0

README

go-tee

Build Status Coverage Status

split traffic like a tee in order to send traffic to a debug system

Going over logs and metrics sometimes is just not enough. go-tee is basically here to help debug a production system. When you see a spcecific http error code happens in production you can fork it with harming the original traffic with go-tee and send the original http request to another system for debugging.

Building:

  1. clone this repo: git clone git@github.com:aofry/go-tee.git
  2. build with docker: docker build -t aofry/go-tee .

Running: docker run -d -p 8080:8080 -e REAL_BACKEND=http://server:port/path -e DEBUG_BACKEND=debug-server:port aofry/go-tee

A docker-compose.yml is also available as an example. To run it:

  1. clone this repo: git clone git@github.com:aofry/go-tee.git
  2. run compose docker-compose up --build
  3. call the go-tee curl localhost:8080/db

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL