Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/laget-se/dogstatsd.extensions.hosting
Hosting and startup abstractions for DogStatsd. When using NuGet 3.x this package requires at least version 3.4....
https://github.com/laget-se/dogstatsd.extensions.hosting
dogstatsd nuget
Last synced: 22 days ago
JSON representation
Hosting and startup abstractions for DogStatsd. When using NuGet 3.x this package requires at least version 3.4....
- Host: GitHub
- URL: https://github.com/laget-se/dogstatsd.extensions.hosting
- Owner: laget-se
- License: apache-2.0
- Created: 2020-12-09T12:45:10.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-01-20T16:52:58.000Z (11 months ago)
- Last Synced: 2024-04-26T19:22:12.527Z (8 months ago)
- Topics: dogstatsd, nuget
- Language: C#
- Homepage:
- Size: 117 KB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# DogStatsd.Extensions.Hosting
Hosting and startup abstractions for DogStatsd. When using NuGet 3.x this package requires at least version 3.4....## Usage
> To see the full documentation for StatsdConfig please refer to the [documentation](https://github.com/DataDog/dogstatsd-csharp-client/blob/master/src/StatsdClient/StatsdConfig.cs)```c#
await Host.CreateDefaultBuilder()
.UseDogStatsd(new StatsdConfig
{
StatsdServerName = "127.0.0.1",
Prefix = "prefix",
})
.Build()
.RunAsync();
``````c#
await Host.CreateDefaultBuilder()
.UseDogStatsd((context) => new StatsdConfig
{
StatsdServerName = context.HostingEnvironment.IsProduction() ? "127.0.0.1" : "127.0.0.2",
Prefix = "prefix"
})
.Build()
.RunAsync();
```