Technical requirements
As with the examples in the previous chapter, the code is written using Python 3.8, but OpenTelemetry Python supports Python 3.6+ at the time of writing. Ensure you have a compatible version installed on your system following the instructions at https://docs.python.org/3/using/index.html. To verify that a compatible version is installed on your system, run the following commands:
$ python --version $ python3 --version
On many systems, both python
and python3
point to the same installation, but this is not always the case, so it's good to be aware of this if one points to an unsupported version. In all examples, running applications in Python will call the python
command, but they can also be run via the python3
command, depending on your system.
The first few examples in this chapter will show a standalone example exploring how to configure OpenTelemetry to produce metrics. The code will require the OpenTelemetry API and SDK packages, which we&apos...