AI Blocks

Putting the blocks together

This is taking longer than expected.

Try againBrowse the library
AI Blocks · All skills by job · Minds · Mini tools · How it works · From a source · Apps

AI Blocks › Build and ship software

Code tracing adder

Give it MATLAB code. Get tracing added so you can see where time goes and where errors start.

Code tracing adder is a free AI skill for the job "Build and ship software". Give the instructions to an AI assistant that supports the required files and tools, then review its output.

Free · No account · BSD 2 Clause licence · Made by MathWorks · Level: advanced

Made by MathWorks. See the original on GitHub; we copied it as it is, with its licence.

What it does

Your MATLAB code gains tracing, so you can see where time goes and where errors start. Each function reports what it did, how long it took and whether it failed. It adds OpenTelemetry spans around your functions. A span is created from a tracer, made the current context so nested calls link to their parent, and ended automatically when the function exits. It sets attributes, marks status as OK or Error, records exceptions and adds timed events. Loops get special handling so spans end mid-function. It needs the OpenTelemetry-MATLAB package, version 1.11.0 or newer, and MATLAB R2022b or newer.

You give it

You get

Use it when

How to use it

  1. Add it to your AI once: download it and add the folder to Claude, ChatGPT or Codex as a skill.
  2. Ask for the job in your own words. Your AI opens the skill when it fits.
  3. It works best when your AI can run MATLAB.

More for Build and ship software

Every build and ship software skill