Sprkl Docs
SupportSprkl websiteJoin Sprkl betaJoin Sprkl for CI
0.0.65
0.0.65
  • What is Sprkl?
  • Getting started
    • Install Sprkl
    • Instrument your code
      • Bare metal
      • Docker
      • Kubernetes
    • Start with a sample project with Docker Compose
  • Features
    • Instrumentation
      • Frontend tracing - NEW!
      • Selenium tracing - NEW!
    • Dashboard
      • Personal vs. Global
      • Code Block Reference
    • Code markups
    • System Graph
    • Jaeger tracing
    • Jest integration
    • Detect runtime security vulnerabilities in your code
  • Integrations and supported stack
  • Concepts
    • Analysis
  • FAQ
  • Support
  • Sprkl for GitHub Actions
    • Overview
    • Setup
    • Pulling Sprkl data to your IDE for further debugging
  • Troubleshooting
Powered by GitBook
On this page
  • Prerequisites
  • Install
  • Setup Client
  • 1. Install the Sprkl Client
  • 2. Add Sprkl CLI to PATH
  • 3. Activate client
  • Check out next: Instrument your code.
  • Videos
  1. Getting started

Install Sprkl

PreviousGetting startedNextInstrument your code

Last updated 2 years ago

Watch how to install Sprkl in VSCode video !

Prerequisites

  • Supported OSs

    • Mac

    • Linux

    • (for Windows machines). Information about running VSCode in WSL can be found

  • Node v16.10 and up (Java, C#, and Python are partially supported via our ).

Install

Install the Sprkl VSCode Extension directly from .

Once installed, click on the Sprkl icon on the left panel.

Register and follow the activation instructions.

Once activated, the Grafana button will be enabled, and you can navigate to the Sprkl dashboard in Grafana.

Setup Client

1. Install the Sprkl Client

The Sprkl Client contains NodeJS libraries installed under $HOME/.sprkl/lib, and the Sprkl CLI installed under $HOME/.sprkl/bin.

npx @sprkl/scripts install --id=$ID

Use the id provided in the vscode window as $ID.

2. Add Sprkl CLI to PATH

To make sprkl binaries executable, we need to add the required binaries to a directory accessible by your PATH.

A. Create symlinks

Create symlinks to a directory known by PATH, in Unix systems (both macOS and Linux), usually /usr/local/bin is a popular choice.

ln -sf $HOME/.sprkl/bin/sprkl /usr/local/bin/sprkl
ln -sf $HOME/.sprkl/bin/sprkl-nodejs /usr/local/bin/sprkl-nodejs

It might require privileges. If so, try to run with sudo:

sudo ln -sf $HOME/.sprkl/bin/sprkl /usr/local/bin/sprkl
sudo ln -sf $HOME/.sprkl/bin/sprkl-nodejs /usr/local/bin/sprkl-nodejs

B. Add directly to $PATH in your shell config

Add the sprkl binaries directory to the PATH environment in your shell config. Usually $HOME/.bashrc for bash, and $HOME/.zshrc for zsh, etc.

export PATH="$PATH:$HOME/.sprkl/bin"

After updating the PATH variable, reload your shell.

3. Activate client

Activate and configure the install Sprkl CLI to work with your registered user. Use the id and the token provided in the VSCode or Web activation page as $ID and $TOKEN

sprkl cloud activate --cloud.token=$TOKEN --cloud.id=$ID

All set. You're done. The dashboard should be empty as Sprkl analyzes code changes. After you make a code change and run Sprkl, the dashboard will be filled with info.

Videos

and follow the activation instructions.

Following that, you can choose between , , or running Sprkl with , if you're working with Kubernetes on your development environments.

Or, start with a .

Check out next: .

Navigate to .

Register
bare metal
Docker
Kubernetes
sample project
Instrument your code
instrument your code to get started
WSL
here
Kubernetes Setup
VSCode
here
Cover

VSCode

Cover

Web

Post installation: VSCode (left), Web (right)