package endtoend

import "github.com/uber/jaeger-client-go/crossdock/endtoend"

Index

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(agentHostPort string, samplingServerURL string) *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.

Source Files

handler.go

Version
v2.30.0+incompatible (latest)
Published
Dec 7, 2021
Platform
linux/amd64
Imports
11 packages
Last checked
10 hours ago

Tools for package owners.