Documentation
¶
Index ¶
- func MustInitTracerProvider(project string, opts ...sdktrace.TracerProviderOption) *sdktrace.TracerProvider
- func NewLoggingClient(project string) (*logging.Client, error)
- func WithGKEAutoDiscoverMetaData() discoveryOption
- func WithKubernetes(clusterName, namespace, pod, containerName string) discoveryOption
- func WithPubSub() discoveryOption
- func WithTraceExporterOption(to texporter.Option) discoveryOption
- type Services
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustInitTracerProvider ¶ added in v0.0.41
func MustInitTracerProvider(project string, opts ...sdktrace.TracerProviderOption) *sdktrace.TracerProvider
func NewLoggingClient ¶ added in v0.0.7
NewLoggingClient creates a Client which also handles Errors by simply writing to Stderr
func WithGKEAutoDiscoverMetaData ¶ added in v0.0.40
func WithGKEAutoDiscoverMetaData() discoveryOption
func WithKubernetes ¶ added in v0.0.20
func WithKubernetes(clusterName, namespace, pod, containerName string) discoveryOption
func WithPubSub ¶ added in v0.0.59
func WithPubSub() discoveryOption
func WithTraceExporterOption ¶ added in v0.0.60
Types ¶
type Services ¶
type Services struct { Logging *logging.Client ErrorReporting *errorreporting.Client PubSub *pubsub.Client TracerProvider *sdktrace.TracerProvider MonitoredResource *monitoredres.MonitoredResource }
Services contains all Google Cloud Services that we use TODO: Spit non-Services to another struct
func DiscoverServices ¶
func DiscoverServices(project, serviceName string, tracerProviderOptions []sdktrace.TracerProviderOption, opts ...discoveryOption) (*Services, error)
DiscoverServices builds clients for all Services that we use.
Click to show internal directories.
Click to hide internal directories.