Documentation
¶
Index ¶
- func AsEventType(s string) string
- type Event
- func (e *Event) GetSpanContext() sreCommon.TracerSpanContext
- func (e *Event) JsonBytes() ([]byte, error)
- func (e *Event) JsonMap() (map[string]interface{}, error)
- func (e *Event) JsonObject() (interface{}, error)
- func (e *Event) SetLogger(logger sreCommon.Logger)
- func (e *Event) SetSpanContext(context sreCommon.TracerSpanContext)
- func (e *Event) SetTime(time time.Time)
- type HttpProcessor
- type Input
- type Inputs
- type Observability
- type Output
- type Outputs
- type Processor
- type Processors
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsEventType ¶ added in v0.2.0
Types ¶
type Event ¶
type Event struct {
Time time.Time `json:"time"`
Channel string `json:"channel"`
Type string `json:"type"`
Data interface{} `json:"data"`
Via map[string]interface{} `json:"via,omitempty"`
// contains filtered or unexported fields
}
func (*Event) GetSpanContext ¶ added in v0.0.2
func (e *Event) GetSpanContext() sreCommon.TracerSpanContext
func (*Event) JsonObject ¶
func (*Event) SetSpanContext ¶ added in v0.0.2
func (e *Event) SetSpanContext(context sreCommon.TracerSpanContext)
type HttpProcessor ¶ added in v0.1.0
type HttpProcessor interface {
Processor
HandleHttpRequest(w http.ResponseWriter, r *http.Request)
}
type Observability ¶ added in v0.1.0
type Observability struct {
// contains filtered or unexported fields
}
func NewObservability ¶ added in v0.1.0
func (*Observability) Events ¶ added in v0.1.0
func (o *Observability) Events() *sre.Events
func (*Observability) Logs ¶ added in v0.1.0
func (o *Observability) Logs() *sre.Logs
func (*Observability) Metrics ¶ added in v0.1.0
func (o *Observability) Metrics() *sre.Metrics
func (*Observability) Traces ¶ added in v0.1.0
func (o *Observability) Traces() *sre.Traces
type Outputs ¶
type Outputs struct {
// contains filtered or unexported fields
}
func NewOutputs ¶
func (*Outputs) SendExclude ¶ added in v0.2.6
type Processors ¶ added in v0.2.0
type Processors struct {
// contains filtered or unexported fields
}
func NewProcessors ¶ added in v0.2.0
func NewProcessors() *Processors
func (*Processors) Add ¶ added in v0.2.0
func (ps *Processors) Add(p Processor)
func (*Processors) Find ¶ added in v0.2.0
func (ps *Processors) Find(eventType string) Processor
func (*Processors) FindHttpProcessor ¶ added in v0.2.0
func (ps *Processors) FindHttpProcessor(eventType string) HttpProcessor
Click to show internal directories.
Click to hide internal directories.