How to use the opentelemetry-api.src.opentelemetry.distributedcontext.__init__.EntryKey function in opentelemetry-api

To help you get started, we’ve selected a few opentelemetry-api examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github open-telemetry / opentelemetry-python / opentelemetry-api / src / opentelemetry / distributedcontext / __init__.py View on Github external
def create(value: str) -> "EntryKey":
        # pylint: disable=len-as-condition
        if not 0 < len(value) <= 255 or any(c not in PRINTABLE for c in value):
            raise ValueError("Invalid EntryKey", value)

        return typing.cast(EntryKey, value)

opentelemetry-api

OpenTelemetry Python API

Apache-2.0
Latest version published 3 days ago

Package Health Score

97 / 100
Full package analysis