Coder Social home page Coder Social logo

tracing-workshop-go's Introduction

Honeycomb Tracing Workshop Materials

This repository is intended to accompany Honeycomb's Always Bee Tracing workshop.

It requires Go 1.9+ and has intentionally included the vendor directory in hopes of simplifying dependencies. It should require no additional setup or installation beyond cloning this into your $GOPATH.

If you'd like to manage / install dependencies yourself, you may want to use dep.

If you are new to go...

If you have never run go before, here is the short path to setting up go on Mac OSX. Skip this section if you have a go environment set up already.

brew install go
mkdir -p $HOME/go/{src,bin,pkg}
export GOPATH=$HOME/go
cd $GOPATH
go get github.com/honeycombio/tracing-workshop-go/...
cd src/github.com/honeycombio/tracing-workshop-go

Running the main application

Run our sample wall service with:

# Will run on port 8080
cd wall
go run ./wall.go

Interacting with your application

You may either use the web UI to read and write messages:

index new message
View contents of wall Write new message on wall

Or curl the contents of your wall directly:

# Fetch the contents of your wall
curl localhost:8080
# Write a new message to your wall
curl localhost:8080 -d "message=i'm #tracing with @honeycombio"

Running the analysis service

Over the course of the workshop, you will run a second service, analysis, with:

# Will run on port 8088
cd analysis
go run ./analysis.go

But you won't be interacting with it directly; the wall service will simply ping localhost:8088 in hopes of the analysis service being alive.

Security fine print

Any API keys included in this repository are included for ease of use during the workshop and will be rendered null and void after the event on January 24th, 2019.

tracing-workshop-go's People

Contributors

christineyen avatar maplebed avatar nathanleclaire avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.