MCPcopy
hub / github.com/uber/aresdb / GetReporter

Function GetReporter

utils/di.go:75–77  ·  view source on GitHub ↗

GetReporter returns reporter given tableName and shardID. If the corresponding reporter cannot be found. It will return the root scope.

(tableName string, shardID int)

Source from the content-addressed store, hash-verified

73// GetReporter returns reporter given tableName and shardID. If the corresponding
74// reporter cannot be found. It will return the root scope.
75func GetReporter(tableName string, shardID int) *Reporter {
76 return reporterFactory.GetReporter(tableName, shardID)
77}
78
79// AddTableShardReporter adds a reporter for the given table and shards. It should
80// be called when bootstrap the table shards or shard ownership changes.

Callers 15

reportBatchStatMethod · 0.92
PlayRedoLogMethod · 0.92
LoadSnapshotMethod · 0.92
AppendMethod · 0.92
BackfillMethod · 0.92
backfillMethod · 0.92
PurgeMethod · 0.92
BuildIndexMethod · 0.92
ArchiveMethod · 0.92

Calls 1

GetReporterMethod · 0.80

Tested by

no test coverage detected