Custom distro for OpenTelemetry to connect to SolarWinds
Project description
solarwinds-apm-python
An OpenTelemetry Python distribution for SolarWinds Observability. Provides automatic configuration, instrumentation, and APM data export for Python applications.
Requirements
All published artifacts support Python 3.7 or higher. A full list of system requirements is available at SolarWinds Observability System Requirements.
See CONTRIBUTING.md for how to build for development.
Getting Started
SolarWinds APM captures OpenTelemetry distributed traces and metrics from your application and sends them to SolarWinds Observability for analysis and visualization.
To install solarwinds-apm-python
and all relevant Opentelemetry Python instrumentation libraries:
pip install solarwinds-apm
opentelemetry-bootstrap --action=install
solarwinds_apm
already includes OpenTelemetry and therefore doesn't need to be installed separately. Python agent installation should be done after installation of all other service dependencies. This is so opentelemetry-bootstrap
detects those packages and installs their corresponding instrumentation libraries. For example:
pip install -r requirements.txt # installs all other dependencies
pip install solarwinds-apm
opentelemetry-bootstrap --action=install
Set the service key and ingestion endpoint. An easy way to do this is via environment variables available to your application process. An example:
export SW_APM_SERVICE_KEY=<set-service-key-here>
export SW_APM_COLLECTOR=<set-collector-here>
Run your application with the prefix opentelemetry-instrument
to wrap all common Python frameworks and start exporting OpenTelemetry traces and metrics:
opentelemetry-instrument <command_to_run_your_service>
You can also add custom span generation to your code by using the OpenTelemetry SDK. For example:
from opentelemetry import trace
tracer = trace.get_tracer(__name__)
with tracer.start_as_current_span("my_custom_span") as custom_span:
custom_span.set_attribute("my_custom_attribute", "foo_value")
print("Here is my custom OpenTelemetry span")
Documentation
OpenTelemetry Python documentation is available at the OpenTelemetry-Python API Reference.
Online documentation for SolarWinds APM Python features, configuration, and more is available at SolarWinds Observability.
Contributing
OpenTelemetry Python would not be possible without collaborations and efforts from many contributors. Our common goals as a community are to improve end user/developer experiences and empower them.
For more information about contributing to solarwinds-apm-python
, see CONTRIBUTING.md. Thank you to everyone who has contributed:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for solarwinds_apm-0.12.1-pp39-pypy39_pp73-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8255112e4034444f23c343decddacd17ae28ad94b877e6d4c1481afb070d2bd9 |
|
MD5 | f655702cd27b2bd6d6d2d47e393cb453 |
|
BLAKE2b-256 | 8b6825002b0e7b2bf327829383622f04bdee7f2682fda6695c65c56e7478273a |
Hashes for solarwinds_apm-0.12.1-pp39-pypy39_pp73-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81cf3a1b65cf74e5d763731a8ec0263397e0d0e0c5dcba0ca0b36fac2da60ad8 |
|
MD5 | 4707efed50a2637142060efaa74e7095 |
|
BLAKE2b-256 | 7acddd5ec14773e1c1d81e628d4d486c6e4dc6af79fec5ff870de610b6c98cc6 |
Hashes for solarwinds_apm-0.12.1-pp38-pypy38_pp73-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d8961a75d25cae855826fe65b1b27b74b21f75656fc51723d1e3bc4734ff54f |
|
MD5 | 6d4fb73b220ca66b922bc216b331e7a2 |
|
BLAKE2b-256 | 77681a9fcfc521185b90bb24bdd536b7f810398adc16a192c7ecc8180c250660 |
Hashes for solarwinds_apm-0.12.1-pp38-pypy38_pp73-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce3b109339ec7af474f07c6c9730deb90f100a5ae3a79fa97849be6580e56563 |
|
MD5 | a5ba8d312daf7156a2b0e488bb8e356b |
|
BLAKE2b-256 | de415f62f2132fdaf1822db589e7bf900c60234f7c7e604b5b30afe2b421185a |
Hashes for solarwinds_apm-0.12.1-pp37-pypy37_pp73-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2b059e9b93a7182da53345889a9fe35428f06548aaa19e734ca79d6718b1f89 |
|
MD5 | 2342d9cf2bf00f6c320a52ea682b100f |
|
BLAKE2b-256 | b88320ceca44c4714e757a10236d3d1ddc01eabc91d4c3888dbda84e1ace3102 |
Hashes for solarwinds_apm-0.12.1-pp37-pypy37_pp73-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc1314eb5ee02e502c7798a169b9ca2c9be6bb28b6d3a7922c8083d2fac92e0b |
|
MD5 | 89882143ac90c22dcdde1ca0abc8258d |
|
BLAKE2b-256 | 1f949a88d41b9decd86c4886d1821b9280d301171529d638680412cf5ba7af1e |
Hashes for solarwinds_apm-0.12.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ca45b7e25e3a53a710abe3ae491237a38049d8da40c5f90d6ffc935a881fc0f |
|
MD5 | 3820a5d8a3dd0092d23061963665b1b1 |
|
BLAKE2b-256 | 5215358e2065273bd189e613c27137938ddbbbfcbc33e5b2db55e5cb95741afa |
Hashes for solarwinds_apm-0.12.1-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ab7875f772e07cf6dc25f16800b0cb59cc3e105eb16f9ad4dff73fcf8440031 |
|
MD5 | 947c451a7fdf7b3cad0f780690f5f716 |
|
BLAKE2b-256 | 149cfc5bd29397e54805cb41682ec633ea203ff8e8c91a0c4d3a17b1f3b499a2 |
Hashes for solarwinds_apm-0.12.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70d5e1d67f9cc0159f4f49eeeea9b23cdf4fbf0f6d0511c96ff5f6ed1374766b |
|
MD5 | 60604f5e386ad5441fec121380739061 |
|
BLAKE2b-256 | 169409739d6d478ccf4723bf5bbfe12fc91e4271c2215ba986de35acbb20d902 |
Hashes for solarwinds_apm-0.12.1-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ca5f762d9608960d60bedbc81bdc47e285a871169c542feba449d07147aed46 |
|
MD5 | 306dce2c6eb8da9433d6a00d407ebaa3 |
|
BLAKE2b-256 | 4c8017220c462c1f8edf12005b5bffcc2b5b0647f1c62a2c9e0e7f0a1d5b0bd6 |
Hashes for solarwinds_apm-0.12.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | af349eeab983d82ee594c622912165e4ea64cac13ba0bf4f688fc557aaa93cd6 |
|
MD5 | 053a004b23989441e53c323aa796cd39 |
|
BLAKE2b-256 | 87f2e1bc158c398292b27a429e7c40a300a29ec853436a2efff498df337ea09a |
Hashes for solarwinds_apm-0.12.1-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39d52acc687c46df11a6525b324fca106871f69af14ae264e3db1e9a7e9ea5ca |
|
MD5 | d5db18327bd779cce192f4d677ec531e |
|
BLAKE2b-256 | ed5709c28445154a6c095d855ef70fa262c1518889899040196787d7b346e005 |
Hashes for solarwinds_apm-0.12.1-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09e4a7bd66d8e6db458bfb68d846b3d8b25face522f100a8b2e5d31ef2d1f703 |
|
MD5 | c129e2d9aa512a46ca96c3e66e8ed265 |
|
BLAKE2b-256 | 7a55d92166fad570dc195da920ab5d282053a0ec099578a04aa2abc196e5f799 |
Hashes for solarwinds_apm-0.12.1-cp39-cp39-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c773f71753080253b4de6c5b295f52ea2a17cd2cb58bcdb422c5157682fb6de |
|
MD5 | f0e9c0c4e742661ea22b6588e1c8af64 |
|
BLAKE2b-256 | 2bb112180b128e9de8696ac99542b19df54e73a3422cc019888d38f570e2049f |
Hashes for solarwinds_apm-0.12.1-cp38-cp38-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0ec39d92743a80cce74fc07118995aaec84dc9d5b631513d8ff332f378d5c42 |
|
MD5 | cdedb3b830559f22ccee09e2be6b4e2b |
|
BLAKE2b-256 | 98174a385c1661c36ce0780673c4a8ce0d484715b5bd05a9ae5b891621999fee |
Hashes for solarwinds_apm-0.12.1-cp38-cp38-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd087eb61438990df388eebc17a7463f845f513a3e012ea266f70ce9a108f137 |
|
MD5 | c8c7dcd08888b8cf619de0481a9a1b3f |
|
BLAKE2b-256 | c493be03948f9837838527094db6ac501b3f0e8d1241e579e7891004ae68a633 |
Hashes for solarwinds_apm-0.12.1-cp37-cp37m-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92df2a6e9b81460db472d4063065721f054ce873c26a6551f2989506cca1116c |
|
MD5 | db6ddbf532527c35fea44b345b0468d8 |
|
BLAKE2b-256 | 6da4062fe6f49616f4de146104ec1ee1260875d083a97552b2546a60e15da1a3 |
Hashes for solarwinds_apm-0.12.1-cp37-cp37m-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 495142cddd278d109bded3e06c20cd253aa1a0c617e515be45fda0f4be85077e |
|
MD5 | 2b443ca38d6e3ec053e7e58eb19bde78 |
|
BLAKE2b-256 | 92afd4c30c15b920b2276f6b5495f53ef700887b5984faafb1af6aaa98a08092 |