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

feat: Added a include_callsite_parameters argument to the builtin log formatters, which adds source path, line number and function name fields to the emitted log #8494

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

edgarrmondragon
Copy link
Collaborator

Example usage:

formatters:
  json: # log format for json formatted logs
    (): meltano.core.logging.json_formatter
    include_callsite_parameters: true

It can also be passed to the
meltano.core.logging.console_log_formatter and meltano.core.logging.key_value_formatter formatters.

https://www.structlog.org/en/stable/api.html#structlog.processors.CallsiteParameterAdder

Copy link

netlify bot commented Apr 12, 2024

Deploy Preview for meltano ready!

Name Link
🔨 Latest commit 3454226
🔍 Latest deploy log https://app.netlify.com/sites/meltano/deploys/66396f92f0ce1300088d6a69
😎 Deploy Preview https://deploy-preview-8494--meltano.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@edgarrmondragon edgarrmondragon force-pushed the edgarrmondragon/feat/logging-callsite-parameters branch from d6f6e8c to 544f26b Compare April 12, 2024 21:34
…og formatters, which adds source path, line number and function name fields to the emitted log

Example usage:

```yaml
formatters:
  json: # log format for json formatted logs
    (): meltano.core.logging.json_formatter
    include_callsite_parameters: true
```

It can also be passed to the
`meltano.core.logging.console_log_formatter` and `meltano.core.logging.key_value_formatter` formatters.

https://www.structlog.org/en/stable/api.html#structlog.processors.CallsiteParameterAdder
@edgarrmondragon edgarrmondragon force-pushed the edgarrmondragon/feat/logging-callsite-parameters branch from 544f26b to 67b4224 Compare April 12, 2024 21:42
Copy link

codecov bot commented Apr 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.79%. Comparing base (9b75e89) to head (3454226).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8494   +/-   ##
=======================================
  Coverage   91.78%   91.79%           
=======================================
  Files         245      245           
  Lines       19325    19336   +11     
  Branches     2149     2150    +1     
=======================================
+ Hits        17738    17750   +12     
+ Misses       1313     1312    -1     
  Partials      274      274           

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

@edgarrmondragon edgarrmondragon force-pushed the edgarrmondragon/feat/logging-callsite-parameters branch from e0128d1 to 3454226 Compare May 7, 2024 00:02
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.

None yet

1 participant