Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 449 Bytes

README.md

File metadata and controls

26 lines (20 loc) · 449 Bytes

sentry-sdk-go

sentry sdk for sending metrics to sentry_agent or sentry_server in golang

Install

go get https://github.com/sentrycloud/sentry-sdk-go

Usage

package main

import "github.com/sentrycloud/sentry-sdk-go"

func main() {
	metric := "testApp_http_qps"
	tags := map[string]string {
		"from":  "iOS",
		"aggregator": "sum",
	}

	qpsCollector := sentry.GetCollector(metric, tags, sentry.Sum, 10)
	qpsCollector.Put(1)
}