Documentation ¶
Index ¶
- Variables
- type MappingBuilder
- func (mb *MappingBuilder) GetDependenciesMappings() (string, error)
- func (mb *MappingBuilder) GetMapping(mappingType MappingType) (string, error)
- func (mb *MappingBuilder) GetSamplingMappings() (string, error)
- func (mb *MappingBuilder) GetSpanServiceMappings() (spanMapping string, serviceMapping string, err error)
- type MappingType
Constants ¶
This section is empty.
Variables ¶
View Source
var MAPPINGS embed.FS
MAPPINGS contains embedded index templates.
Functions ¶
This section is empty.
Types ¶
type MappingBuilder ¶ added in v1.23.0
type MappingBuilder struct { TemplateBuilder es.TemplateBuilder Indices config.Indices EsVersion uint UseILM bool ILMPolicyName string }
MappingBuilder holds common parameters required to render an elasticsearch index template
func (*MappingBuilder) GetDependenciesMappings ¶ added in v1.23.0
func (mb *MappingBuilder) GetDependenciesMappings() (string, error)
GetDependenciesMappings returns dependencies mappings
func (*MappingBuilder) GetMapping ¶ added in v1.23.0
func (mb *MappingBuilder) GetMapping(mappingType MappingType) (string, error)
GetMapping returns the rendered mapping based on elasticsearch version
func (*MappingBuilder) GetSamplingMappings ¶ added in v1.55.0
func (mb *MappingBuilder) GetSamplingMappings() (string, error)
GetSamplingMappings returns sampling mappings
func (*MappingBuilder) GetSpanServiceMappings ¶ added in v1.23.0
func (mb *MappingBuilder) GetSpanServiceMappings() (spanMapping string, serviceMapping string, err error)
GetSpanServiceMappings returns span and service mappings
type MappingType ¶ added in v1.63.0
type MappingType int
MappingType represents the type of Elasticsearch mapping
const ( SpanMapping MappingType = iota ServiceMapping DependenciesMapping SamplingMapping )
func MappingTypeFromString ¶ added in v1.63.0
func MappingTypeFromString(val string) (MappingType, error)
MappingTypeFromString converts a string to a MappingType
func (MappingType) String ¶ added in v1.63.0
func (mt MappingType) String() string
Click to show internal directories.
Click to hide internal directories.