Lightstep (ServiceNow Cloud Observability): Distributed Tracing and Change Intelligence
Distributed tracing was once a specialized practice limited to large engineering organizations. Today, with most applications deployed as microservices, distributed tracing has become a fundamental observability requirement. When a user request touches 15 services before returning a response, understanding where latency originates — or why errors occur — requires following that request across every service boundary.
Lightstep entered this space with a strong architectural opinion: tracing data is only useful if you can analyze it at full fidelity, without sampling away the outliers that contain the most interesting information. Founded by Ben Sigelman (one of the original authors of Google's Dapper paper, the research that defined distributed tracing) and Yuri Shkuro (creator of Jaeger), Lightstep brought deep domain expertise to building a production-grade tracing platform.
Acquired by ServiceNow in 2021, Lightstep is now branded as ServiceNow Cloud Observability, though many practitioners still refer to it as Lightstep. This guide covers its core capabilities, differentiators, and how it fits into modern observability and testing workflows.
Core Concepts: What Lightstep Does Differently
Most distributed tracing platforms — Jaeger, Zipkin, and many APM tools — use sampling to manage the volume of trace data. Head-based sampling makes a random decision at the beginning of each trace: collect this one, discard that one. Tail-based sampling waits until the trace is complete, then decides whether to keep it based on certain criteria (errors, slowness, etc.).
Both sampling approaches discard data. The discarded data might include your most important traces — the rare, intermittent failures that cause the most customer pain but are hardest to reproduce.
Lightstep's architecture was designed from the ground up to handle full-fidelity trace ingestion — collecting every span from every request — while maintaining query performance at scale. This is achieved through aggressive stream processing, columnar storage, and a purpose-built query engine for trace data.
For practical debugging, this means:
- When a customer reports that their specific request failed at 2:34am Tuesday, their trace exists in Lightstep — you don't have to hope it was sampled
- Statistical analyses of trace data are meaningful because they're over the complete population, not a sample
- Percentile calculations (P99 latency, for example) are accurate because they include the outliers that most affect tail latency
Change Intelligence: Correlating Deployments with Performance
One of Lightstep's most distinctive features is what it calls Change Intelligence — the ability to automatically correlate performance changes with deployment events and configuration changes.
In modern CI/CD environments, deployments happen frequently. When performance degrades, the first question is usually "what changed?" Without tooling to answer this automatically, engineers spend significant time manually correlating deployment timestamps with performance graphs.
Lightstep's Change Intelligence works by:
- Ingesting deployment events (from CI/CD systems, Kubernetes, or manual API calls)
- Continuously comparing performance metrics before and after each change
- Surfacing statistically significant regressions correlated with specific deployments
- Showing the exact services, operations, and percentiles affected
The result is an automated deployment regression detector. When you deploy a new version, Lightstep immediately begins comparing the new behavior against the pre-deployment baseline. If latency increases for a specific operation, it shows you which deployment introduced the change, which services are affected, and by how much.
Integrating Deployment Events
Sending deployment events to Lightstep is straightforward via the API. Most teams add this to their CI/CD pipeline:
curl -X POST "https://api.lightstep.com/public/v0.2/${ORG}/projects/${PROJECT}/events" \
-H "Authorization: bearer ${LIGHTSTEP_API_KEY}" \
-H "Content-Type: application/json" \
-d "{
\"data\": {
\"type\": \"event\",
\"attributes\": {
\"type\": \"deploy\",
\"title\": \"Deploy v${VERSION}\",
\"description\": \"Deployed ${SERVICE} version ${VERSION} to ${ENVIRONMENT}\",
\"custom\": {
\"version\": \"${VERSION}\",
\"service\": \"${SERVICE}\",
\"environment\": \"${ENVIRONMENT}\",
\"deployer\": \"${CI_USER}\"
}
}
}
}"Once deployment events are flowing, the Change Intelligence dashboard shows a timeline of deployments overlaid with performance metrics, making regressions visually obvious.
Latency Histograms and Percentile Analysis
Lightstep places heavy emphasis on latency histograms as the right way to understand response time distributions. The reasoning is sound: averages are mathematically meaningless for latency (a bimodal distribution with fast and slow responses produces a misleading average), and fixed percentiles like P95 hide the shape of the distribution.
A latency histogram shows the complete distribution: what fraction of requests completed in each latency band. Lightstep renders these histograms both in aggregate and as a heatmap over time, revealing:
- Whether latency is bimodal (suggesting two distinct request populations)
- Whether tail latency is getting worse while median stays stable
- Whether the distribution is shifting gradually over time
For QA and performance teams, histograms are particularly valuable during load testing. The typical load test report shows P50, P90, P95, P99 — snapshots of the distribution at fixed percentiles. A Lightstep latency histogram shows the full shape, making it easier to identify whether tail latency is caused by a small number of extremely slow outliers or by a broad degradation affecting many requests.
Service Health Scores
Lightstep also computes Service Health Scores — composite metrics that combine error rate, latency, and traffic volume into a single health indicator for each service. These scores are designed for service-level agreement (SLA) tracking and high-level health monitoring.
For QA teams, health scores provide a fast sanity check: after deploying a new version, confirm that health scores for affected services remain stable. A declining health score is a signal to investigate more deeply with trace data before the degradation becomes user-visible.
OpenTelemetry Native Support
Lightstep was an early and significant contributor to the OpenTelemetry project. Ben Sigelman co-authored the OpenTracing specification (OpenTelemetry's predecessor), and Lightstep engineers played a key role in the merger of OpenTracing and OpenCensus into OpenTelemetry.
As a result, Lightstep's OpenTelemetry support is comprehensive. The platform accepts OTLP (OpenTelemetry Protocol) traces natively, and Lightstep maintains several OpenTelemetry-related open-source projects. Using OpenTelemetry with Lightstep means no vendor-specific SDK — you write standard OTel code and point the exporter at Lightstep.
A minimal OpenTelemetry setup for a Python service:
from opentelemetry import trace
from opentelemetry.sdk.trace import TracerProvider
from opentelemetry.sdk.trace.export import BatchSpanProcessor
from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import OTLPSpanExporter
from opentelemetry.instrumentation.fastapi import FastAPIInstrumentor
from opentelemetry.instrumentation.sqlalchemy import SQLAlchemyInstrumentor
# Configure Lightstep exporter
exporter = OTLPSpanExporter(
endpoint="https://ingest.lightstep.com:443",
headers={
"lightstep-access-token": os.environ["LIGHTSTEP_ACCESS_TOKEN"]
}
)
provider = TracerProvider()
provider.add_span_processor(BatchSpanProcessor(exporter))
trace.set_tracer_provider(provider)
# Auto-instrument FastAPI and SQLAlchemy
FastAPIInstrumentor.instrument()
SQLAlchemyInstrumentor().instrument()With this configuration, every HTTP request and database query is automatically traced and sent to Lightstep. No Lightstep-specific SDK is imported — only standard OpenTelemetry libraries.
Lightstep vs Jaeger and Zipkin
Jaeger and Zipkin are the dominant open-source distributed tracing platforms. Understanding how Lightstep compares helps teams choose the right tool for their context.
Jaeger
Jaeger, created at Uber and now a CNCF graduated project, is the most widely deployed open-source distributed tracing system. It's free, self-hosted, and integrates well with Kubernetes-native environments. Jaeger supports OpenTelemetry natively and has a broad community.
Jaeger limitations that Lightstep addresses:
- Sampling is mandatory: Jaeger is designed around sampled data. At high request volumes, full-fidelity storage becomes operationally challenging.
- Operational complexity: Running Jaeger at scale requires managing Cassandra or Elasticsearch for storage, Kafka for collection, and multiple Jaeger components. This is significant operational overhead.
- Limited analytics: Jaeger's UI is primarily a trace search and visualization tool. It lacks the aggregation and statistical analysis capabilities that make Lightstep's latency histograms and change intelligence possible.
- No managed offering: Jaeger is self-hosted. You own the infrastructure.
Jaeger is excellent for teams that want open-source tracing without vendor dependency and have the operational capacity to run the infrastructure. It's also a good choice for compliance or data sovereignty requirements where cloud-hosted solutions aren't acceptable.
Zipkin
Zipkin, created at Twitter, was one of the first open-source distributed tracing systems. It's simpler to operate than Jaeger and works well for smaller deployments.
Zipkin limitations:
- Less active development than Jaeger
- Weaker OpenTelemetry integration (Jaeger is ahead here)
- Limited analytics capabilities similar to Jaeger
- Simpler but less flexible architecture
For most teams starting with distributed tracing today, Jaeger is a stronger choice than Zipkin in the open-source category. Zipkin remains relevant for very simple deployments or teams with existing Zipkin integrations.
When to Choose Lightstep Over Jaeger
Lightstep makes sense over Jaeger when:
- Full-fidelity traces are a requirement: If you need to guarantee that every trace is captured (for compliance, customer support, or debugging rare issues), Lightstep's architecture handles this better.
- Analytics and change intelligence matter: Lightstep's latency histograms, health scores, and deployment correlation features don't exist in Jaeger.
- Managed infrastructure is preferred: Lightstep removes operational burden. Jaeger at scale requires substantial infrastructure work.
- You're willing to pay for observability: Lightstep is a commercial product. Teams with budget for observability tooling often find the analytics features worth the cost.
Jaeger makes sense when cost is a primary constraint, data residency requires self-hosting, or your team has the operational capacity and preference for open-source infrastructure.
Using Lightstep for Testing Workflows
Lightstep's capabilities map directly to several common testing use cases.
Performance Regression Detection
The most direct testing application is catching performance regressions in CI/CD. The workflow:
- Deploy to a test environment and send a deployment event to Lightstep
- Run your test suite (functional tests, load tests, or both)
- Query Lightstep's API for the key operations tested, comparing against pre-deployment baselines
- Fail the pipeline if regressions exceed acceptable thresholds
Lightstep's Streams API lets you define monitored queries and access their data programmatically:
import requests
def check_latency_regression(operation, threshold_percent):
"""Fail if P99 latency increased by more than threshold_percent."""
# Query current window
current = requests.get(
f"https://api.lightstep.com/public/v0.2/{ORG}/projects/{PROJECT}/streams",
headers={"Authorization": f"bearer {LIGHTSTEP_API_KEY}"},
params={
"project": PROJECT,
"q": f'service:"{SERVICE}" operation:"{operation}"',
"window-size-ms": 300000 # 5 minutes
}
).json()
current_p99 = current["data"]["attributes"]["summary"]["p99"]
baseline_p99 = get_baseline_p99(operation) # stored from previous run
regression = (current_p99 - baseline_p99) / baseline_p99 * 100
if regression > threshold_percent:
raise AssertionError(
f"{operation} P99 regressed {regression:.1f}% "
f"({baseline_p99:.0f}ms → {current_p99:.0f}ms)"
)Root Cause Analysis for Test Failures
When automated tests fail in CI, the standard debugging cycle is: read error message, guess cause, add logging, redeploy, run again. Lightstep collapses this cycle by providing trace-level context for every request.
An effective CI integration:
- Record the test run start time and CI build ID
- Pass the build ID as a span attribute in your test requests (via HTTP header propagation)
- On test failure, generate a Lightstep link filtered to the build ID and error status
- Include this link in the CI failure notification
Engineers investigating the failure open the link and immediately see the complete traces for the failed requests, including the exact error messages, stack traces, and service interaction patterns — without any manual searching.
Distributed Load Test Analysis
Load testing reveals how your system behaves under stress, but analyzing load test results without distributed tracing is like navigating blind. Lightstep shows you which service in your dependency graph becomes the bottleneck first as load increases.
During a load test, watch Lightstep's service dependency map in real time. As load increases:
- Which service's latency increases first?
- Are errors concentrated in a specific service or operation?
- What does the latency histogram shape tell you? (A distribution shifting rightward indicates general slowdown; a bimodal distribution indicates some requests hitting a slow path)
After the test, use Change Intelligence to compare pre-test and post-test baselines, confirming that performance returned to normal after load was removed.
Migration from Open-Source Tracing to Lightstep
If you're already using Jaeger or Zipkin, migrating to Lightstep is straightforward because OpenTelemetry provides a common instrumentation layer. If your services are instrumented with OpenTelemetry (either directly or via Jaeger SDKs that were migrated to OTel), you change the exporter configuration — not the instrumentation code.
For Jaeger users:
# Before: Jaeger backend
from opentelemetry.exporter.jaeger.thrift import JaegerExporter
exporter = JaegerExporter(agent_host_name="jaeger", agent_port=6831)
# After: Lightstep backend (only this line changes)
from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import OTLPSpanExporter
exporter = OTLPSpanExporter(
endpoint="https://ingest.lightstep.com:443",
headers={"lightstep-access-token": LIGHTSTEP_TOKEN}
)Your instrumentation code — the actual span creation, attribute setting, and context propagation — remains unchanged. This is the practical benefit of investing in OpenTelemetry: vendor portability.
Complementing Distributed Tracing with Functional Testing
Lightstep traces tell you how your application executed a request — which services were called, how long each took, whether errors occurred. They don't tell you whether the application did the right thing — whether the correct order was placed, the right items were returned, the correct price was charged.
HelpMeTest provides automated functional testing that validates these behavioral requirements. When you run HelpMeTest tests against a Lightstep-instrumented application, every functional test generates traces that can be analyzed in Lightstep. A test failure that says "the API returned the wrong product" can be correlated with Lightstep traces showing whether that was caused by a database query returning incorrect data, a downstream service returning an unexpected response, or a timeout causing fallback logic to trigger.
The combination gives you complete observability of both correctness (does the application do what it's supposed to?) and performance (is it doing it efficiently?).
Conclusion
Lightstep (ServiceNow Cloud Observability) occupies a distinct position in the distributed tracing ecosystem: a commercial platform optimized for full-fidelity trace data, sophisticated latency analysis, and automated change intelligence. Its OpenTelemetry-native architecture means no vendor lock-in on instrumentation, and its founding team's depth of experience in distributed tracing shows in the product's design.
For teams where sampling-based tracing is leaving gaps in observability — where rare, customer-reported failures are hard to find because they weren't sampled — Lightstep's full-fidelity approach is a compelling alternative. For teams earlier in their observability journey, starting with Jaeger and OpenTelemetry instrumentation provides a solid foundation that can migrate to Lightstep later without re-instrumentation.