Documentation
¶
Index ¶
- type ComponentQuery
- type ComponentResult
- type Knowledge
- func (kc *Knowledge) Close() error
- func (kc *Knowledge) GetComponentByName(name string) (*types.Component, error)
- func (kc *Knowledge) GetComponentPackage(language, componentType, component string) (string, error)
- func (kc *Knowledge) GetComponentsByLanguage(language string, limit, offset int) (*ComponentResult, error)
- func (kc *Knowledge) GetComponentsByType(componentType string, limit, offset int) (*ComponentResult, error)
- func (kc *Knowledge) GetCorePackages(language string) ([]string, error)
- func (kc *Knowledge) GetInstrumentationPackage(language, instrumentation string) (string, error)
- func (kc *Knowledge) GetMainSDKs(language string) ([]providers.CorePackage, error)
- func (kc *Knowledge) GetPackageType(language, packageName string) (string, error)
- func (kc *Knowledge) GetPrerequisites(language string) ([]PrerequisiteRule, error)
- func (kc *Knowledge) IsCorePackage(language, packageName string) bool
- func (kc *Knowledge) IsMainSDK(language, packageName string) bool
- func (kc *Knowledge) QueryComponents(query ComponentQuery) (*ComponentResult, error)
- type PrerequisiteRule
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComponentQuery ¶
type ComponentQuery struct {
Language string
Type string
Category string
Status string
SupportLevel string
Name string
Framework string // For instrumentation targets
MinDate time.Time
MaxDate time.Time
Limit int
Offset int
}
ComponentQuery represents a flexible query for components
type ComponentResult ¶
ComponentResult represents the result of a component query
type Knowledge ¶
type Knowledge struct {
// contains filtered or unexported fields
}
KnowledgeClient provides access to knowledge about OpenTelemetry components
func NewKnowledge ¶
NewKnowledgeClient creates a new knowledge client
func (*Knowledge) GetComponentByName ¶
GetComponentByName returns a component by name
func (*Knowledge) GetComponentPackage ¶
GetComponentPackage returns the package name for a specific component
func (*Knowledge) GetComponentsByLanguage ¶
func (kc *Knowledge) GetComponentsByLanguage(language string, limit, offset int) (*ComponentResult, error)
GetComponentsByLanguage returns components for a specific language with pagination
func (*Knowledge) GetComponentsByType ¶
func (kc *Knowledge) GetComponentsByType(componentType string, limit, offset int) (*ComponentResult, error)
GetComponentsByType returns components of a specific type with pagination
func (*Knowledge) GetCorePackages ¶
GetCorePackages returns core packages for a language
func (*Knowledge) GetInstrumentationPackage ¶
GetInstrumentationPackage returns the package name for a specific instrumentation
func (*Knowledge) GetMainSDKs ¶
func (kc *Knowledge) GetMainSDKs(language string) ([]providers.CorePackage, error)
GetMainSDKs returns all main SDK packages for the given language
func (*Knowledge) GetPackageType ¶
GetPackageType returns the type of a package for the given language
func (*Knowledge) GetPrerequisites ¶
func (kc *Knowledge) GetPrerequisites(language string) ([]PrerequisiteRule, error)
GetPrerequisites returns prerequisite rules for a language This is a simplified version - in practice, prerequisites would be derived from component metadata
func (*Knowledge) IsCorePackage ¶
IsCorePackage checks if a package is a core OpenTelemetry package
func (*Knowledge) IsMainSDK ¶
IsMainSDK checks if a package is a main SDK package for the given language
func (*Knowledge) QueryComponents ¶
func (kc *Knowledge) QueryComponents(query ComponentQuery) (*ComponentResult, error)
QueryComponents provides flexible querying with pagination
type PrerequisiteRule ¶
type PrerequisiteRule struct {
If []string `json:"if"`
Requires []string `json:"requires"`
Unless []string `json:"unless"`
}
PrerequisiteRule defines instrumentation prerequisites (legacy compatibility)