endtoend

package
v2.4.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

Handler handles creating traces from a http request.

*
* json: {
*   "type": "remote",
*   "operation": "operationName",
*   "count": 2,
*   "tags": {
*     "key": "value"
*   }
* }
*
* Given the above json payload, the handler will use a tracer with the RemotelyControlledSampler
* to create 2 traces for "operationName" operation with the tags: {"key":"value"}. These traces
* are reported to the agent with the hostname "test_driver".

func NewHandler

func NewHandler() *Handler

NewHandler returns a Handler.

func (*Handler) GenerateTraces

func (h *Handler) GenerateTraces(w http.ResponseWriter, r *http.Request)

GenerateTraces creates traces given the parameters in the request.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL