* prom prototype
* minor refactor
* improve mem
* skeleton of the PrometheusSerializer
* a working server
* clear up test
* specialize netframework
* clean up
* update test
* fix unit test
* minor improvement
* comment
* escape metric names
* handle inf/nan
* minor name change
* nit
* more assertion
* patch for old frameworks
* add comment explaining why we use empty string if the label value is null
* Updated PrometheusExporterMiddleware for new PrometheusSerializer API.
* Added some exception handling.
* Test fix.
Co-authored-by: Mikel Blanchard <mblanchard@macrosssoftware.com>
* Remove unused new (found in disassembly in public nuget)
```
internal static void AddBatch(this ExportLogsServiceRequest request, Resource processResource, in Batch<OpenTelemetry.Logs.LogRecord> logRecordBatch)
{
new Dictionary<string, InstrumentationLibraryLogs>();
ResourceLogs resourceLogs = new ResourceLogs
{
Resource = processResource
};```
* Remove now unused using
Co-authored-by: Alan West <3676547+alanwest@users.noreply.github.com>
* Added a public ctor to Batch<T> to unblock user scenarios.
* Bug fixes and improvements.
* Unit test.
* CHANGELOG update
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
@pellared has been an active contributor to the project for few months now. He is already an approver and among top contributors to the [Auto-instrumentation](https://github.com/open-telemetry/opentelemetry-dotnet-instrumentation) efforts, which recently switched to be building on top of SDK from this repo. Robert's expertise in auto-instrumentation would be a welcome addition to this team!
Contributions include not only [PRs](https://github.com/open-telemetry/opentelemetry-dotnet/pulls?q=is%3Apr+author%3Apellared), but active engagement in reviews, responding to issues/slack conversations and SIG meetings (despite odd timings!)
* Mention logs as an option for OTLP exporter
Logs exporter recently landed here: https://github.com/open-telemetry/opentelemetry-dotnet/pull/1964
* Mention logs support, requiring separate package
* Relative link within repo
* Create README.md
* Fix relative path and line length
* Fix relative path
* NuGet badges
Co-authored-by: Alan West <3676547+alanwest@users.noreply.github.com>
* Use a file name to fix path warning
* Prereq is implicit already w/NuGet dependency
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
Co-authored-by: Alan West <3676547+alanwest@users.noreply.github.com>
* Added PrometheusExporterMiddleware benchmark.
* Tweak.
* Clean up nits.
* Made the benchmarks more interesting.
* Prometheus exporter performance tweaks.
* Cleanup.
* Use the pool buffer to write to so we only call stream.WriteAsync once per line.
* Code review.
* Improved version of PrometheusMetricsFormatHelper.
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>