package
0.0.0-20241119205146-dbee48790ac8
Repository: https://github.com/datadog/trace-examples.git
Documentation: pkg.go.dev
# README
Sqlite Tracing Example
This application demonstrates DataDog APM tracing with a Sqlite database.
This example application creates a Sqlite database and a simple table in that database. Inserts 100 records into that table and then queries the records from the table and prints the data to stdout. The trace spans the full execution of the example application.
To Run
- Make sure that you have the Trace Agent setup and configured with your key.
- From this directory run
go build
- From this directory run
./go-sqlite3
- Go do the DataDog website and under the APM menu click on
Traces
. It will take a few seconds but you should see a trace forsqlite-example
show up at the top of the Traces.