OpenTelemetry instrumentation for Python modules
Go to file
OpenTelemetry Bot dcbf1fd9bb
[release/v1.27.x-0.48bx] Prepare release 1.27.0/0.48b0 (#2827)
* Prepare release 1.27.0/0.48b0

* Update core SHA

---------

Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2024-08-28 15:20:31 -06:00
.github [release/v1.27.x-0.48bx] Prepare release 1.27.0/0.48b0 (#2827) 2024-08-28 15:20:31 -06:00
_template [release/v1.27.x-0.48bx] Prepare release 1.27.0/0.48b0 (#2827) 2024-08-28 15:20:31 -06:00
docs feat: add opentelemetry-instrumentation-threading library (#2253) 2024-04-11 11:57:19 -05:00
exporter [release/v1.27.x-0.48bx] Prepare release 1.27.0/0.48b0 (#2827) 2024-08-28 15:20:31 -06:00
instrumentation [release/v1.27.x-0.48bx] Prepare release 1.27.0/0.48b0 (#2827) 2024-08-28 15:20:31 -06:00
opentelemetry-contrib-instrumentations [release/v1.27.x-0.48bx] Prepare release 1.27.0/0.48b0 (#2827) 2024-08-28 15:20:31 -06:00
opentelemetry-distro [release/v1.27.x-0.48bx] Prepare release 1.27.0/0.48b0 (#2827) 2024-08-28 15:20:31 -06:00
opentelemetry-instrumentation [release/v1.27.x-0.48bx] Prepare release 1.27.0/0.48b0 (#2827) 2024-08-28 15:20:31 -06:00
processor/opentelemetry-processor-baggage [release/v1.27.x-0.48bx] Prepare release 1.27.0/0.48b0 (#2827) 2024-08-28 15:20:31 -06:00
propagator [release/v1.27.x-0.48bx] Prepare release 1.27.0/0.48b0 (#2827) 2024-08-28 15:20:31 -06:00
resource [release/v1.27.x-0.48bx] Prepare release 1.27.0/0.48b0 (#2827) 2024-08-28 15:20:31 -06:00
scripts Remove references to test.yml (#2830) 2024-08-27 18:08:00 +00:00
sdk-extension/opentelemetry-sdk-extension-aws Bump version for aws propagator and aws sdk extension for release (#2773) 2024-08-05 10:43:04 -07:00
tests/opentelemetry-docker-tests/tests Unwrap Celery's `ExceptionInfo` (#1863) 2023-09-03 13:56:33 +03:00
util/opentelemetry-util-http [release/v1.27.x-0.48bx] Prepare release 1.27.0/0.48b0 (#2827) 2024-08-28 15:20:31 -06:00
.codespellrc Codespell ci (#1237) 2022-08-29 15:08:25 +05:30
.coveragerc Update tooling (#1330) 2022-09-15 23:42:49 +05:30
.flake8 Bump black to 24.3.0 (#2452) 2024-04-23 08:45:48 -07:00
.gitignore Move benchmarks outside of tests directory (#2670) 2024-07-09 17:17:00 -06:00
.isort.cfg remove need to clone core repo (#678) 2021-09-27 20:28:32 +00:00
.pre-commit-config.yaml Add support for python 3.12 (#2572) 2024-06-10 12:49:10 -07:00
.pylintrc Use python baseline for pylint (#2636) 2024-06-26 12:35:11 -07:00
.readthedocs.yml readthedocs: update build os config (#2389) 2024-04-15 09:26:57 -07:00
CHANGELOG.md [release/v1.27.x-0.48bx] Prepare release 1.27.0/0.48b0 (#2827) 2024-08-28 15:20:31 -06:00
CONTRIBUTING.md Remove references to test.yml (#2830) 2024-08-27 18:08:00 +00:00
LICENSE fix: revert modifications to Apache license (#2429) 2024-04-22 13:23:38 -05:00
LICENSE.Apache fix: revert modifications to Apache license (#2429) 2024-04-22 13:23:38 -05:00
LICENSE.BSD3 Small cleanup (#27) 2020-04-08 13:17:31 -07:00
README.md Remove references to test.yml (#2830) 2024-08-27 18:08:00 +00:00
RELEASING.md Include dummy version upload as part of contributing process to mitig… (#2747) 2024-07-29 11:57:36 -07:00
dev-requirements.txt Bump docs and dev requirements with dependabot security warnings (#2614) 2024-06-20 08:48:06 -07:00
docs-requirements.txt confluent_kafka: extend instruments version declaration to include 2.4.0 (#2616) 2024-06-20 16:51:28 -06:00
eachdist.ini [release/v1.27.x-0.48bx] Prepare release 1.27.0/0.48b0 (#2827) 2024-08-28 15:20:31 -06:00
gen-requirements.txt Bump jinja2 from 3.1.3 to 3.1.4 (#2503) 2024-05-09 13:53:12 -05:00
pyproject.toml Upgrade black (#802) 2021-11-10 20:57:01 +00:00
pytest.ini Falcon 3 support (#644) 2021-09-27 19:58:13 +00:00
tox.ini fix: `fastapi` auto-instrumentation by removing `fastapi-slim` support (#2783) 2024-08-08 08:45:00 -07:00

README.md

<p align="center"> <strong> <a href="https://opentelemetry.io/docs/instrumentation/python/getting-started/">Getting Started<a/>   •   <a href="https://opentelemetry-python-contrib.readthedocs.io/">API Documentation<a/>   •   <a href="https://github.com/open-telemetry/opentelemetry-python/discussions">Getting In Touch (GitHub Discussions)<a/> </strong> </p> <p align="center"> <a href="https://github.com/open-telemetry/opentelemetry-python-contrib/releases"> <img alt="GitHub release (latest by date including pre-releases)" src="https://img.shields.io/github/v/release/open-telemetry/opentelemetry-python-contrib?include_prereleases&style=for-the-badge"> </a> <a href="https://codecov.io/gh/open-telemetry/opentelemetry-python-contrib/branch/main/"> <img alt="Codecov Status" src="https://img.shields.io/codecov/c/github/open-telemetry/opentelemetry-python-contrib?style=for-the-badge"> </a> <a href="https://github.com/open-telemetry/opentelemetry-python-contrib/blob/main/LICENSE"> <img alt="license" src="https://img.shields.io/badge/license-Apache_2.0-green.svg?style=for-the-badge"> </a> <br/> <a href="https://github.com/open-telemetry/opentelemetry-python-contrib/actions/workflows/test_0.yml"> <img alt="Build Status 0" src="https://github.com/open-telemetry/opentelemetry-python-contrib/actions/workflows/test_0.yml/badge.svg?branch=main"> </a> <a href="https://github.com/open-telemetry/opentelemetry-python-contrib/actions/workflows/test_1.yml"> <img alt="Build Status 1" src="https://github.com/open-telemetry/opentelemetry-python-contrib/actions/workflows/test_1.yml/badge.svg?branch=main"> </a> <img alt="Beta" src="https://img.shields.io/badge/status-beta-informational?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAIRlWElmTU0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIAAIdpAAQAAAABAAAAWgAAAAAAAACQAAAAAQAAAJAAAAABAAOgAQADAAAAAQABAACgAgAEAAAAAQAAABigAwA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II="> </p> <p align="center"> <strong> <a href="CONTRIBUTING.md">Contributing<a/>   •   <a href="https://opentelemetry-python-contrib.readthedocs.io/en/stable/#examples">Examples<a/> </strong> </p>

Getting Started   •   API Documentation   •   Getting In Touch (GitHub Discussions)

GitHub release (latest by date including pre-releases) Codecov Status license
Build Status 0 Build Status 1 Beta

Contributing   •   Examples

OpenTelemetry Python Contrib

The Python auto-instrumentation libraries for OpenTelemetry (per OTEP 0001)

Index

Installation

This repository includes installable packages for each instrumented library. Libraries that produce telemetry data should only depend on opentelemetry-api, and defer the choice of the SDK to the application developer. Applications may depend on opentelemetry-sdk or another package that implements the API.

Please note that these libraries are currently in beta, and shouldn't generally be used in production environments.

Unless explicitly stated otherwise, any instrumentation here for a particular library is not developed or maintained by the authors of such library.

The instrumentation/ directory includes OpenTelemetry instrumentation packages, which can be installed separately as:

pip install opentelemetry-instrumentation-{integration}

To install the development versions of these packages instead, clone or fork this repo and do an editable install:

pip install -e ./instrumentation/opentelemetry-instrumentation-{integration}

Releasing

Maintainers release new versions of the packages in opentelemetry-python-contrib on a monthly cadence. See releases for all previous releases.

Contributions that enhance OTel for Python are welcome to be hosted upstream for the benefit of group collaboration. Maintainers will look for things like good documentation, good unit tests, and in general their own confidence when deciding to release a package with the stability guarantees that are implied with a 1.0 release.

To resolve this, members of the community are encouraged to commit to becoming a CODEOWNER for packages in -contrib that they feel experienced enough to maintain. CODEOWNERS can then follow the checklist below to release -contrib packages as 1.0 stable:

Releasing a package as 1.0 stable

To release a package as 1.0 stable, the package:

  • SHOULD have a CODEOWNER. To become one, submit an issue and explain why you meet the responsibilities found in CODEOWNERS.
  • MUST have unit tests that cover all supported versions of the instrumented library.
    • e.g. Instrumentation packages might use different techniques to instrument different major versions of python packages
  • MUST have clear documentation for non-obvious usages of the package
    • e.g. If an instrumentation package uses flags, a token as context, or parameters that are not typical of the BaseInstrumentor class, these are documented
  • After the release of 1.0, a CODEOWNER may no longer feel like they have the bandwidth to meet the responsibilities of maintaining the package. That's not a problem at all, life happens! However, if that is the case, we ask that the CODEOWNER please raise an issue indicating that they would like to be removed as a CODEOWNER so that they don't get pinged on future PRs. Ultimately, we hope to use that issue to find a new CODEOWNER.

Semantic Convention status of instrumentations

In our efforts to maintain optimal user experience and prevent breaking changes for transitioning into stable semantic conventions, OpenTelemetry Python is adopting the semantic convention migration plan for several instrumentations. Currently this plan is only being adopted for HTTP-related instrumentations, but will eventually cover all types. Please refer to the semconv status column of the instrumentation README of the current status of instrumentations' semantic conventions. The possible values are experimental, stable and migration referring to status of that particular semantic convention. Migration refers to an instrumentation that currently supports the migration plan.

Contributing

See CONTRIBUTING.md

We meet weekly on Thursday at 9AM PT. The meeting is subject to change depending on contributors' availability. Check the OpenTelemetry community calendar for specific dates and for the Zoom link.

Meeting notes are available as a public Google doc. For edit access, get in touch on GitHub Discussions.

Approvers (@open-telemetry/python-approvers):

Emeritus Approvers:

Find more about the approver role in community repository.

Maintainers (@open-telemetry/python-maintainers):

Emeritus Maintainers:

Find more about the maintainer role in community repository.

Thanks to all the people who already contributed