Skip to main content

OpenTelemetry Resource Detector for Ray

PyPI Python Version License GitHub

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)

Source distribution for opentelemetry-resource-detector-ray 0.1.0
File Size Uploaded
opentelemetry_resource_detector_ray-0.1.0.tar.gz 6.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for opentelemetry-resource-detector-ray 0.1.0
File Interpreter ABI Platform
opentelemetry_resource_detector_ray-0.1.0-py3-none-any.whl Python 3 none any Details

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 log

Release 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 log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page