Skip to main content

Container Resource Detector for OpenTelemetry

Project description

pypi

This library provides custom resource detector for container platforms

Installation

pip install opentelemetry-resource-detector-containerid

Usage example for opentelemetry-resource-detector-containerid

from opentelemetry import trace
from opentelemetry.sdk.trace import TracerProvider
from opentelemetry.resource.detector.containerid import (
    ContainerResourceDetector,
)
from opentelemetry.sdk.resources import get_aggregated_resources


trace.set_tracer_provider(
    TracerProvider(
        resource=get_aggregated_resources(
            [
                ContainerResourceDetector(),
            ]
        ),
    )
)

References

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

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_containerid-0.62b0.tar.gz.

File metadata

File hashes

Hashes for opentelemetry_resource_detector_containerid-0.62b0.tar.gz
Algorithm Hash digest
SHA256 703467d7a59ec53a27ce77c602b6edb8a6181dae56410e3d32ca83bfebd7c72f
MD5 5a5d284ccd9e6b11893c91fe6ad9d412
BLAKE2b-256 8976ffe6d957634f29bab8bbf83562632583522375c513799a5915c8902c103b

See more details on using hashes here.

File details

Details for the file opentelemetry_resource_detector_containerid-0.62b0-py3-none-any.whl.

File metadata

File hashes

Hashes for opentelemetry_resource_detector_containerid-0.62b0-py3-none-any.whl
Algorithm Hash digest
SHA256 887e4648b84f45e7e933c4a463961caa371bba1b7ee971e082fa1388548a14c6
MD5 cb84d39c7f6e7c0f9c1cf145a7dc607b
BLAKE2b-256 fe5e7389869aed72a74053eb0fe11019a2f630f817907a6c57073a259f37e15f

See more details on using hashes here.

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