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

File metadata

File hashes

Hashes for opentelemetry_resource_detector_containerid-0.64b0.tar.gz
Algorithm Hash digest
SHA256 691ea12c3fe0842560e020b7aea6ed7ac0f6d0fe93995c0a73abfebbd5ab3c6c
MD5 b0a04a2d4fd2f8c9e422ee84ef355e13
BLAKE2b-256 bd297bc687cb09636165d5617fc1d6c1d18bc57a6fa6a203464b1297c7bb5278

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_resource_detector_containerid-0.64b0-py3-none-any.whl
Algorithm Hash digest
SHA256 f4da4f4a2fde2b6b65a64c6664bab706916260bbfdbdfadd5c2eea8fd554770e
MD5 d1d203f0923edc8feb18f392fc509a12
BLAKE2b-256 3655331fcb90fc0b0d03f281f8f80c66d8b9286e49b4463c6fa40bcccb22988e

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