SDK Guides
Language-specific SDKs
Integrate Web Resolve into your applications with our official SDKs. Get started in minutes with detailed guides and examples.
JavaScript/TypeScript
Node.js and browser SDK for modern web applications
Features
- ES6+ support with TypeScript definitions
- Node.js and browser compatibility
- Automatic batching and retries
- Request/response capture
- Error tracking
Installation
npm install @webresolve/sdk-node
Quick Example
import { ObservabilityClient } from '@webresolve/sdk';
const client = new ObservabilityClient({
apiKey: process.env.WR_API_KEY,
environment: process.env.WR_ENVIRONMENT
});
// Capture API request
await client.captureRequest("GET", "/api/users", 200, 150);Python
Python SDK for Django, Flask, FastAPI and more
Features
- Python 3.7+ support
- Django and Flask middleware
- Async/await support
- Context managers
- Structured logging
Installation
pip install webresolve-sdk-node
Quick Example
from webresolve import ObservabilityClient
client = ObservabilityClient(
api_key=os.getenv("WR_API_KEY"),
environment=os.getenv("WR_ENVIRONMENT")
)
# Capture log
client.capture(
message="User login successful",
severity="INFO",
metadata={"user_id": "123"}
)Go
Go SDK for Gin, Echo, and standard library
Features
- Go 1.18+ support
- Gin and Echo middleware
- Context propagation
- Goroutine safe
- Zero dependencies
Installation
go get github.com/webresolve/sdk-node-go
Quick Example
package main
import (
"github.com/webresolve/sdk-go"
)
client := webresolve.NewClient(webresolve.Config{
APIKey: os.Getenv("WR_API_KEY"),
Environment: os.Getenv("WR_ENVIRONMENT"),
})
// Capture error
client.CaptureError("Database connection failed", webresolve.Metadata{
"service": "api",
})Java
Java SDK for Spring Boot and Jakarta EE
Features
- Java 8+ support
- Spring Boot starter
- SLF4J integration
- MDC support
- Servlet filter
Installation
implementation 'com.webresolve:sdk-node-java:1.0.0'
Quick Example
import com.webresolve.sdk.ObservabilityClient;
import com.webresolve.sdk.LogPayload;
@Service
public class UserService {
private final ObservabilityClient client;
public UserService(ObservabilityClient client) {
this.client = client;
}
public void createUser(User user) {
client.capture(LogPayload.builder()
.message("User created")
.severity("INFO")
.metadata(Map.of("userId", user.getId()))
.build());
}
}Ruby
Ruby SDK for Rails, Sinatra, and Rack applications
Features
- Ruby 2.7+ support
- Rails middleware
- Rack integration
- Structured logging
- Thread safe
Installation
gem 'webresolve-sdk-node'
Quick Example
require 'webresolve/sdk'
client = WebResolve::SDK.new(
api_key: ENV['WR_API_KEY'],
environment: ENV['WR_ENVIRONMENT']
)
# Capture log
client.capture(
message: 'Payment processed',
severity: 'INFO',
metadata: { order_id: '123', amount: 99.99 }
)Ready to get started?
Choose your language and follow our comprehensive guides to integrate Web Resolve in minutes.