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

File metadata

File hashes

Hashes for opentelemetry_resource_detector_containerid-0.56b0.tar.gz
Algorithm Hash digest
SHA256 87efca35e8468af2c93c3c802e74a71bc60ee3abe17028eed2e850b26808f90f
MD5 6f0e5fb93ef4800868410df75f8c1de0
BLAKE2b-256 a617fd77ca455b06edc93764ec925849ea9fa5bb67d4da158cc7daff48745358

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_resource_detector_containerid-0.56b0-py3-none-any.whl
Algorithm Hash digest
SHA256 cac10d723ad8ae2e4487d037fd21529c9624d579c0026f51fadd5f79e97f4795
MD5 c53ed5abb398b745d194fa3c7f999f83
BLAKE2b-256 064d9e5d1c1ee4ec3f186bcbcc43aeea8fa11ecf40afd7f2b43a8bc94f349162

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