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

File metadata

File hashes

Hashes for opentelemetry_resource_detector_containerid-0.65b0.tar.gz
Algorithm Hash digest
SHA256 9fe6ca129d8d4151a599af14b833ad2bed9e22a192018c8d737602abb265c955
MD5 870a354f9b7b32c41bdfc1ecf2c543bd
BLAKE2b-256 f0d01a749e26c96c1446b566c4eea2564a669d027a5312b4015fdc55e595f4bb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_resource_detector_containerid-0.65b0-py3-none-any.whl
Algorithm Hash digest
SHA256 af6a5f6cdf49bd8e18af53258e1933fe88bc7eff0e1bd13b1a85f3d6facad24e
MD5 2923eb68e1b5456f36f3dc1cf3e4ea0f
BLAKE2b-256 6bb1f9e9675cc984532a224514284592200c311e10f52789c3dc65a8d48bda92

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