package common

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

Index

Constants

const (
	// DefaultClientPortHTTP is the port where the client (controller) runs
	DefaultClientPortHTTP = "8080"

	// DefaultServerPortHTTP is the port where HTTP server runs
	DefaultServerPortHTTP = "8081"

	// DefaultServerPortTChannel is the port where TChannel server runs
	DefaultServerPortTChannel = "8082"

	// DefaultServiceName is the service name used by TChannel server
	DefaultServiceName = "go"

	// DefaultTracerServiceName is the service name used by the tracer
	DefaultTracerServiceName = "crossdock-go"
)

Functions

func PostJSON

func PostJSON(ctx context.Context, url string, req interface{}) (*tracetest.TraceResponse, error)

PostJSON sends a POST request to `url` with body containing JSON-serialized `req`. It injects tracing span into the headers (if found in the context). It returns parsed TraceResponse, or error.

Source Files

constants.go json.go

Version
v2.1.1+incompatible
Published
Feb 21, 2017
Platform
darwin/amd64
Imports
8 packages
Last checked
15 minutes ago

Tools for package owners.