Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ServiceName = "antoine's service" TestRes = typesv1.NewResource("res_schema_url", []*typesv1.KV{ typesv1.KeyVal(string(semconv.ServiceNameKey), typesv1.ValStr(ServiceName)), }) TestScope = typesv1.NewScope("scope_schema_url", "test-scope", "v0.0.0-test", []*typesv1.KV{ typesv1.KeyVal("component", typesv1.ValStr("database")), }) )
Functions ¶
func RegisterStorage ¶
func RegisterStorage(name string, builder StorageBuilder)
Types ¶
type Alertable ¶ added in v0.8.8
type Alertable interface {
AlertGetOrCreate(ctx context.Context, stackName, groupName, alertName string, create func() *typesv1.AlertState) (*typesv1.AlertState, error)
AlertUpdateState(ctx context.Context, stackName, groupName, alertName string, state *typesv1.AlertState) error
AlertDeleteStateNotInList(ctx context.Context, stackName, groupName string, keeplist []string) error
}
type AppCtx ¶
type AppCtx struct {
EnsureLoggedIn func(ctx context.Context) error
Features featurev1connect.FeatureServiceClient
Config *config.Config
State *state.State
}
type OTLPLogger ¶ added in v0.8.4
type OTLPLogger interface {
ExportLogs(ctx context.Context, req *otlplogssvcpb.ExportLogsServiceRequest) (*otlplogssvcpb.ExportLogsServiceResponse, error)
}
type OTLPMeter ¶ added in v0.8.4
type OTLPMeter interface {
ExportMetrics(ctx context.Context, req *otlpmetricssvcpb.ExportMetricsServiceRequest) (*otlpmetricssvcpb.ExportMetricsServiceResponse, error)
}
type OTLPTracer ¶ added in v0.8.4
type OTLPTracer interface {
ExportTraces(ctx context.Context, req *otlptracesvcpb.ExportTraceServiceRequest) (*otlptracesvcpb.ExportTraceServiceResponse, error)
}
type Queryable ¶
type Queryable interface {
Parse(ctx context.Context, q string) (*typesv1.Query, error)
Format(ctx context.Context, q *typesv1.Query) (string, error)
Query(ctx context.Context, q *typesv1.Query, c *typesv1.Cursor, limit int) (*typesv1.Data, *typesv1.Cursor, error)
ResolveQueryType(ctx context.Context, query *typesv1.Query) (*typesv1.DataStreamType, error)
ListSymbols(ctx context.Context, query *typesv1.Query, c *typesv1.Cursor, limit int) ([]*typesv1.Symbol, *typesv1.Cursor, error)
Stream(ctx context.Context, q *typesv1.Query, cb func(context.Context, *typesv1.Data) (bool, error), opts *StreamOption) error
GetTraceByID(ctx context.Context, traceID *typesv1.TraceID) (*typesv1.Trace, error)
GetTraceBySpanID(ctx context.Context, spanID *typesv1.SpanID) (*typesv1.Trace, error)
GetSpanByID(ctx context.Context, spanID *typesv1.SpanID) (*typesv1.Span, error)
}
type Storage ¶
type StorageBuilder ¶
type StreamOption ¶ added in v0.8.5
Click to show internal directories.
Click to hide internal directories.