Skip to content

fix: Preserve custom PYTHON_ENV span origin - #577

Merged
Abhijeet Prasad (AbhiPrasad) merged 1 commit into
mainfrom
agent/python-env-span-origin
Jul 16, 2026
Merged

fix: Preserve custom PYTHON_ENV span origin#577
Abhijeet Prasad (AbhiPrasad) merged 1 commit into
mainfrom
agent/python-env-span-origin

Conversation

@Qard

Copy link
Copy Markdown
Contributor

Summary

  • Preserve custom PYTHON_ENV values as span origin environment names instead of dropping them.
  • Add regression coverage for PYTHON_ENV=preview after clearing higher-priority environment signals.

Validation

  • uv run pytest src/braintrust/test_otel.py -k "detect_environment"
  • git diff --check

Ruff was not available in the current uv environment (Failed to spawn: ruff).

@AbhiPrasad Abhijeet Prasad (AbhiPrasad) changed the title Preserve custom PYTHON_ENV span origin fix: Preserve custom PYTHON_ENV span origin Jul 16, 2026
@AbhiPrasad
Abhijeet Prasad (AbhiPrasad) merged commit 24804df into main Jul 16, 2026
82 checks passed
@AbhiPrasad
Abhijeet Prasad (AbhiPrasad) deleted the agent/python-env-span-origin branch July 16, 2026 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants