The Simplest Way to Make Lightstep and Sublime Text Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Pairing Lightstep and Sublime Text lets engineers jump from trace data straight into source code. This workflow helps teams spot slow requests, locate the exact file, and fix bugs fast. Lightstep tracks how requests move through your live apps and services. Sublime Text gives developers a fast editor to read and write code on their laptops. When you link these two tools, engineers spend less time switching between browser tabs and local files. They can pull trace details into their editor or op

Your coding agents run with your access.

Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.

Pairing Lightstep and Sublime Text lets engineers jump from trace data straight into source code. This workflow helps teams spot slow requests, locate the exact file, and fix bugs fast.

Lightstep tracks how requests move through your live apps and services. Sublime Text gives developers a fast editor to read and write code on their laptops. When you link these two tools, engineers spend less time switching between browser tabs and local files. They can pull trace details into their editor or open local files from a trace view.

How Lightstep and Sublime Text share data and keys

The link between Lightstep and Sublime Text relies on API keys and local editor plugins. Lightstep stores span data, tags, and error logs from your running services. Sublime Text runs a background script or plugin that calls the Lightstep API over HTTPS. This script uses a bearer token to log in and read trace summaries.

Once the plugin gets the data, it maps service names and tags to local file paths. Engineers can highlight a function in Sublime Text and check its live latency metrics. The data flows in one direction when reading traces, from the cloud API to the laptop. Some teams also send custom trace markers from their local test runs back to a dev project. Each request needs a valid key with the right role to read or write trace data.

Common failure modes in Lightstep and Sublime Text setups

Many teams start by sharing one broad API key across the whole engineering group. Developers paste this shared key into their local Sublime Text settings file in plain text. If one laptop gets lost or compromised, an attacker can read sensitive trace tags and logs. Even worse, teams cannot tell which user ran a heavy query against the trace API.

Another common risk comes from raw customer data leaking into span tags and error logs. If a service logs emails, phone numbers, or card numbers, those values land in the editor. Local plugins might cache those trace payloads on disk without encryption. To fix this, teams must scope API keys to read-only viewer roles per engineer. You should also scrub sensitive fields before spans leave your network, or mask them in query results. Set short expiration times on all keys so old tokens do not linger on laptops.

End-to-End Encryption + Text-Based Session Recording: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Scoping roles and network paths for local editors

Good security starts by giving each developer their own identity and a tight role. Do not let local editor plugins use admin keys that can change project rules or delete streams. Create a viewer role in Lightstep that only reads trace data for specific services. This keeps a broken editor script from harming your main production telemetry setup.

Next, check how network traffic moves from developer laptops to your trace backend. Require engineers to log in through your single sign-on provider before their tools pull production traces. Log every API call so security teams can see who read which trace and when. Rotate user tokens often and clear local editor caches when a session ends. When you mask emails, phone numbers, and national IDs in results, local files stay safe.

Govern statements and responses across databases and APIs

Good config and scoped roles are needed setup. They do not check single queries in flight or mask sensitive fields in returned rows. Across Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, and internal HTTP endpoints, hoop.dev runs beside each supported service as an open-source proxy, a sidecar for your database or API.

First, hoop.dev guardrails block banned queries before they run. Then hoop.dev data masking rewrites matched sensitive values in responses in memory. The audit trail records every statement and verdict per resource. Furthermore, hoop.dev holds SOC 2 Type II and is open source on GitHub.

Frequently asked questions

How does Sublime Text log in to Lightstep safely?

Sublime Text plugins use an API key to read trace data over HTTPS. Give each engineer an individual read-only key instead of sharing a team token. Store the key in the system keychain rather than a plain text settings file.

Can trace data in Sublime Text expose sensitive user details?

Yes, if your apps put emails, phone numbers, or card numbers into span tags. You should strip those fields before sending traces, or use data masking to rewrite matched fields in results.

What role should an engineer use for local editor plugins?

Assign a read-only viewer role scoped to the services that engineer supports. Local code editors only need to read spans and metrics, never change project settings.

The query runs. The emails stay hidden.