RimWorks.RimObs.Library 2.3.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package RimWorks.RimObs.Library --version 2.3.2
                    
NuGet\Install-Package RimWorks.RimObs.Library -Version 2.3.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="RimWorks.RimObs.Library" Version="2.3.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="RimWorks.RimObs.Library" Version="2.3.2" />
                    
Directory.Packages.props
<PackageReference Include="RimWorks.RimObs.Library" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add RimWorks.RimObs.Library --version 2.3.2
                    
#r "nuget: RimWorks.RimObs.Library, 2.3.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package RimWorks.RimObs.Library@2.3.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=RimWorks.RimObs.Library&version=2.3.2
                    
Install as a Cake Addin
#tool nuget:?package=RimWorks.RimObs.Library&version=2.3.2
                    
Install as a Cake Tool

RimWorld Observability Collector

Maintainability Rating Reliability Rating

<img src="https://raw.githubusercontent.com/RimWorks/rimworld-observability-collector/main/About/ModIcon.png" alt="RimObs icon" width="96" align="right">

A telemetry framework for RimWorld mods. Mod authors register named sections and metrics; an out-of-process collector aggregates the data, serves a dashboard, and can export diagnostic bundles.

Full documentation -->

RimObs preview card

For mod authors

Add the library:

dotnet add package RimWorks.RimObs.Library

Instrument a tick:

using RimWorks.RimObs.Api;

private static readonly SectionHandle Tick =
    Obs.Profile.RegisterSection("tick");

public void Tick() {
    using (Obs.Profile.Measure(Tick)) {
        // ... your work ...
    }
}

Section names are auto-prefixed with your mod's packageId. See the Quickstart for the full path from zero to dashboard.

For players

Subscribe to the Workshop item your other mods declare as a dependency. The collector launches automatically with the game and opens the dashboard in your browser. See Installation.

Documentation

For contributors

The repo deliberately spans three .NET targets because each piece runs in a different host.

Project Target Where it runs
RimObs.Library/ net48 Inside RimWorld's Unity Mono. Patches game code via Harmony.
RimObs.Wire/ netstandard2.0 Shared MessagePack types. Linked from both Library and Collector.
RimObs.Collector/ net10.0 Standalone daemon + CLI. Single self-contained binary per RID.
RimObs.Dashboard/ Svelte 5 + Vite Static SPA. Built once, embedded as resource in Collector.exe.

Test projects (RimObs.Library.Tests/, RimObs.Collector.Tests/) are net8.0 xUnit hosts; they exercise the library logic that is RimWorld-independent.

Root layout

The non-obvious neighbors at the repo root exist because this is both a RimWorld mod and a multi-project .NET solution:

  • About/ -- RimWorld mod metadata (About.xml, Preview.png, loadFolders.xml).
  • Assemblies/ -- RimWorld's deploy directory. RimObs.Library builds straight here.
  • RimObs.sln -- single solution so Rider/VS resolve RimObs.Wire from both net48 and net10.0 consumers.
  • Makefile + make.ps1 -- see make build, make test, make publish-collector.
  • docs/wiki/ -- source for the wiki. Edit here, not on the wiki site; CI mirrors on push to main.

Quick start

make build              # SPA + full solution
make test               # xUnit suites
make watch              # collector hot-reload at :17654
make publish-collector  # self-contained binaries for win/linux/osx

Conventions

  • Hot-path discipline for RimObs.Library is mandatory: zero allocation, exception-safe, no locks, no Task/async on the steady path. See Hot-path discipline for the full rules.
  • Wire protocol is MessagePack with per-batch schema_version. Default port 17654 for HTTP and UDP in standalone mode; ephemeral when launched from the game. See Wire protocol.

License

MIT. See LICENSE.

Product Compatible and additional computed target framework versions.
.NET Framework net472 is compatible.  net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.9.1 96 9/10/2026
2.9.0 102 9/10/2026
2.8.0 107 9/8/2026
2.7.0 109 9/8/2026
2.6.2 113 9/7/2026
2.6.1 107 9/7/2026
2.6.0 102 9/7/2026
2.5.1 98 9/7/2026
2.5.0 100 9/7/2026
2.4.0 99 9/5/2026
2.3.4 107 9/5/2026
2.3.3 101 9/2/2026
2.3.2 103 9/2/2026
2.3.1 97 9/1/2026
2.3.0 95 9/1/2026
2.2.6 92 9/1/2026
2.2.5 105 9/1/2026
2.2.4 108 9/1/2026
2.2.3 99 9/1/2026
2.2.2 95 9/1/2026
Loading failed