< Summary

Information
Class: Elsa.Diagnostics.OpenTelemetry.Options.OpenTelemetryDiagnosticsOptions
Assembly: Elsa.Diagnostics.OpenTelemetry
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Diagnostics.OpenTelemetry/Options/OpenTelemetryDiagnosticsOptions.cs
Line coverage
100%
Covered lines: 35
Uncovered lines: 0
Coverable lines: 35
Total lines: 43
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Diagnostics.OpenTelemetry/Options/OpenTelemetryDiagnosticsOptions.cs

#LineLine coverage
 1namespace Elsa.Diagnostics.OpenTelemetry.Options;
 2
 3public class OpenTelemetryDiagnosticsOptions
 4{
 495    public int TraceCapacity { get; set; } = 5_000;
 486    public int SpanCapacity { get; set; } = 25_000;
 487    public int MetricPointCapacity { get; set; } = 25_000;
 488    public int LogRecordCapacity { get; set; } = 10_000;
 479    public int ResourceCapacity { get; set; } = 500;
 3510    public int SubscriberChannelCapacity { get; set; } = 1_000;
 4411    public int MaxQuerySize { get; set; } = 1_000;
 3612    public long MaxHttpRequestBodySize { get; set; } = 10 * 1024 * 1024;
 5113    public string HttpEndpointPath { get; set; } = "/elsa/otlp/v1";
 314    public string? GrpcEndpointPath { get; set; }
 3215    public string GrpcDisabledReason { get; set; } = "gRPC ingestion is not enabled for this host.";
 3016    public string HubRoute { get; set; } = "/elsa/hubs/diagnostics/opentelemetry";
 717    public bool EnableGrpc { get; set; }
 2218    public string? ApiKey { get; set; }
 3519    public string ApiKeyHeaderName { get; set; } = "x-otlp-api-key";
 4420    public bool AllowUnauthenticatedLoopback { get; set; } = true;
 21
 822    public ICollection<string> SensitiveNames { get; set; } =
 3023    [
 3024        "authorization",
 3025        "token",
 3026        "password",
 3027        "secret",
 3028        "api-key",
 3029        "apikey",
 3030        "cookie",
 3031        "connection-string",
 3032        "connectionstring"
 3033    ];
 34
 835    public ICollection<string> SensitiveTextPatterns { get; set; } =
 3036    [
 3037        "(?i)bearer\\s+[A-Za-z0-9._~+/=-]+",
 3038        "(?i)(password|secret|token|api[-_]?key)\\s*[=:]\\s*[^\\s,;]+",
 3039        "(?i)(AccountKey|SharedAccessKey)=([^;\\s]+)"
 3040    ];
 41
 5442    public TimeSpan SensitiveTextPatternTimeout { get; set; } = TimeSpan.FromMilliseconds(100);
 43}