Getting Started
Getting Started with Sematext Tracing¶
Sematext Tracing helps you monitor and troubleshoot distributed applications by tracking requests as they flow through your services. Built on OpenTelemetry, it provides visibility into performance bottlenecks, error propagation, and service dependencies.
Prerequisites¶
Before you begin, ensure you have:
- A Sematext Cloud account (sign up free)
- Access to your application's deployment configuration (auto-instrumentation requires no code changes) or source code (for manual instrumentation)
- Ability to install the Sematext Agent on your infrastructure
How It Works¶
Sematext Tracing works by:
- Instrumenting Your Application: Configure OpenTelemetry libraries through deployment settings (environment variables, startup parameters, agent configs) or add custom instrumentation for advanced use cases
- Collecting Traces: The Sematext Agent receives traces from your application via OTLP protocol
- Forwarding to Cloud: The agent securely sends trace data to Sematext Cloud
- Analysis & Visualization: View traces in the Sematext UI with powerful search and analysis tools
- Alerting: Get notified of performance issues, errors, and anomalies automatically
Complete Setup Process¶
Setting up tracing involves creating a Tracing App and following the configuration wizard:
1. Create Your Tracing App¶
The wizard walks you through:
- App Creation: Name your App and choose a plan (Basic, Standard, or Pro)
- Infrastructure Setup: Select an existing Infra App or create a new one
- SDK Configuration: Choose your programming language and configure services
- Agent Installation: Deploy the Sematext Agent using your preferred method
The wizard provides detailed instructions for each step, including code examples and configuration commands.
2. What You'll Set Up¶
Programming Languages Supported:
- Java (including Kotlin), Python, Node.js, Go, .NET, Ruby, PHP, JavaScript
- See detailed SDK documentation for language-specific setup guides
Agent Deployment Options:
- Single Host: Install directly on individual servers (Linux/Windows)
- Server Fleet: Deploy across multiple servers using Ansible or Group Policy
- Containerized: Run as containers in Docker, Swarm, Nomad, or AWS ECS
- Kubernetes: Deploy as DaemonSet on any Kubernetes distribution
- See complete agent installation guide and OpenTelemetry configuration
Configuration Includes:
- OpenTelemetry SDK setup with automatic instrumentation (zero code changes required)
- Service name configuration and multi-service support
- OTLP endpoint configuration (gRPC port 4337, HTTP port 4338)
- Agent authentication and secure trace forwarding
Quick Start Example¶
Here's what the process looks like for a Python application:
- Create Tracing App in Sematext Cloud
- Install OpenTelemetry:
- Configure Environment:
- Run with Instrumentation:
The wizard provides similar examples for all supported languages.
What You'll See After Setup¶
Once everything is configured and running:
Tracing Overview¶
- Key Metrics: Total traces, error rates, latency percentiles (P50, P95, P99)
- Service Health: Current status and performance trends for each service
- Recent Alerts: Any threshold violations or anomalies detected
- Error Analysis: Recent errors and their distribution across services
- Learn more: Tracing Overview Dashboard
Traces Explorer¶
- Search Capabilities: Find traces by service, duration, status, or custom attributes
- Timeline View: See trace volume and patterns over time
- Advanced Filtering: Filter by response codes, span errors, database operations
- Learn more: Traces Explorer Guide
Individual Trace Analysis¶
- Waterfall View: Visual representation of the complete request flow
- Span Details: Examine individual operations with attributes, events, and errors
- Performance Insights: Identify slow operations and optimization opportunities
- Learn more: Trace Details Analysis
Common Use Cases¶
Microservices Monitoring - Track requests across multiple services - Identify service dependencies and communication patterns - Monitor inter-service latency and error rates
Performance Optimization - Find slow database queries and API calls - Identify bottlenecks in request processing - Understand resource usage patterns
Error Debugging - Trace error propagation across services - See complete context when errors occur - Correlate errors with performance issues
Capacity Planning - Monitor system behavior under different loads - Identify scaling bottlenecks - Plan infrastructure improvements
Next Steps¶
After setting up your first Tracing App:
- Set Up Alerts: Get notified of performance issues
- Explore Advanced Features: Learn about all dashboard components
- Add Custom Instrumentation: Enhance trace details with manual instrumentation
- Configure Sampling: Optimize costs and performance
- Cost Optimization: Advanced strategies to reduce tracing costs
Common Configuration¶
OTLP Endpoints¶
- gRPC:
http://localhost:4337
- HTTP:
http://localhost:4338
(recommended) - Protocol:
http/protobuf
Environment Variables¶
export OTEL_SERVICE_NAME=your-service-name
export OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4338
export OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
Need Help?¶
- Check SDK documentation for language-specific setup
- Review Agent OpenTelemetry configuration
- See the Troubleshooting Guide
- Contact support@sematext.com