Skip to main content

Ray Resource Detector for OpenTelemetry

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

opentelemetry_resource_detector_ray-0.1.0.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file opentelemetry_resource_detector_ray-0.1.0.tar.gz.

File metadata

File hashes

Hashes for opentelemetry_resource_detector_ray-0.1.0.tar.gz
Algorithm Hash digest
SHA256 87974706d807a930ba24b0b2a766a36128de11c14bc44cf2d151d681827d8f5f
MD5 73ec3e44e322443c2cefa120b217d862
BLAKE2b-256 efb0c53798a0d73d2d7eb0d0950b975453e58da8677c6b69a4003599dc2fb7d0

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file opentelemetry_resource_detector_ray-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for opentelemetry_resource_detector_ray-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 82d22b566ffcff4e712df2acd6bf1246353ed531c14f13274d6f51b794e11eaa
MD5 a76dcbd76cc80209df0696ce4fe5d1e5
BLAKE2b-256 77c8db02f3dd1dd9e962217fcbb04414d1dae97da7e940e031c23f15b218c67f

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page