Leading through Chaos - Insights and Actions • Browse the resources from the keynote presented by the Academic Strategy Team.
We’re excited to release the data access platform (DAP) command line interface (CLI) referred to as DAP CLI 2.0. For developers and data engineers that access data from Canvas Data, this is a major version update that introduces new functionality, improves usability, and lays the groundwork for better support and transparency. This release includes breaking changes, so please review the updates carefully before upgrading.
Understanding and debugging your DAP CLI workflows just got easier. In version 2.0, we’re introducing configurable logging:
dap --loglevel debug initdb --namespace canvas --table accounts
dap --logfile dap.log syncdb --namespace canvas --table accounts
dap --logformat json syncdb --namespace canvas --table accounts
In JSON format, logs include additional metadata such as namespace, table, and clientId, making it easier to filter and analyze logs in observability platforms like Splunk, Observe, or Datadog.
We’ve redesigned stdout messaging to provide cleaner, more actionable feedback to users. This update supports accessibility efforts and reduces the learning curve for new users by improving the clarity and structure of command-line output. We're also rewriting the help and manual pages to be more helpful and actionable, with links to our web-based documentation for easy access to detailed guides. In addition, error messages are being revised to make them easier to understand and provide clearer next steps.
To help us improve the CLI experience and guide product decisions, we’re introducing anonymous usage tracking. We’ll collect limited metadata such as:
Tracking is enabled by default but can be disabled in two ways:
Tracking is fully transparent—events are recorded in a separate file so users can audit what’s being captured. Tracking is only triggered if there is a network request is sent, so just by reading a manual tracking is not triggered. Source code can be downloaded and the tracking can be checked in this file:
instructure_dap_client-2.0.0/dap/tracking.py
Because of these changes, DAP CLI 2.0 is not backwards-compatible with previous configurations or logging expectations. Please review the updated documentation before upgrading and test the new version in a development environment.
Install the new version using pip:
pip install -U instructure-dap-client
Thank you for helping us make DAP CLI better with your feedback and ideas. If you encounter any issues or have suggestions join the conversation in the Canvas Community forums.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Product manager with a more than a decade of experience from various tech companies. Loves cycling, skiing and sailing.
To interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign inTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign in