func()

in enrichments/trace/internal/elastic/span.go [354:365]


func (s *spanEnrichmentContext) getTxnType() string {
	txnType := "unknown"
	switch {
	case s.typeValue != "":
		txnType = s.typeValue
	case s.isMessaging:
		txnType = "messaging"
	case s.isRPC, s.isHTTP:
		txnType = "request"
	}
	return txnType
}