Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Recorder ¶
type Recorder interface {
Histogram(metric Metric) otelmetric.Int64Histogram
Counter(metric Metric) otelmetric.Int64Counter
Shutdown(ctx context.Context) error
}
Recorder is the interface for recording metrics.
type RecorderOption ¶
RecorderOption holds configuration for creating a Recorder.
type ServiceReporter ¶
type ServiceReporter struct {
// contains filtered or unexported fields
}
ServiceReporter handles metrics reporting for import and export service operations.
func NewServiceReporter ¶
func NewServiceReporter(recorder Recorder) *ServiceReporter
NewServiceReporter creates a new metrics reporter for service operations.
func (*ServiceReporter) ReportExportCall ¶
func (r *ServiceReporter) ReportExportCall(ctx context.Context)
ReportExportCall reports an export operation.
func (*ServiceReporter) ReportImportCall ¶
func (r *ServiceReporter) ReportImportCall(ctx context.Context)
ReportImportCall reports an import operation.
type UnknownActionReporter ¶
type UnknownActionReporter struct {
// contains filtered or unexported fields
}
UnknownActionReporter handles metrics reporting for unknown actions across all plugins.
func NewUnknownActionReporter ¶
func NewUnknownActionReporter(recorder Recorder) *UnknownActionReporter
NewUnknownActionReporter creates a new metrics reporter for unknown actions.
func (*UnknownActionReporter) ReportUnknownCommand ¶
func (r *UnknownActionReporter) ReportUnknownCommand( ctx context.Context, editorType pluginapi.EditorType, action string, )
ReportUnknownCommand reports an unknown action encountered during import.
Click to show internal directories.
Click to hide internal directories.