SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.
TypeScript apmapplication-monitoringdistributed-tracinggogood-first-issuejaegerloglogsmetricsmonitoringnextjsobservabilityopen-sourceopentelemetryprometheusreactreactjsself-hostedtracingtypescript
package audittypes
import (
"github.com/SigNoz/signoz/pkg/valuer"
"go.opentelemetry.io/collector/pdata/plog"
)
// Outcome represents the result of an audited operation.
type Outcome struct {
valuer.String
severity plog.SeverityNumber
severityText string
}
var (
OutcomeSuccess = Outcome{valuer.NewString("success"), plog.SeverityNumberInfo, "INFO"}
OutcomeFailure = Outcome{valuer.NewString("failure"), plog.SeverityNumberError, "ERROR"}
)
func (Outcome) Enum() []any {
return []any{
OutcomeSuccess,
OutcomeFailure,
}
}
// Severity returns the plog severity number for this outcome.
func (o Outcome) Severity() plog.SeverityNumber {
return o.severity
}
// SeverityText returns the severity text for this outcome.
func (o Outcome) SeverityText() string {
return o.severityText
}