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

File metadata

File hashes

Hashes for opentelemetry_resource_detector_containerid-0.58b0.tar.gz
Algorithm Hash digest
SHA256 b1bc2c0a9f6c96074bce90efa5f2c7551872de3cfd0d276183353c61d39f3086
MD5 30119a9645deff7020aba00d296dbc79
BLAKE2b-256 27945c3071071eb0d2c3a246142a263240eef0bd5e72a2c84781871f13337c8e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_resource_detector_containerid-0.58b0-py3-none-any.whl
Algorithm Hash digest
SHA256 f736122577856d0c29c06fbff78020dbee58978287638fd2bc603fa22ce58347
MD5 73ff7ec24284e5707b830be6497bd665
BLAKE2b-256 14318d4001d5543ffb83950fe527256821f4091e9b1ca0c3e5c3c2f05cf7fd9e

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