Documentation
¶
Index ¶
- Constants
- func ShouldTrackRequestPath(path string) bool
- type BatchStoreObservation
- type Event
- type MinuteCount
- type Options
- type RequestObservation
- type SearchObservation
- type Service
- func (s *Service) RecordBatchStore(obs BatchStoreObservation)
- func (s *Service) RecordRequest(obs RequestObservation)
- func (s *Service) RecordSearch(obs SearchObservation)
- func (s *Service) RecordStore(obs StoreObservation)
- func (s *Service) RequestFinished()
- func (s *Service) RequestStarted()
- func (s *Service) Snapshot(opts SnapshotOptions) Snapshot
- type Snapshot
- type SnapshotOptions
- type StoreObservation
- type TenantStat
Constants ¶
View Source
const (
// TenantContextKey is used to pass resolved tenant IDs from handlers to middleware telemetry.
TenantContextKey = "telemetry_tenant_id"
)
Variables ¶
This section is empty.
Functions ¶
func ShouldTrackRequestPath ¶
Types ¶
type BatchStoreObservation ¶
type MinuteCount ¶
type RequestObservation ¶
type SearchObservation ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) RecordBatchStore ¶
func (s *Service) RecordBatchStore(obs BatchStoreObservation)
func (*Service) RecordRequest ¶
func (s *Service) RecordRequest(obs RequestObservation)
func (*Service) RecordSearch ¶
func (s *Service) RecordSearch(obs SearchObservation)
func (*Service) RecordStore ¶
func (s *Service) RecordStore(obs StoreObservation)
func (*Service) RequestFinished ¶
func (s *Service) RequestFinished()
func (*Service) RequestStarted ¶
func (s *Service) RequestStarted()
func (*Service) Snapshot ¶
func (s *Service) Snapshot(opts SnapshotOptions) Snapshot
type Snapshot ¶
type Snapshot struct {
GeneratedAt time.Time `json:"generated_at"`
ActiveRequests int64 `json:"active_requests"`
StoreCount int64 `json:"store_count"`
BatchStoreCount int64 `json:"batch_store_count"`
SearchCount int64 `json:"search_count"`
RequestsPerMinute []MinuteCount `json:"requests_per_minute"`
RecentEvents []Event `json:"recent_events"`
TopTenantsByWrites []TenantStat `json:"top_tenants_by_writes"`
TopTenantsBySearches []TenantStat `json:"top_tenants_by_searches"`
}
type SnapshotOptions ¶
type StoreObservation ¶
type TenantStat ¶
Click to show internal directories.
Click to hide internal directories.