Skip to content

Class GrafanaCloudHostApplicationBuilderExtensions

Namespace: Cephalon.Observability.GrafanaCloud.Hosting
Assembly: Cephalon.Observability.GrafanaCloud.dll

Adds Grafana Cloud OTLP endpoint wiring and access-policy authentication guidance for Cephalon hosts.

public static class GrafanaCloudHostApplicationBuilderExtensions

objectGrafanaCloudHostApplicationBuilderExtensions

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

AddCephalonGrafanaCloud<TBuilder>(TBuilder, Action<GrafanaCloudTelemetryExportOptions>?)

Section titled “ AddCephalonGrafanaCloud<TBuilder>(TBuilder, Action<GrafanaCloudTelemetryExportOptions>?)”

Adds Grafana Cloud-aware OpenTelemetry registration for the Cephalon engine diagnostics surface.

public static TBuilder AddCephalonGrafanaCloud<TBuilder>(this TBuilder builder, Action<GrafanaCloudTelemetryExportOptions>? configure = null) where TBuilder : IHostApplicationBuilder

builder TBuilder

The target host-application builder.

configure Action<GrafanaCloudTelemetryExportOptions>?

An optional callback that can extend or override the configuration-driven Grafana Cloud telemetry export options.

TBuilder

The same builder instance for fluent host composition.

TBuilder

The host-application builder type to extend.

This package keeps Grafana Cloud-specific OTLP endpoint and authentication concerns outside Cephalon.Engine and the baseline observability package. It still uses the shared Engine:Observability:Telemetry contract so hosts can keep one explicit telemetry surface.

When Endpoint or UseSelfHostedDefaults is configured on the shared telemetry contract, the package keeps using that collector-oriented OTLP path and only layers Grafana-friendly resource attributes on top. When those shared endpoint settings are absent and the Grafana Cloud options opt into direct endpoint usage, the package targets the configured Grafana Cloud OTLP endpoint and applies either the raw OTLP headers string or a Basic Authorization header built from the Grafana Cloud instance id and access-policy token.