OpenTelemetry Resource Detector for Ray
A resource detector that captures Ray runtime attributes and exposes them as an OpenTelemetry Resource.
Installation
pip install opentelemetry-resource-detector-ray
Usage
from opentelemetry.sdk.resources import Resource
from opentelemetry.sdk.trace import TracerProvider
from opentelemetry.resource.detector.ray import RayResourceDetector
resource = Resource.create().merge(
RayResourceDetector().detect(),
)
provider = TracerProvider(resource=resource)
Or load automatically via the OTEL_EXPERIMENTAL_RESOURCE_DETECTORS environment variable:
export OTEL_EXPERIMENTAL_RESOURCE_DETECTORS="ray"
Detected Attributes
| Attribute | Condition |
|---|---|
ray.version |
Always |
ray.job.id |
Ray initialized |
ray.node.id |
Ray initialized |
ray.worker.id |
Ray initialized |
ray.namespace |
Ray initialized |
ray.worker.process_type |
When available |
ray.actor.id |
When available |
ray.cluster.session_name |
When available |
ray.cluster.gcs_address |
When available |
References
License
Apache-2.0
Metadata
Release files for opentelemetry-resource-detector-ray 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| opentelemetry_resource_detector_ray-0.1.0.tar.gz | 6.5 kB | With provenance | Details for opentelemetry_resource_detector_ray-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| opentelemetry_resource_detector_ray-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for opentelemetry_resource_detector_ray-0.1.0-py3-none-any.whl |
Total release size: 12.1 kB
Release files / opentelemetry_resource_detector_ray-0.1.0.tar.gz
| Download URL | opentelemetry_resource_detector_ray-0.1.0.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
87974706d807a930ba24b0b2a766a36128de11c14bc44cf2d151d681827d8f5f
|
|
BLAKE2b-256 checksum How to use checksums |
efb0c53798a0d73d2d7eb0d0950b975453e58da8677c6b69a4003599dc2fb7d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 20, 2026.
Transparency logRelease files / opentelemetry_resource_detector_ray-0.1.0-py3-none-any.whl
| Download URL | opentelemetry_resource_detector_ray-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
82d22b566ffcff4e712df2acd6bf1246353ed531c14f13274d6f51b794e11eaa
|
|
BLAKE2b-256 checksum How to use checksums |
77c8db02f3dd1dd9e962217fcbb04414d1dae97da7e940e031c23f15b218c67f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 20, 2026.
Transparency logSecurity for opentelemetry-resource-detector-ray 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for opentelemetry_resource_detector_ray-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 20, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.