Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CodeSource.work_dir #532

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add CodeSource.work_dir #532

wants to merge 1 commit into from

Conversation

Kludex
Copy link
Member

@Kludex Kludex commented Oct 22, 2024

Should I add the "exclude" already here?

Copy link

Deploying logfire-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 349d4b5
Status: ✅  Deploy successful!
Preview URL: https://dbe2e615.logfire-docs.pages.dev
Branch Preview URL: https://add-logfire-work-dir.logfire-docs.pages.dev

View logs

@alexmojaki
Copy link
Contributor

Can we dogfood with the resource attribute first?

Copy link

codecov bot commented Oct 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (7be6850) to head (349d4b5).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #532   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          132       132           
  Lines        10056     10060    +4     
  Branches      1360      1360           
=========================================
+ Hits         10056     10060    +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines 214 to 216
Example:
If the `code.filename` is `/path/to/project/src/logfire/main.py` and the `root_path` is `src/`, the URL
for the source code will be `src/path/to/project/src/logfire/main.py`.
Copy link
Contributor

Choose a reason for hiding this comment

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

still needs updating

"""The root path for the source code in the repository.

Example:
If the `code.filename` is `/path/to/project/src/logfire/main.py` and the `root_path` is `src/`, the URL
for the source code will be `src/path/to/project/src/logfire/main.py`.
"""

work_dir: str = field(default='.')
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need this setting at all? Isn't it just os.getcwd()?

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.

2 participants