Ray Resource Detector for OpenTelemetry
Project description
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
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 Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file opentelemetry_resource_detector_ray-0.1.0.tar.gz.
File metadata
- Download URL: opentelemetry_resource_detector_ray-0.1.0.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87974706d807a930ba24b0b2a766a36128de11c14bc44cf2d151d681827d8f5f
|
|
| MD5 |
73ec3e44e322443c2cefa120b217d862
|
|
| BLAKE2b-256 |
efb0c53798a0d73d2d7eb0d0950b975453e58da8677c6b69a4003599dc2fb7d0
|
Provenance
The following attestation bundles were made for opentelemetry_resource_detector_ray-0.1.0.tar.gz:
Publisher:
publish-adhoc.yml on herin049/opentelemetry-ray
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
opentelemetry_resource_detector_ray-0.1.0.tar.gz -
Subject digest:
87974706d807a930ba24b0b2a766a36128de11c14bc44cf2d151d681827d8f5f - Sigstore transparency entry: 1341627951
- Sigstore integration time:
-
Permalink:
herin049/opentelemetry-ray@77454357aa01594654c1ebd033d927bbd2c58a45 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/herin049
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-adhoc.yml@77454357aa01594654c1ebd033d927bbd2c58a45 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file opentelemetry_resource_detector_ray-0.1.0-py3-none-any.whl.
File metadata
- Download URL: opentelemetry_resource_detector_ray-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
82d22b566ffcff4e712df2acd6bf1246353ed531c14f13274d6f51b794e11eaa
|
|
| MD5 |
a76dcbd76cc80209df0696ce4fe5d1e5
|
|
| BLAKE2b-256 |
77c8db02f3dd1dd9e962217fcbb04414d1dae97da7e940e031c23f15b218c67f
|
Provenance
The following attestation bundles were made for opentelemetry_resource_detector_ray-0.1.0-py3-none-any.whl:
Publisher:
publish-adhoc.yml on herin049/opentelemetry-ray
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
opentelemetry_resource_detector_ray-0.1.0-py3-none-any.whl -
Subject digest:
82d22b566ffcff4e712df2acd6bf1246353ed531c14f13274d6f51b794e11eaa - Sigstore transparency entry: 1341627953
- Sigstore integration time:
-
Permalink:
herin049/opentelemetry-ray@77454357aa01594654c1ebd033d927bbd2c58a45 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/herin049
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-adhoc.yml@77454357aa01594654c1ebd033d927bbd2c58a45 -
Trigger Event:
workflow_dispatch
-
Statement type: