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

File metadata

File hashes

Hashes for opentelemetry_resource_detector_containerid-0.59b0.tar.gz
Algorithm Hash digest
SHA256 09afb4f1c01b663bc3fdf0ec45fee9f6d27a0f407a864f14134212d579ac99a9
MD5 c0a99413f4a5ea61e6ae8008e4b0d0c3
BLAKE2b-256 3a14d87ccb91ca4d2de4803314dcab6b724d5e7957f1f59af96e48a435d02e99

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_resource_detector_containerid-0.59b0-py3-none-any.whl
Algorithm Hash digest
SHA256 262cad38142006944c81c4b47817bee6707d4c6fb3efd80ecc5c2419031411c8
MD5 cf94906fe5d1e95a0ad34f9c37d6a6c0
BLAKE2b-256 4b190be5aa846323cd33057f7cd8d237777639c343cde3785c67c2cb03f67dd1

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