<#2162 feat: Expose metric dictionary to make logg...
# meltano-repo-activity
g
#2162 feat: Expose metric dictionary to make logging metrics as JSON easier Pull request opened by edgarrmondragon --- 📚 Documentation preview 📚: https://meltano-sdk--2162.org.readthedocs.build/en/2162/ ## Summary by Sourcery Expose metric dictionary to make logging metrics as JSON easier. Enhancements: • Adds a
to_dict
method to the
Point
class to convert a metric to a dictionary. • Adds a
SingerMetricsFormatter
class to format metrics as JSON. • Updates the default logging configuration to include a metrics formatter. • Updates the
log
function to include the metric dictionary in the log record. • Updates the documentation to include an example of how to log metrics as JSON. meltano/sdk