Repository navigation
Feat/v1.0.54 - #9
Merged
Merged
Conversation
…s options and documentation
…ndling, and service registration extensions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
[1.0.54] - 2026-10-09
Added
ConsoleMetricSinkOptions):opt.AddThreshold<DurationSnapshot>(warn, critical, ...)to color-code snapshots based on latency thresholds (warning in DarkYellow/Orange, critical in Red, normal in Green).TimeSpan,double,long, and custom predicate rules across snapshot types (FailureSnapshot,ExceptionSnapshot,MemorySnapshot,ThroughputSnapshot).opt.ColorSelector = snapshot => snapshot switch { ... }.TrackStreamforIAsyncEnumerable<T>andIEnumerable<T>):TrackStream<T>onIAsyncEnumerable<T>andIEnumerable<T>for seamless streaming telemetry.scope.SetItems(count)for throughput calculation, and catches/records exceptions viascope.SetException(ex)without requiring manualtry/catchorusingblocks in business logic.[CallerMemberName]resolution, custom tags, and metadata dictionaries.HierarchyCounter& Execution Tree Rendering):HierarchyCounterthat correlates parent and child tracking scopes across asynchronous execution contexts (AsyncLocal) with zero manual token passing.SelfDuration) and self-allocated memory (SelfAllocatedBytes) by subtracting child metrics from total parent values.HierarchyTreeSnapshotimplementingIMetricSnapshotwith tree formatting (▼,├─,└─,│).ConsoleMetricSinkwith threshold color coding and dynamic color selectors per node.ActivitySource("DotnetKit.MetricFlow"), creating correlated parent-child distributed tracing spans with tags for duration, items, allocated bytes, and exception details.options.AddHierarchyCounter()andtracker.GetHierarchySnapshot("MetricName").ConsoleMetricSinkOptions):DurationUnit:Milliseconds,Seconds,Minutes,Hours,Auto) and decimal precision (DurationDecimals).MemoryUnit:Bytes,Kilobytes,Megabytes,Gigabytes,Auto) and decimal precision (MemoryDecimals).ThroughputUnit, e.g."req/s"or"items/s").opt.AddFormatter<TSnapshot>(Func<TSnapshot, string>)and counter name formattersopt.AddFormatter(string counterName, Func<IMetricSnapshot, string>)for seamless custom counter support without overriding sinks.HierarchyTreeSnapshot.Fixed
<GenerateDocumentationFile>true</GenerateDocumentationFile>in exported project files (DotnetKit.MetricFlow,DotnetKit.MetricFlow.AspNetCore, andDotnetKit.MetricFlow.OpenTelemetry)./// <summary>) in the generated NuGet packages for developer IntelliSense and API documentation.