LiveMetricsExtensions.AddLiveMetrics Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds Live Metrics to the TracerProvider.
public static OpenTelemetry.Trace.TracerProviderBuilder AddLiveMetrics (this OpenTelemetry.Trace.TracerProviderBuilder builder, Action<Azure.Monitor.OpenTelemetry.LiveMetrics.LiveMetricsExporterOptions> configure = default, string name = default);
static member AddLiveMetrics : OpenTelemetry.Trace.TracerProviderBuilder * Action<Azure.Monitor.OpenTelemetry.LiveMetrics.LiveMetricsExporterOptions> * string -> OpenTelemetry.Trace.TracerProviderBuilder
<Extension()>
Public Function AddLiveMetrics (builder As TracerProviderBuilder, Optional configure As Action(Of LiveMetricsExporterOptions) = Nothing, Optional name As String = Nothing) As TracerProviderBuilder
Parameters
- builder
- OpenTelemetry.Trace.TracerProviderBuilder
OpenTelemetry.Trace.TracerProviderBuilder builder to use.
- configure
- Action<LiveMetricsExporterOptions>
Callback action for configuring LiveMetricsExporterOptions.
- name
- String
Name which is used when retrieving options.
Returns
OpenTelemetry.Trace.TracerProviderBuilder
The instance of OpenTelemetry.Trace.TracerProviderBuilder to chain the calls.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET