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 GrafanaCloudHostApplicationBuilderExtensionsInheritance
Section titled “Inheritance”object ← GrafanaCloudHostApplicationBuilderExtensions
Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Methods
Section titled “Methods”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 : IHostApplicationBuilderParameters
Section titled “Parameters”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.
Returns
Section titled “Returns”TBuilder
The same builder instance for fluent host composition.
Type Parameters
Section titled “Type Parameters”TBuilder
The host-application builder type to extend.
Remarks
Section titled “Remarks”
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.