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

File metadata

File hashes

Hashes for opentelemetry_resource_detector_containerid-0.62b1.tar.gz
Algorithm Hash digest
SHA256 bb4987c4ef87f2a5c3f2a5cdd73a917138141039bbf03ebe7feac2c805aec856
MD5 e9627c0e8ed05133f26854dff0a7ce6f
BLAKE2b-256 0e969226c2846ce7f1f2e368a3294dfdf55227a83744fa55540410553aae5312

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_resource_detector_containerid-0.62b1-py3-none-any.whl
Algorithm Hash digest
SHA256 23c4e08bef2e7eda96887af7dbf6454d208280ebf86f47e8033471e0ee33d920
MD5 b1b8f1c346dd3a670b045ceae1dc52c8
BLAKE2b-256 c677cce9bd4dd2c8d6b75b5e0c79c4d4c7f61f4867018435cde2d2dba2647700

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