fix(tracing): tag usr across the infra #3511
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes
Fixes https://linear.app/nango/issue/NAN-2691/tag-usr-across-the-infra
Use the same method to tag: APIs (public, private, persist) and jobs execution. That should cover most usage.
It will give us a better view across the board when debugging, with known fields and also be able to differentiate free/paid
Local example
![Screenshot 2025-02-11 at 19 14 15](https://private-user-images.githubusercontent.com/1637651/412112090-76b957d5-61c9-427b-83fd-5c7ebb700666.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2NDg0ODgsIm5iZiI6MTczOTY0ODE4OCwicGF0aCI6Ii8xNjM3NjUxLzQxMjExMjA5MC03NmI5NTdkNS02MWM5LTQyN2ItODNmZC01YzdlYmI3MDA2NjYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTVUMTkzNjI4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MjkzZjgxYzUxZjBiZjYwZDg1NTUwNmY0OWM4ZTQzYjJkNWIwYjFjNjQ2ZDJlYWQzN2FhZjdmNDI1ZjI0MDk1NiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.nMcRypXN0xYb3s3US-M4xkiW8aaE3ksPsafVdCfvIXk)