How to use the opentelemetry-api.src.opentelemetry.distributedcontext.__init__.EntryValue 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) -> "EntryValue":
        if any(c not in PRINTABLE for c in value):
            raise ValueError("Invalid EntryValue", value)

        return typing.cast(EntryValue, value)

opentelemetry-api

OpenTelemetry Python API

Apache-2.0
Latest version published 3 days ago

Package Health Score

97 / 100
Full package analysis