Skip to content

Conversation

davidhewitt
Copy link
Contributor

This adds LOGFIRE_SERVICE_NAME, LOGFIRE_SERVICE_VERSION and LOGFIRE_ENVIRONMENT as supported environment variables to match the Python SDK.

At the same time I added a bunch of tests to ensure consistency, which I think identified some cases where we accidentally broke the OTEL resource detection.

@codecov-commenter
Copy link

Codecov Report

❌ Patch coverage is 84.67153% with 21 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/config.rs 67.92% 14 Missing and 3 partials ⚠️
src/logfire.rs 78.94% 0 Missing and 4 partials ⚠️

📢 Thoughts on this report? Let us know!

Copy link
Contributor

@cetra3 cetra3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but is this considered a breaking change?

@davidhewitt
Copy link
Contributor Author

Probably, yes, we can just ship as 0.9?

@cetra3 cetra3 merged commit 8c092cd into main Sep 26, 2025
7 checks passed
@cetra3 cetra3 deleted the dh/logfire-service-attributes branch September 26, 2025 22:25
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