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 authtypes
import (
"encoding/json"
"github.com/SigNoz/signoz/pkg/types/coretypes"
)
type Relation struct {
coretypes.Verb
}
func (Relation) Enum() []any {
return coretypes.Verb{}.Enum()
}
func (rel *Relation) UnmarshalJSON(data []byte) error {
str := ""
err := json.Unmarshal(data, &str)
if err != nil {
return err
}
alias, err := coretypes.NewVerb(str)
if err != nil {
return err
}
*rel = Relation{alias}
return nil
}