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.63b1.tar.gz.

File metadata

File hashes

Hashes for opentelemetry_resource_detector_containerid-0.63b1.tar.gz
Algorithm Hash digest
SHA256 6640211f38808f1d3b114da0347e207dd97004b6b9aff6730c7746012d7027ef
MD5 83663e0e2bbdfa35b98ba3bcb7814c67
BLAKE2b-256 160e8af47cc28ff0613e847247dc4efe7a99b05af19e2ea6ec931e70c1e8e8c2

See more details on using hashes here.

File details

Details for the file opentelemetry_resource_detector_containerid-0.63b1-py3-none-any.whl.

File metadata

File hashes

Hashes for opentelemetry_resource_detector_containerid-0.63b1-py3-none-any.whl
Algorithm Hash digest
SHA256 1f7593ab2ceab71bcec868d31b78c55021f09a79af180ab4e88ccffc95a2fb71
MD5 c200a7c096d3c898427a828f47947eaf
BLAKE2b-256 cc5ceee5e302d49cb8fe2aa542882b354fbd120fe809ff1a3bbdb0e2ef0d988a

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