Documentation
¶
Index ¶
- type Agent
- type Config
- type DiffFileItem
- type GitData
- type GitDiff
- type Option
- func WithAgentType(agentType string) Option
- func WithApiEndpoint(apiEndpoint string) Option
- func WithApiKey(apiKey string) Option
- func WithDebugEnabled() Option
- func WithGitInfo(repository string, commitSha string, sourceRoot string) Option
- func WithMetadata(values map[string]interface{}) Option
- func WithServiceName(service string) Option
- func WithSetGlobalTracer() Option
- func WithTestingModeEnabled() Option
- func WithUserAgent(userAgent string) Option
- type Profile
- type SpanRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent struct {
// contains filtered or unexported fields
}
func (*Agent) Flush ¶
Flushes the pending payloads to the scope backend
type Config ¶
type DiffFileItem ¶
type GitData ¶
type GitDiff ¶
type GitDiff struct {
Type string `json:"type" msgpack:"type"`
Version string `json:"version" msgpack:"version"`
Uuid string `json:"uuid" msgpack:"uuid"`
Files []DiffFileItem `json:"files" msgpack:"files"`
}
type Profile ¶
type SpanRecorder ¶
func NewSpanRecorder ¶
func NewSpanRecorder(agent *Agent) *SpanRecorder
func (*SpanRecorder) ChangeFlushFrequency ¶
func (r *SpanRecorder) ChangeFlushFrequency(frequency time.Duration)
func (*SpanRecorder) RecordSpan ¶
func (r *SpanRecorder) RecordSpan(span tracer.RawSpan)
Appends a span to the in-memory buffer for async processing
func (*SpanRecorder) SendSpans ¶
func (r *SpanRecorder) SendSpans() error
Sends the spans in the buffer to Scope
Source Files
¶
- agent.go
- ci.go
- config.go
- container.go
- dependencies.go
- git.go
- ntp.go
- recorder.go
- report.go
- util.go
Click to show internal directories.
Click to hide internal directories.