Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTracerProvider ¶
func NewTracerProvider(cfg Config, opts ...sdktrace.TracerProviderOption) (*sdktrace.TracerProvider, error)
NewTracerProvider builds and registers a global TracerProvider.
Types ¶
type Config ¶
type Config struct {
Exporter Exporter
// ServiceName is attached to exported spans. Defaults to "unknown_service".
ServiceName string
// CloudTraceProject is required when Exporter is ExporterCloudTrace.
CloudTraceProject string
// StdoutWriter defaults to os.Stderr when Exporter is ExporterStdout.
StdoutWriter io.Writer
// PrettyStdout enables human-readable stdout output.
PrettyStdout bool
// OTLPEndpoint is required when Exporter is ExporterOTLP (for example localhost:4317).
OTLPEndpoint string
// OTLPInsecure disables TLS for OTLP/gRPC (typical for local collectors).
OTLPInsecure bool
}
Config configures a TracerProvider for Spanner client tracing.
Click to show internal directories.
Click to hide internal directories.