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

File metadata

File hashes

Hashes for opentelemetry_resource_detector_containerid-0.60b0.tar.gz
Algorithm Hash digest
SHA256 5fa45dc428abd9be5eb7c8b45152c3720efbda80791cf3a5f6efe48ad7a4761e
MD5 8ba084fced68dede2beae4185925a53f
BLAKE2b-256 33eba824f5970f61c33663097dfd59a7d83d38860d0a9401fe932ddb20eb21e4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_resource_detector_containerid-0.60b0-py3-none-any.whl
Algorithm Hash digest
SHA256 4107dd1eefe08b4c3711c14d10bd72ef51d6cdb56ded8e87ae91bde67abf8d30
MD5 ecdba42b740e94c609222ac930bb0978
BLAKE2b-256 8a833d008c84204ab466194ee8c3fb1ec485bcd01d53dd90fdc1315170e0c202

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