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

Allow trimming file paths of non native files #2201

Open
brancz opened this issue Nov 4, 2023 · 0 comments
Open

Allow trimming file paths of non native files #2201

brancz opened this issue Nov 4, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@brancz
Copy link
Member

brancz commented Nov 4, 2023

Is your feature request related to a problem? Please describe.

Interpreted languages like ruby, python, or javascript (before being JITed but same thing holds for JITed functions), it's hard to associate source code with version control for example because we can't reliably trim the working directory of the process after the fact.

Describe the solution you'd like

For any file that we put into the function metadata for interpreted and JITed functions, we trim a configurable path set via an environment variable on the process: PARCA_TRIM_FILE_PREFIX

This should be on by default but possible to turn this behavior off.

Describe alternatives you've considered

Initially proposed to trim the current working directory of the process, but customer feedback said that they have a single container that contains a monorepo, which would not work in that scenario.

Additional context

This is part of a larger chain of features to allow integrating VCS. This feature specifically is about having the right file path, when a VCS link is configured.

@brancz brancz added the enhancement New feature or request label Nov 4, 2023
@brancz brancz changed the title Trim paths with process current working dir for non native files Allow trimming file paths of non native files Nov 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant