microsoft.opentelemetry.a365.runtime.environment_utils module

Utility logic for environment-related operations.

microsoft.opentelemetry.a365.runtime.environment_utils.get_observability_authentication_scope()[source]

Returns the scope for authenticating to the observability service based on the current environment.

The scope can be overridden via the A365_OBSERVABILITY_SCOPE_OVERRIDE environment variable to enable testing against pre-production environments.

Returns:

The authentication scope for the current environment.

Return type:

list[str]

microsoft.opentelemetry.a365.runtime.environment_utils.is_development_environment()[source]

Returns True if the current environment is a development environment.

Returns:

True if the current environment is development, False otherwise.

Return type:

bool