Skip to Content
Upblit
AboutOpen SourceCommunityDeveloperContactPricing
Star on GitHub—Sign in
CTRL K
  • Introduction
    • AI Gateway Overview
    • Documents
    • Tenants
    • API Reference Overview
    • AI Gateway API
    • API Keys API
    • Applications API
    • Authentication
    • Ingest API (SDK)
    • Organizations API
    • Projects API
    • Telemetry API
    • Users API
    • Architecture Overview
    • Database Architecture
    • Multi-Tenancy
    • Security Model
    • Service Boundaries
    • Telemetry Pipeline
  • DeployX CLI
    • Contributing
    • Architecture Rules
    • Coding Guidelines
    • SDK Development
    • Dashboard Overview
    • AI Gateway
    • API Keys
    • Applications
    • Observability
    • Organizations
    • Profile
    • Projects
    • Quickstart
    • Authentication
    • Your First Project
    • Installation
    • Observability Overview
    • Structured Logs
    • Telemetry Flow
    • Distributed Traces
    • SDK Overview
    • Express SDK
    • Go SDK
    • Java SDK (Coming Soon)
    • Python SDK
    • React SDK (Coming Soon)
  • Introduction
    • AI Gateway Overview
    • Documents
    • Tenants
    • API Reference Overview
    • AI Gateway API
    • API Keys API
    • Applications API
    • Authentication
    • Ingest API (SDK)
    • Organizations API
    • Projects API
    • Telemetry API
    • Users API
    • Architecture Overview
    • Database Architecture
    • Multi-Tenancy
    • Security Model
    • Service Boundaries
    • Telemetry Pipeline
  • DeployX CLI
    • Contributing
    • Architecture Rules
    • Coding Guidelines
    • SDK Development
    • Dashboard Overview
    • AI Gateway
    • API Keys
    • Applications
    • Observability
    • Organizations
    • Profile
    • Projects
    • Quickstart
    • Authentication
    • Your First Project
    • Installation
    • Observability Overview
    • Structured Logs
    • Telemetry Flow
    • Distributed Traces
    • SDK Overview
    • Express SDK
    • Go SDK
    • Java SDK (Coming Soon)
    • Python SDK
    • React SDK (Coming Soon)

On This Page

  • Installation
  • Basic Setup
  • Span Helpers
  • Logging
  • Configuration
  • Context Propagation
  • Package
SdksExpress SDK

Express SDK

The Upblit Express SDK automatically instruments your Express.js application with distributed tracing and structured logging.

Installation

npm install upblit-express

Basic Setup

const express = require('express') const upblit = require('upblit-express') const app = express() // Add Upblit middleware — must be added before your routes app.use(upblit(process.env.UPBLIT_API_KEY)) app.get('/users/:id', async (req, res) => { const user = await getUser(req.params.id) res.json(user) }) app.listen(3000)

The middleware automatically:

  • Creates a traceId and root span for every request
  • Records the HTTP method, URL, status code, and duration
  • Skips GET /health (health check endpoint)

Span Helpers

Wrap internal calls to create child spans:

const upblit = require('upblit-express') // Service layer span async function getUser(id) { return await upblit.service('getUserById', async () => { return await db.users.findById(id) }) } // External HTTP call span async function chargeCard(amount) { return await upblit.call('stripe', async () => { return await stripe.charges.create({ amount }) }) } // Controller span (for nested route handlers) async function handleCheckout(req, res) { return await upblit.controller('checkout', async () => { // your handler logic }) }

Logging

const upblit = require('upblit-express') // Default level: info upblit.log('User signed in') // Explicit level upblit.log('warn', 'Rate limit approaching') upblit.log('error', 'Payment failed') upblit.log('fatal', 'Database connection lost') // flushed immediately

Log levels: fatal, error, warn, info, debug

Configuration

// Custom ingest URL (e.g., for self-hosted) const upblit = require('upblit-express') // Pass options as second argument (coming in next version) app.use(upblit(process.env.UPBLIT_API_KEY))

Context Propagation

The SDK uses Node.js AsyncLocalStorage to propagate trace context across async calls. No manual context passing is required.

Package

The Express SDK is published as upblit-express. The source is in SDK/Express-sdk/.

Last updated on May 27, 2026
SDK OverviewGo SDK
Upblit

A student-built observability workbench for logs, traces, metrics, API keys, and AI-assisted incident notes.

OAuthAPI scopesTrace contextRetention notes

Product

  • Architecture
  • Dashboard preview
  • AI docs
  • Security
  • Pricing

Developers

  • Developer docs
  • API reference
  • Changelog
  • GitHub
  • Status

Company

  • Support
  • Contact
  • Docs
  • Dashboard
  • Sign in

Legal

  • Privacy Policy
  • Terms
  • Cookie Policy
  • Acceptable Use
  • Data Retention
  • Data Processing

Copyright 2026 Upblit. All rights reserved.

Built for telemetry review, API operations, and incident response.