You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The source files of this example are available `here <https://github.com/open-telemetry/opentelemetry-python/tree/main/docs/examples/sqlcommenter/>`_.
12
+
This example uses Docker to manage a database server and OpenTelemetry collector.
13
+
14
+
Run MySQL server
15
+
----------------
16
+
17
+
A running MySQL server with general logs enabled will store query statements with context resulting from the sqlcommenter feature enabled in this example.
18
+
19
+
.. code-block:: sh
20
+
21
+
cd books_database
22
+
docker build -t books-db .
23
+
docker run -d --name books-db -p 3306:3306 books-db
24
+
cd ..
25
+
26
+
Check that the run worked and the general log is available:
* `OpenTelemetry MySQL instrumentation <https://github.com/open-telemetry/opentelemetry-python-contrib/tree/main/instrumentation/opentelemetry-instrumentation-mysql>`_
0 commit comments