OtlpConfigurationExtensions
AddOtlpEnvironment(IResource, IConfiguration, IHostEnvironment)
AddOtlpEnvironment(IResource, IConfiguration, IHostEnvironment, OtlpProtocol)
WithOtlpExporter<T>(IResourceBuilder<T>)
WithOtlpExporter<T>(IResourceBuilder<T>, OtlpProtocol)
WithOtlpExporterIfEndpointAvailable<T>(IResourceBuilder<T>, OtlpProtocol)
net11.0
namespace Aspire.Hosting
{
public static class OtlpConfigurationExtensions
{
[AspireExportIgnore(Reason = "Optional OTLP exporter registration is currently used by C# hosting integrations only.")]
public static IResourceBuilder<T>! WithOtlpExporterIfEndpointAvailable<T>(this IResourceBuilder<T>! builder, OtlpProtocol protocol)
where T, IResourceWithEnvironment!;
}
}
| .NET | 8.09.010.011.0 |
|---|---|
Information specific to net11.0 | |
| Assembly | Aspire.Hosting , Version=13.6.0.0, PublicKeyToken=cc7b13ffcd2ddd51 |
| Referencing | Your project needs a package reference to |
| Package | Aspire.Hosting (13.6.0-preview.1.26463.1) net8.0 |
| Preview | This API is contained in a prerelease package. |
| Platform Restrictions | This API is supported on all platforms. |
- Built-in API
- Package-provided API