<commit_before># App.Lib.MetricsDotNetDatadogPlugin

This is a .NET translation of the metrics to datadog java adapter (https://github.com/coursera/metrics-datadog)
Essentially this code is an adapter between Metrics.Net and Datadog.

The initial version supports UDP only, Http is commented out but will be finished in a later release.

## Usage

~~~scala

using System;
using System.Threading;
using GuaranteedRate.Metric.DatadogPlugin;
using metrics;
using metrics.Core;
using GuaranteedRate.Metric.DatadogPlugin.Models;
using GuaranteedRate.Metric.DatadogPlugin.Models.Transport;
using GuaranteedRate.Metric.DatadogPlugin.Interfaces;
using GuaranteedRate.Metric.DatadogPlugin.Formatters;
using System.Collections.Generic;


...
ITransport transport = new UdpTransport.Builder().WithPort(port)
    .WithStatsdHost("appdev")
    .Build();

string host = "hostName";
string environment = "testEnv";
string[] path = { "ApplicationName", "DomainName" };

IMetricNameFormatter formatter = new AppendMetricNameToPathFormatter();

var reporter = new DataDogReporter(metrics, transport, formatter, environment, host, path);
reporter.Start(5, TimeUnit.Seconds);
...

## Nuget Info<commit_msg>Markdown!<commit_after># App.Lib.MetricsDotNetDatadogPlugin

This is a .NET translation of the metrics to datadog java adapter (https://github.com/coursera/metrics-datadog)
Essentially this code is an adapter between Metrics.Net and Datadog.

The initial version supports UDP only, Http is commented out but will be finished in a later release.

## Usage

~~~scala

using System;
using System.Threading;
using GuaranteedRate.Metric.DatadogPlugin;
using metrics;
using metrics.Core;
using GuaranteedRate.Metric.DatadogPlugin.Models;
using GuaranteedRate.Metric.DatadogPlugin.Models.Transport;
using GuaranteedRate.Metric.DatadogPlugin.Interfaces;
using GuaranteedRate.Metric.DatadogPlugin.Formatters;
using System.Collections.Generic;


...
ITransport transport = new UdpTransport.Builder().WithPort(port)
    .WithStatsdHost("appdev")
    .Build();

string host = "hostName";
string environment = "testEnv";
string[] path = { "ApplicationName", "DomainName" };

IMetricNameFormatter formatter = new AppendMetricNameToPathFormatter();

var reporter = new DataDogReporter(metrics, transport, formatter, environment, host, path);
reporter.Start(5, TimeUnit.Seconds);
...

~~~~

## Nuget Info
{'fraction_non_alphanumeric': 0.09983150800336985, 'fraction_numerical': 0.0008424599831508003, 'mean_word_length': 5.884057971014493, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6899906', 'n_tokens_mistral': 712, 'n_tokens_neox': 687, 'n_words': 195}