Skip to content

sentry sdk for sending metrics to sentry_agent or sentry_server in golang

Notifications You must be signed in to change notification settings

sentrycloud/sentry-sdk-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)
}

About

sentry sdk for sending metrics to sentry_agent or sentry_server in golang

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages