zipkin

package
v0.0.0-...-8a05c22 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (

	//ZipkinTraceIDHeader HTTP response header key to be used to store Zipkin Trace ID.
	ZipkinTraceIDHeader = "ZIPKIN_TRACE_ID"

	// ZipkinPort port exposed by the Zipkin Pod
	// https://github.com/knative/serving/blob/master/config/monitoring/200-common/100-zipkin.yaml#L25 configures the Zipkin Port on the cluster.
	ZipkinPort = 9411

	// ZipkinTraceEndpoint port-forwarded zipkin endpoint
	ZipkinTraceEndpoint = "http://localhost:9411/api/v2/trace/"

	// ZipkinNamespace namespace where zipkin pod runs.
	// https://github.com/knative/serving/blob/master/config/monitoring/200-common/100-zipkin.yaml#L19 configures the namespace for zipkin.
	ZipkinNamespace = "istio-system"
)

Variables

This section is empty.

Functions

func CheckZipkinPortAvailability

func CheckZipkinPortAvailability() error

CheckZipkinPortAvailability checks to see if Zipkin Port is available on the machine. returns error if the port is not available.

func CleanupZipkinTracingSetup

func CleanupZipkinTracingSetup() error

CleanupZipkinTracingSetup cleans up the Zipkin tracing setup on the machine. This involves killing the process performing port-forward.

func SetupZipkinTracing

func SetupZipkinTracing(kubeClientset *kubernetes.Clientset) error

SetupZipkinTracing sets up zipkin tracing which involves:

  1. Setting up port-forwarding from localhost to zipkin pod on the cluster (pid of the process doing Port-Forward is stored in a global variable).
  2. Enable AlwaysSample config for tracing.

Types

This section is empty.

Jump to

Keyboard shortcuts

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