Documentation
¶
Index ¶
- func EndHTTPSpan(r *http.Request, status int)
- func HTTPMW(tracerProvider *sdktrace.TracerProvider, name string) func(http.Handler) http.Handler
- func PostgresDriver(tp trace.TracerProvider, service string) (string, error)
- func TracerProvider(ctx context.Context, service string) (*sdktrace.TracerProvider, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EndHTTPSpan ¶ added in v0.8.7
EndHTTPSpan captures request and response data after the handler is done.
func PostgresDriver ¶
func PostgresDriver(tp trace.TracerProvider, service string) (string, error)
Postgres driver will register a new tracing sql driver and return the driver name.
func TracerProvider ¶
TracerProvider creates a grpc otlp exporter and configures a trace provider. Caller is responsible for calling TracerProvider.Shutdown to ensure all data is flushed.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.