package common
import "github.com/uber/jaeger-client-go/crossdock/common"
Index ¶
- Constants
- func PostJSON(ctx context.Context, url string, req interface{}) (*tracetest.TraceResponse, error)
Constants ¶
const ( // DefaultClientPortHTTP is the port where the client (controller) runs DefaultClientPortHTTP = "8080" // DefaultServerPortHTTP is the port where HTTP server runs DefaultServerPortHTTP = "8081" // DefaultTracerServiceName is the service name used by the tracer DefaultTracerServiceName = "crossdock-go" )
Functions ¶
func PostJSON ¶
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 ¶
- Version
- v2.30.0+incompatible (latest)
- Published
- Dec 7, 2021
- Platform
- linux/amd64
- Imports
- 8 packages
- Last checked
- 7 hours ago –
Tools for package owners.