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

File metadata

File hashes

Hashes for opentelemetry_resource_detector_containerid-0.57b0.tar.gz
Algorithm Hash digest
SHA256 d293039ce755878ed04d08d1d863bba66740a2d015424f7b9bd74d263c71ca7a
MD5 480828f379dab3cdede5c10e2e349045
BLAKE2b-256 7f09e1406bda4ee92e1ba92534932c86442a1e95f5f35ed043839c933d7ebe42

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_resource_detector_containerid-0.57b0-py3-none-any.whl
Algorithm Hash digest
SHA256 2fa0a731785f010ca38c16ee77796b4338f91d3e628fe6e04aff64846db0eace
MD5 8c453b9a25e64ed1cb25c877feb11b78
BLAKE2b-256 01a0d500b54c5153d09a8c65430bc35fb362dde576d20f638c5b3d72188b7be1

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