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 4 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 0beda9e
🔍 Latest deploy log https://app.netlify.com/sites/meltano/deploys/665508204cfba8000861fe2a
😎 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 2 times, most recently 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.82%. Comparing base (7129516) to head (0beda9e).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8494   +/-   ##
=======================================
  Coverage   91.81%   91.82%           
=======================================
  Files         245      245           
  Lines       19296    19307   +11     
  Branches     2152     2153    +1     
=======================================
+ Hits        17717    17729   +12     
+ Misses       1306     1305    -1     
  Partials      273      273           

☔ 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
…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 3454226 to 0beda9e Compare May 27, 2024 22:24
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