modulepackage
1.1.0
Repository: https://github.com/sentrycloud/sentry-sdk-go.git
Documentation: pkg.go.dev
# README
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)
}
# Functions
GetCollector used for most scenarios, user just have to get a Collector, then use that to Put metric data.
No description provided by the author
SetReportURL set reportURL to a server report URL, replace the default local agent URL.
StartCollectGC start collect gc in a separation goroutine.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author