sqltrace

package
v0.0.0-...-e2786a6 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package sqltrace implements utility types for tracing SQL queries.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SQLEvent

type SQLEvent struct {
	SQL        string
	Tag        string
	ClientSend time.Time
	ClientRecv time.Time
}

SQLEvent is an SQL query event for use with appdash. It's primary function is to measure the time between when the query is sent and later received.

func (SQLEvent) End

func (e SQLEvent) End() time.Time

End implements the appdash TimespanEvent interface by returning the time at which the SQL query returned / was received.

func (SQLEvent) Important

func (SQLEvent) Important() []string

Important implements the appdash ImportantEvent by returning the SQL and Tag keys.

func (SQLEvent) Schema

func (SQLEvent) Schema() string

Schema implements the appdash Event interface by returning this event's constant schema string, "SQL".

func (SQLEvent) Start

func (e SQLEvent) Start() time.Time

Start implements the appdash TimespanEvent interface by returning the time at which the SQL query was sent out.

Jump to

Keyboard shortcuts

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