stdout

command module
v0.0.0-...-bd67a7a Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2026 License: Apache-2.0 Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

database/sql instrumentation stdout example

A MySQL client using database/sql with instrumentation. Then, the client prints the trace data to stdout and serves metrics data via prometheus client.

These instructions expect you have Docker Compose V2 installed.

Bring up all services to run the example:

docker compose up -d

Then check the logs of client service to see the results:

docker compose logs client

Shut down the services when you are finished with the example:

docker compose down

Documentation

Overview

Package main implements an example application that demonstrates how to use otelsql with stdout exporter for tracing and Prometheus HTTP server for metrics collection.

Jump to

Keyboard shortcuts

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