# opentelemetry-proto

> OpenTelemetry Python Proto

- **URL**: https://www.freshcrate.ai/projects/opentelemetry-proto
- **Author**: pypi
- **Category**: Frameworks
- **Latest version**: `v1.42.1` (2026-05-21)
- **License**: Unknown
- **Source**: https://github.com/open-telemetry/opentelemetry-python/tree/main/opentelemetry-proto
- **Homepage**: https://pypi.org/project/opentelemetry-proto/
- **Language**: Python
- **GitHub**: 2,406 stars, 861 forks
- **Registry**: pypi (`opentelemetry-proto`)
- **Tags**: `pypi`

## Description

OpenTelemetry Python Proto
==========================

|pypi|

.. |pypi| image:: https://badge.fury.io/py/opentelemetry-proto.svg
   :target: https://pypi.org/project/opentelemetry-proto/

This library contains the generated code for OpenTelemetry protobuf data model. The code in the current
package was generated using the v1.9.0 release_ of opentelemetry-proto.

.. _release: https://github.com/open-telemetry/opentelemetry-proto/releases/tag/v1.9.0

Installation
------------

::

    pip install opentelemetry-proto

Code Generation
---------------

These files were generated automatically from code in opentelemetry-proto_.
To regenerate the code, run ``../scripts/proto_codegen.sh``.

To build against a new release or specific commit of opentelemetry-proto_,
update the ``PROTO_REPO_BRANCH_OR_COMMIT`` variable in
``../scripts/proto_codegen.sh``. Then run the script and commit the changes
as well as any fixes needed in the OTLP exporter.

.. _opentelemetry-proto: https://github.com/open-telemetry/opentelemetry-proto


References
----------

* `OpenTelemetry Project <https://opentelemetry.io/>`_
* `OpenTelemetry Proto <https://github.com/open-telemetry/opentelemetry-proto>`_
* `proto_codegen.sh script <https://github.com/open-telemetry/opentelemetry-python/blob/main/scripts/proto_codegen.sh>`_

## Recent releases

| Version | Date | Urgency | Changes |
| --- | --- | --- | --- |
| `v1.42.1` | 2026-05-21 | High | This is a patch release on the previous 1.42.0/0.63b0 release, fixing the issue(s) below.   ### Fixed  - Preserve the random trace ID flag when creating child spans instead of always setting the random trace id bit depending on the available trace id generator. ([#5241](https://github.com/open-telemetry/opentelemetry-python/pull/5241)) |
| `v1.42.0` | 2026-05-19 | High | ### Added  - `opentelemetry-api`, `opentelemetry-sdk`: add support for 'random-trace-id' flags in W3C traceparent header trace flags. Implementations of `IdGenerator` that do randomly generate the 56 least significant bits, should also implement a `is_trace_id_random` methods that returns `True`. ([#4854](https://github.com/open-telemetry/opentelemetry-python/pull/4854)) - logs: add exception support to Logger emit and LogRecord attributes ([#4908](https://github.com/open-telemetry/opentelemetr |
| `v1.41.1` | 2026-04-24 | High | This is a patch release on the previous 1.41.0/0.62b0 release, fixing the issue(s) below. |
| `1.41.0` | 2026-04-21 | Low | Imported from PyPI (1.41.0) |
| `v1.41.0` | 2026-04-09 | Medium | - `opentelemetry-sdk`: Add `host` resource detector support to declarative file configuration via `detection_development.detectors[].host` ([#5002](https://github.com/open-telemetry/opentelemetry-python/pull/5002)) - `opentelemetry-sdk`: Add `container` resource detector support to declarative file configuration via `detection_development.detectors[].container`, using entry point loading of the `opentelemetry-resource-detector-containerid` contrib package ([#5004](https://github.com/open-teleme |
| `v1.41.0` | 2026-04-09 | Medium | - `opentelemetry-sdk`: Add `host` resource detector support to declarative file configuration via `detection_development.detectors[].host` ([#5002](https://github.com/open-telemetry/opentelemetry-python/pull/5002)) - `opentelemetry-sdk`: Add `container` resource detector support to declarative file configuration via `detection_development.detectors[].container`, using entry point loading of the `opentelemetry-resource-detector-containerid` contrib package ([#5004](https://github.com/open-teleme |
| `v1.41.0` | 2026-04-09 | Medium | - `opentelemetry-sdk`: Add `host` resource detector support to declarative file configuration via `detection_development.detectors[].host` ([#5002](https://github.com/open-telemetry/opentelemetry-python/pull/5002)) - `opentelemetry-sdk`: Add `container` resource detector support to declarative file configuration via `detection_development.detectors[].container`, using entry point loading of the `opentelemetry-resource-detector-containerid` contrib package ([#5004](https://github.com/open-teleme |
| `v1.40.0` | 2026-03-04 | Low | BREAKING CHANGE  As part of https://github.com/open-telemetry/opentelemetry-python/pull/4861, `start_span` and `start_as_current_span` as part of `NoOpTracer` were fixed such that they no longer strictly return an `INVALID_SPAN` if there is a valid span context as the current span context, instead it propagates the span context properly even at the absence of the sdk installed.   - `opentelemetry-sdk`: deprecate `LoggingHandler` in favor of `opentelemetry-instrumentation-logging`, see `opent |
| `v1.39.1` | 2025-12-11 | Low | This is a patch release on the previous 1.39.0/0.60b0 release, fixing the issue(s) below.   - Silence events API warnings for internal users ([#4847](https://github.com/open-telemetry/opentelemetry-python/pull/4847)) |
| `v1.39.0` | 2025-12-03 | Low | - `opentelemetry-api`: Convert objects of any type other than AnyValue in attributes to string to be exportable ([#4808](https://github.com/open-telemetry/opentelemetry-python/pull/4808)) - docs: Added sqlcommenter example ([#4734](https://github.com/open-telemetry/opentelemetry-python/pull/4734)) - build: bump ruff to 0.14.1 ([#4782](https://github.com/open-telemetry/opentelemetry-python/pull/4782)) - Add `opentelemetry-exporter-credential-provider-gcp` as an optional dependency to `opentele |

## Citation

- HTML: https://www.freshcrate.ai/projects/opentelemetry-proto
- Markdown: https://www.freshcrate.ai/projects/opentelemetry-proto.md
- Dependencies JSON: https://www.freshcrate.ai/api/projects/opentelemetry-proto/deps

_Generated by freshcrate.ai. Indexes pypi releases for AI-agent ecosystem packages._
