Documentation ¶
Index ¶
- func InitializeMetrics(subsystem string)
- func IssueRequest(restyClient *resty.Client, verb string, path string, body interface{}, ...) (string, error)
- func LittleJaegerExample(jaegerTracerProvider *tracesdk.TracerProvider, ctx context.Context)
- func NewJaegerTracerProvider(service string, url string) (*tracesdk.TracerProvider, error)
- func RecordEvent(name string, tag string, err error)
- func RecordEventValue(name string, tag string, value float64)
- func RunClient(serverAddress string, workers int, provider *tracesdk.TracerProvider)
- func RunServer(jaegerTracerProvider *tracesdk.TracerProvider)
- func SetupHTTPServer(responder Responder)
- type Client
- type FetchScanResults
- type Responder
- type ScanResults
- type Server
- type StartScan
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitializeMetrics ¶
func InitializeMetrics(subsystem string)
func IssueRequest ¶
func LittleJaegerExample ¶
func LittleJaegerExample(jaegerTracerProvider *tracesdk.TracerProvider, ctx context.Context)
func NewJaegerTracerProvider ¶
func NewJaegerTracerProvider(service string, url string) (*tracesdk.TracerProvider, error)
NewJaegerTracerProvider returns an OpenTelemetry TracerProvider configured to use the Jaeger exporter that will send spans to the provided url. The returned TracerProvider will also use a Resource configured with all the information about the application.
func RecordEvent ¶
func RecordEventValue ¶
func RunClient ¶
func RunClient(serverAddress string, workers int, provider *tracesdk.TracerProvider)
func RunServer ¶
func RunServer(jaegerTracerProvider *tracesdk.TracerProvider)
Types ¶
type FetchScanResults ¶
type FetchScanResults struct {
JobId string
}
type Responder ¶
type Responder interface { StartScan(scan *StartScan) FetchScanResults(scanId string) (*ScanResults, error) NotFound(w http.ResponseWriter, r *http.Request) Error(w http.ResponseWriter, r *http.Request, err error, statusCode int) }
Responder .....
type ScanResults ¶
type Server ¶
type Server struct {
Provider *tracesdk.TracerProvider
}
func (*Server) FetchScanResults ¶
func (s *Server) FetchScanResults(scanId string) (*ScanResults, error)
Click to show internal directories.
Click to hide internal directories.