Observability
Export Chalk logs to other monitoring systems.
Chalk’s online dashboard provides a simple way to view logs from resolver execution. However, you may wish to export these logs into other observability tools so that you can view your Chalk-related data alongside data from other systems you maintain.
Chalk can export your logs to a sink of your choosing. You can configure sinks for log export from your settings page. Exported logs will contain the following fields:
@timestampInstant
@versionstring
messagestring
logger_namestring
levelstring
stack_tracestring
tracestring
projectstring
deploymentstring
commit_shastring
contextstring
resolver_namestring
environmentstring
environment_idstring
tagsstring[]
agent_idstring
Chalk provides an implementation of the standard Python Logger interface that supports emitting logs to the web UI and your metrics export sink. You can use this logger like this:
from chalk.clogging import chalk_logger
@online
def your_resolver(...):
chalk_logger.info("Hello world!")