Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CommitUnixTimestamp = "0" DockerTag = "unset" )
Functions ¶
func NewTracedAuthRoundTripper ¶
func NewTracedAuthRoundTripper(rt http.RoundTripper, name string) http.RoundTripper
NewTracedAuthRoundTripper creates a RoundTripper that does both tracing and org ID injection.
Types ¶
type App ¶
type App struct { Group *run.Group Logger log.Logger LogProvider ctxlog.Provider Server *server.Server Tracer opentracing.Tracer // contains filtered or unexported fields }
func New ¶
func New(cfg Config, reg prometheus.Registerer, metricPrefix string, tracer opentracing.Tracer) (app App, err error)
New creates a new App. Callers should call App.Close() after use.
type AuthTransport ¶
type AuthTransport struct {
http.RoundTripper
}
type Config ¶
type Config struct { InstrumentBuckets string `yaml:"instrument_buckets"` EnableAuth bool `yaml:"enable_auth"` ServiceName string `yaml:"service_name"` ServerConfig server.Config `yaml:"server_config"` InternalServerConfig internalserver.Config `yaml:"internal_server_config"` }
func (*Config) RegisterFlags ¶
RegisterFlags adds the flags required to config this to the given FlagSet
type TracerTransport ¶
type TracerTransport struct { http.RoundTripper // contains filtered or unexported fields }
TracerTransport is a RoundTripper that records opentracing information
Click to show internal directories.
Click to hide internal directories.