Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ErrorStatusTypeValue sets status tag to "error". ErrorStatusTypeValue = "error" // SuccessStatusTypeValue sets status tag to "success". SuccessStatusTypeValue = "success" // EncryptOperationTypeValue sets operation tag to "encrypt". EncryptOperationTypeValue = "encrypt" // DecryptOperationTypeValue sets operation tag to "decrypt". DecryptOperationTypeValue = "decrypt" // GrpcOperationTypeValue sets operation tag to "grpc". GrpcOperationTypeValue = "grpc" )
Variables ¶
This section is empty.
Functions ¶
func InitMetricsExporter ¶
InitMetricsExporter initializes new exporter.
Types ¶
type StatsReporter ¶
type StatsReporter interface {
ReportRequest(ctx context.Context, operationType, status string, duration float64, errors ...string)
}
StatsReporter reports metrics.
func NewStatsReporter ¶
func NewStatsReporter() (StatsReporter, error)
NewStatsReporter instantiates otel reporter.
Click to show internal directories.
Click to hide internal directories.