GithubHelp home page GithubHelp logo

breekmd / raygun4gowithappengine Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mindscapehq/raygun4go

0.0 1.0 0.0 40 KB

Go SDK for Raygun - works with GAE

Home Page: https://raygun.com

License: MIT License

Go 100.00%

raygun4gowithappengine's Introduction

raygun4go-fork details

added functionality to customise the POST handler. This helps with go apps hosted on app engine, where posts are not allowed with default http.Client and http.Transport, but using urlfetch.Client

therefore a custom "poster" might be used in this case

for example:

	poster := RaygunPoster{Context: context}

	raygun, err := raygun4go.NewWithCustomPoster(RaygunAppName, RaygunToken, poster)
	if err != nil {
		log.Println("Unable to create Raygun client:", err.Error())
	}
	defer raygun.HandleError()

	go raygun.SendError(err)
  

raygun4go

raygun4go adds Raygun-based error handling to your golang code. It catches all occuring errors, extracts as much information as possible and sends the error to Raygun via their REST-API.

Getting Started

Installation

  $ go get github.com/breekmd/raygun4goWithAppengine

Options

The client returned by New has several chainable option-setting methods

Method Description
Silent(bool) If set to true, this prevents the handler from sending the error to Raygun, printing it instead.
Request(*http.Request) Adds the responsible http.Request to the error.
Version(string) If your program has a version, you can add it here.
Tags([]string) Adds the given tags to the error. These can be used for filtering later.
CustomData(interface{}) Add arbitrary custom data to you error. Will only reach Raygun if it works with json.Marshal().
User(string) Add the name of the affected user to the error.

Bugs and feature requests

Have a bug or a feature request? Please first check the list of issues.

raygun4gowithappengine's People

Contributors

crahles avatar quantumnightmare avatar jaycoba avatar breekmd avatar ajmath avatar alissonsales avatar laher avatar

Watchers

 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.