Open Telemetry SDK Bootstrapping Troubleshooting

This document explains how to find and work around Open Telemetry SDK bootstrapping failures in custom pages, event handlers, and web applications.

This guide applies to Relativity Server 2026 and later.

Custom pages, event handlers, and web applications bootstrap the Open Telemetry SDK when they start, so they can send logs, metrics, and traces to Environment Watch. If the bootstrapping fails, the component keeps working but sends no telemetry through the Open Telemetry SDK. In some cases, such as a dependency conflict in an ASP.NET MVC custom page, the page itself can fail to load.

Apply the steps in this guide only when a component logs an Open Telemetry SDK bootstrapping warning, as described in Find the Bootstrapping Warning. The DefaultBuildExclusions instance setting is a workaround that keeps the failing component running by skipping its Open Telemetry SDK bootstrapping. It is not a preventive or general configuration step. If no bootstrapping warnings are logged, do not create or change this setting, because excluded components stop sending telemetry to Environment Watch.

The setting applies only to custom pages, web applications, and event handlers, including event handlers that run inside Kepler services and agents. The Service Host, Kepler service, and agent processes themselves bootstrap the Open Telemetry SDK separately and never read it.

Find the Bootstrapping Warning

  1. Open Kibana and go to Discover.

  2. Select the logs-* data view and set the time range to when the problem started.

  3. Run the following query:

    Copy
    message : "Failed to build the Open Telemetry providers by default"

    Expected result: If there are no results, no component failed to bootstrap the Open Telemetry SDK and you don't need this guide. Each result is a warning from a component that failed to bootstrap it.

  4. Expand a result and review the application name and the exception to identify the component. For example:

    Copy
    Could not load file or assembly 'System.Diagnostics.DiagnosticSource, Version=10.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies.

The error "Failed to build the Open Telemetry providers. A safe fallback is now used" is a different case. The Open Telemetry SDK has already recovered from it, so this guide does not apply.

Skip the Open Telemetry SDK Bootstrapping for the Failing Component

Use the DefaultBuildExclusions instance setting to stop the failing component from bootstrapping the Open Telemetry SDK. Other components are not affected.

  1. In Relativity, go to Instance Settings and create a new instance setting with these values. If the setting already exists, edit its value instead.

    Field Value
    Name DefaultBuildExclusions
    Section Relativity.OpenTelemetry
    Machine Leave blank
    Value Type Text
    Value The component to exclude (see the table below)
    Failing component Value
    Custom pages CustomPage
    Event handlers EventHandler
    One application only The application GUID
    More than one Separate entries with a semicolon, for example CustomPage;EventHandler

    Do not use Relativity or * as a value. Relativity is the system name of web applications, custom pages, and some event handlers, so it stops the Open Telemetry SDK bootstrapping for the whole web tier, and * stops it for every component. Use CustomPage, EventHandler, or an application GUID.

  2. Restart the component so it reads the new value:

    • Custom pages, web applications, and event handlers that run in IIS: run iisreset from an elevated PowerShell window on each web server.
    • Event handlers that run inside Kepler services or agents: restart the kCura Service Host Manager or kCura EDDS Agent Manager Windows service on the affected servers.
  3. Open the component again, then run the query from Find the Bootstrapping Warning with the time range starting after the restart.

    Expected result: No new results for the excluded component. Other components continue to log "Successfully created the Open Telemetry providers".

An excluded component sends no telemetry to Environment Watch, so its dashboards and alerts stop receiving data. Once the underlying issue is fixed, clear the DefaultBuildExclusions value and restart the component again.

The same release adds the DefaultBuildInclusions instance setting in the same section. When it has entries, only the listed components bootstrap the Open Telemetry SDK. If a component is listed in both settings, the exclusion wins.

Feedback