MCPcopy
hub / github.com/grafana/tempo / applyDefaults

Method applyDefaults

pkg/ingest/testkafka/client.go:37–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35}
36
37func (r *ReqOpts) applyDefaults() {
38 if r.TenantID == "" {
39 r.TenantID = util.FakeTenantID
40 }
41 if r.Time.IsZero() {
42 r.Time = time.Now()
43 }
44}
45
46type encodingFn func(partitionID int32, tenantID string, req *tempopb.PushBytesRequest, maxSize int) ([]*kgo.Record, error)
47

Callers 1

SendReqWithOptsFunction · 0.80

Calls 1

NowMethod · 0.65

Tested by

no test coverage detected