Documentation Index
Fetch the complete documentation index at: https://docs.tracelit.io/llms.txt
Use this file to discover all available pages before exploring further.
Node.js — @tracelit/sdk
Install the latest version:
v0.1.1 — Apr 27, 2026
Latest NewTracelit.metrics.observableGauge()— callback-based gauge that reads on export interval instead of on every call. Ideal for expensive computations like queue depth pollingWinstonTransport— named export that bridges Winston logs to the OTel LoggerProvider with automatictrace_id/span_idinjectioncreatePinoDestination()— Pino multistream destination for forwarding logs to the Tracelit log pipelineTracelit.expressMetricsMiddleware()— drop-in Express middleware that recordshttp.server.request.count,http.server.request.duration, andhttp.server.error.countper route
ErrorAlwaysOnSampler+ErrorSpanProcessorpair now guarantees error span export even atsampleRate: 0.0- Console bridge (
console.debug/log/info/warn/error) now preserves original output — no silent swallowing process.event_loop.laghistogram timer switched tounref()so it never prevents process exit- Dual CJS + ESM bundles with TypeScript 5 declaration files — no
moduleResolutionshenanigans needed
- Fixed
Tracelit.metricsreturning stalenullreference afterTracelit.start()called more than once - Fixed ESM named exports (
WinstonTransport,createPinoDestination) not resolving in some bundler setups
v0.1.0 — Apr 20, 2026
Initial release First public release of the Tracelit Node.js SDK:Tracelit.configure()+Tracelit.start()lifecycle- Full auto-instrumentation via
@opentelemetry/auto-instrumentations-node— Express, Fastify, pg, Mongoose, Redis, gRPC, GraphQL, Prisma, Kafka.js, Undici, and more Tracelit.tracer— standard OTelTracerfor manual span creationTracelit.metrics— Counter, Histogram, and Gauge helpers with optional-chaining-safenullreturns beforestart()- Automatic
process.memory.rssandprocess.event_loop.lagpolling - Console bridge for automatic log forwarding with trace correlation
ErrorAlwaysOnSampler+ErrorSpanProcessor— errors always exported regardless of sampling- Environment variable fallbacks for all config options
- Node.js ≥ 18, TypeScript ≥ 5, CJS + ESM
Go — github.com/tracelit-ai/tracelit-go
Install the latest version:
v0.1.1 — Apr 27, 2026
Latest Newspan.RecordPanic(r)— records a panic value as an error span event and re-panics by default;WithSwallowPanic()option absorbs the panic insteadtracelit.StartProducerSpan/StartConsumerSpan— explicit producer/consumer span kind constructors for message queue instrumentationbridge.NewZerologWriter(w)— zerolog writer bridge that forwards log records to the OTel LoggerProvider with trace correlation
RecordErrornow attaches a full goroutine stack trace asexception.stacktrace— no manualdebug.Stack()needed- Logger bridges (slog, zap, logrus, zerolog) now inject
trace_idandspan_idfrom the context into every log record automatically middleware.NewHTTPHandlersetshttp.routeattribute using the registered mux pattern (not the raw path), reducing cardinality- Runtime metric export interval configurable via
WithRuntimeInterval(d); defaults to 60 s
- Fixed
tracelit.Configure()(env-var path) not picking upTRACELIT_ENABLED=falsecorrectly when the env var was set to the string"0" - Fixed gRPC client middleware not propagating W3C
traceparentheader when the outgoing context had no existing span
v0.1.0 — Apr 20, 2026
Initial release First public release of the Tracelit Go SDK:tracelit.New(opts...)functional-options constructor +tracelit.Configure()env-var pathStartSpan,StartServerSpan,StartClientSpan— typed span kind helpers with attribute varargsspan.RecordError(err)— captures error + setscodes.ErrorstatusTraceID(ctx)/SpanID(ctx)— string accessors for log correlationmiddleware.NewHTTPHandler/NewHTTPTransport— server and client HTTP instrumentationmiddleware.NewGRPCServerHandler/NewGRPCClientHandler— gRPC stats handler instrumentation- Logger bridges: slog (
bridge.NewSlogHandler), zap (bridge.NewZapCore), logrus (bridge.NewLogrusHook) tracelit.Counter/Histogram— OTel metric instrument helpers- Automatic runtime metrics: goroutines, GC, memory RSS — exported every 60 s
ErrorAlwaysOnSampler+ErrorSpanProcessor— errors always exported- Goroutine-safe context propagation via
context.Context - MIT license, Go ≥ 1.21
Ruby — tracelit gem
Install the latest version:
v0.1.1 — Apr 27, 2026
Latest New- Sidekiq job metrics —
sidekiq.job.count,sidekiq.job.duration,sidekiq.job.error.countemitted automatically via server middleware when Sidekiq is present - Database connection pool metrics —
db.connection_pool.size/busy/idle/waitingpolled every 30 s fromActiveRecord::Base.connection_pool Tracelit.metrics.gauge— point-in-time metric instrument for custom gauges
- Rails log forwarding now uses the
ActiveSupport::BroadcastLoggerAPI (Rails 7.1+) and falls back gracefully toLogger::Formatterwrapping on older versions config.resource_attributeshash is now deep-merged on top of the default OTel resource so SDK attributes (service.name,service.version) are never overwritten- All HTTP server metrics now include
controllerandactionas attributes when instrumented through Action Pack
- Fixed
Tracelit.start!being called twice during Rails boot when both a Railtie and an explicitTracelit.start!call were present — now idempotent - Fixed
ErrorSpanProcessornot exporting spans when the parent sampler returnedDROPfor a span whose status was set to error viaspan.status=
v0.1.0 — Apr 20, 2026
Initial release First public release of the Tracelit Ruby SDK:Tracelit.configureblock + Railtie for zero-touch Rails setupTracelit.start!for Sinatra and RackTracelit.tracer—OpenTelemetry::Trace::Tracerfor manual spansTracelit.metrics— Counter, Histogram, Gauge helpers- Full
opentelemetry-instrumentation-allauto-instrumentation: Rails, ActiveRecord, Action View, Rack, Net::HTTP, Faraday, Redis, Sidekiq, Bunny, gRPC - Automatic HTTP server metrics via
ActiveSupport::Notifications - Process RSS memory poller (60 s interval)
- Rails log forwarding with
trace_id/span_idcorrelation ErrorAlwaysOnSampler+ErrorSpanProcessor— errors always exportedconfig.enabled/TRACELIT_ENABLED=falsefor test environments- Ruby ≥ 3.0, MIT license
.NET — Tracelit NuGet package
Install the latest version:
v0.1.1 — Apr 27, 2026
Latest NewTracelitClient.Metrics.Gauge(name, callback, ...)— observable gauge with a pull-based callback, no background timer neededResourceAttributesnow supportsDictionary<string, string>and is applied to all signals (traces, metrics, logs)- Non-DI
TracelitClient.Configure+TracelitClient.Start+TracelitClient.Shutdownpath for console and worker apps ./release.shhelper — bumps version, commits, tags, and triggers the NuGet publish workflow in one command
AddTracelit()now registersILogger→ OTLP bridge automatically — no separateAddOpenTelemetryLogging()call neededErrorAlwaysOnSamplerupgradesDropdecisions toRecordOnly(notRecordAndSample) so unsampled error spans don’t appear in trace waterfalls but are still exported to the logs tabledotnet.gc.*anddotnet.thread_pool.*metrics now exported viaSystem.Diagnostics.Metricsruntime instrumentation (no reflection)process.memory.rsspoller usesIHostedServicein DI apps so it respects graceful shutdown
- Fixed
TracelitClient.Tracer.StartActiveSpanreturningnullwhen called beforeStart()— now returns a no-op span instead - Fixed
Validate()throwing aNullReferenceExceptioninstead of a descriptiveArgumentExceptionwhenApiKeywas not set - Fixed W3C
traceparentpropagation header not being injected onHttpClientrequests when the activity had no parent
v0.1.0 — Apr 20, 2026
Initial release First public release of the Tracelit .NET SDK:builder.Services.AddTracelit(config => ...)— single-call ASP.NET Core DI integrationTracelitConfigurationwith full env-var fallbacks andValidate()guardTracelitClientstatic façade for non-DI usage- Automatic instrumentation: ASP.NET Core, HttpClient, SqlClient, .NET runtime metrics
TracelitMetrics— Counter, Histogram, Gauge wrappers overSystem.Diagnostics.MetricsMemoryPollerService— backgroundprocess.memory.rsspolling (60 s)ILoggerforwarding via OTLP withtrace_id/span_idcorrelationErrorAlwaysOnSampler+ErrorSpanProcessor— errors always exportedEnabled = false/TRACELIT_ENABLED=falsefor test environments- .NET 8+, MIT license, published to NuGet