Documentation ¶
Index ¶
- Constants
- func ClearTablesInDB(db *gorm.DB) error
- func CreateAndMigrateTestDB(dbName string) (*gorm.DB, error)
- func GenerateRandomString(length int) string
- func GetRuntime() (Runtime, Handler)
- func JsonStringToStringArray(s string) []*string
- func Recover()
- func RecoverAndCrash()
- func RestRequest(url string, method string, request interface{}, response interface{}) error
- func RunTestWithDBWipe(t *testing.T, db *gorm.DB, f func(t *testing.T))
- func RunTestWithDBWipeWithName(t *testing.T, db *gorm.DB, name string, f func(t *testing.T))
- func StringContainsAnyOf(str string, substrings []string) bool
- type Handler
- type MultiSpan
- type Runtime
- type SpanConfig
- type SpanOption
- type Tracer
Constants ¶
View Source
const (
ContextKeyHighlightTracingDisabled contextKey = "HighlightTracingDisabled"
)
View Source
const KafkaBatchWorkerOp = "KafkaBatchWorker"
Variables ¶
This section is empty.
Functions ¶
func ClearTablesInDB ¶
func GenerateRandomString ¶
func GetRuntime ¶
func JsonStringToStringArray ¶
func RecoverAndCrash ¶
func RecoverAndCrash()
func RestRequest ¶
Slim wrapper around sending a request with arbitrary request/response interfaces.
func StringContainsAnyOf ¶
Types ¶
type Handler ¶
type Handler string
const ( ReportStripeUsage Handler = "report-stripe-usage" MigrateDB Handler = "migrate-db" MetricMonitors Handler = "metric-monitors" LogAlerts Handler = "log-alerts" BackfillStackFrames Handler = "backfill-stack-frames" RefreshMaterializedViews Handler = "refresh-materialized-views" PublicWorkerMain Handler = "public-worker-main" PublicWorkerBatched Handler = "public-worker-batched" PublicWorkerDataSync Handler = "public-worker-datasync" PublicWorkerTraces Handler = "public-worker-traces" AutoResolveStaleErrors Handler = "auto-resolve-stale-errors" StartSessionDeleteJob Handler = "start-session-delete-job" ScheduledTasks Handler = "scheduled-tasks" )
type MultiSpan ¶
type MultiSpan struct {
// contains filtered or unexported fields
}
func StartSpan ¶
func StartSpan(operationName string, options ...SpanOption) MultiSpan
func StartSpanFromContext ¶
func (*MultiSpan) SetAttribute ¶
func (*MultiSpan) SetOperationName ¶
type SpanConfig ¶
type SpanOption ¶
type SpanOption func(cfg *SpanConfig)
func ResourceName ¶
func ResourceName(name string) SpanOption
func Tag ¶
func Tag(key string, name interface{}) SpanOption
func WithHighlightTracingDisabled ¶
func WithHighlightTracingDisabled(disabled bool) SpanOption
func WithSpanKind ¶
func WithSpanKind(kind trace.SpanKind) SpanOption
type Tracer ¶
type Tracer struct { graphql.HandlerExtension graphql.ResponseInterceptor graphql.FieldInterceptor // contains filtered or unexported fields }
func (Tracer) ExtensionName ¶
func (Tracer) InterceptField ¶
func (Tracer) InterceptResponse ¶
Click to show internal directories.
Click to hide internal directories.