{"id":30110574,"url":"https://github.com/monoscope-tech/dotnet-server","last_synced_at":"2025-08-10T04:47:52.283Z","repository":{"id":273363132,"uuid":"919329021","full_name":"monoscope-tech/dotnet-server","owner":"monoscope-tech","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-20T12:34:58.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-10T14:51:24.294Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/monoscope-tech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-20T07:36:41.000Z","updated_at":"2025-01-20T12:35:00.000Z","dependencies_parsed_at":"2025-01-20T13:44:23.749Z","dependency_job_id":"c120004c-99cb-40f0-adf2-26fbdfdeaeb2","html_url":"https://github.com/monoscope-tech/dotnet-server","commit_stats":null,"previous_names":["apitoolkit/dotnet-server","monoscope-tech/dotnet-server"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/monoscope-tech/dotnet-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monoscope-tech%2Fdotnet-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monoscope-tech%2Fdotnet-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monoscope-tech%2Fdotnet-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monoscope-tech%2Fdotnet-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/monoscope-tech","download_url":"https://codeload.github.com/monoscope-tech/dotnet-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monoscope-tech%2Fdotnet-server/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269677557,"owners_count":24457861,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-08-10T04:47:37.952Z","updated_at":"2025-08-10T04:47:52.267Z","avatar_url":"https://github.com/monoscope-tech.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n![APItoolkit's Logo](https://github.com/apitoolkit/.github/blob/main/images/logo-white.svg?raw=true#gh-dark-mode-only)\n![APItoolkit's Logo](https://github.com/apitoolkit/.github/blob/main/images/logo-black.svg?raw=true#gh-light-mode-only)\n\n## .NET Core SDK\n\n[![APItoolkit SDK](https://img.shields.io/badge/APItoolkit-SDK-0068ff?logo=dotnet)](https://github.com/topics/apitoolkit-sdk) [![Join Discord Server](https://img.shields.io/badge/Chat-Discord-7289da)](https://apitoolkit.io/discord?utm_campaign=devrel\u0026utm_medium=github\u0026utm_source=sdks_readme) [![APItoolkit Docs](https://img.shields.io/badge/Read-Docs-0068ff)](https://apitoolkit.io/docs/sdks/dotnet/dotnetcore?utm_campaign=devrel\u0026utm_medium=github\u0026utm_source=sdks_readme) [![Build Status](https://github.com/apitoolkit/apitoolkit-dotnet/workflows/.NET/badge.svg)](https://github.com/apitoolkit/apitoolkit-dotnet1/actions?query=workflow%3ACI) [![NuGet](https://img.shields.io/nuget/v/ApiToolkit.Net.svg)](https://nuget.org/packages/ApiToolkit.Net) [![Nuget](https://img.shields.io/nuget/dt/ApiToolkit.Net.svg)](https://nuget.org/packages/ApiToolkit.Net)\n\nAPIToolkit .NET SDK is a middleware that can be used to monitor HTTP requests. It is provides additional functionalities on top of the open telemetry instrumentation which creates a custom span for each request capturing details about the request including request, response bodies errors and outgoing requests.\n\n\u003c/div\u003e\n\n---\n\n## Table of Contents\n\n- [Installation](#installation)\n- [Setup OpenTelemetry](#setup-opentelemetry)\n- [APItoolkit SDK Configuration](#sdk-configuration)\n- [Contributing and Help](#contributing-and-help)\n- [License](#license)\n\n---\n\n## Installation\n\nKindly run the command below to install the package:\n\n```sh\ndotnet add package ApiToolkit.Net\n```\n\n## Setup OpenTelemetry\n\nRun the following command to install the OpenTelemetry auto instrumentation for .NET:\n\n```sh\n# Download the bash script\ncurl -sSfL https://github.com/open-telemetry/opentelemetry-dotnet-instrumentation/releases/latest/download/otel-dotnet-auto-install.sh -O\n\n# Install core files\nsh ./otel-dotnet-auto-install.sh\n\n# Enable execution for the instrumentation script\nchmod +x $HOME/.otel-dotnet-auto/instrument.sh\n\n# Setup the instrumentation for the current shell session\n. $HOME/.otel-dotnet-auto/instrument.sh\n```\n\n#### OpenTelemetry Configuration\n\nAfter installating .NET autoinstrumentation packages, you can configure the OpenTelemetry instrumentation by setting the following environment variables:\n\n```sh\nexport OTEL_EXPORTER_OTLP_ENDPOINT=\"http://otelcol.apitoolkit.io:4317\" # Specifies the endpoint to send the traces to.\nexport OTEL_DOTNET_AUTO_TRACES_ADDITIONAL_SOURCES=\"APItoolkit.HTTPInstrumentation\" # The apitoolkit instrumentation  activity resource.\nexport OTEL_SERVICE_NAME=\"my-service\" # Specifies the name of the service.\nexport OTEL_RESOURCE_ATTRIBUTES=\"at-project-key={ENTER_YOUR_API_KEY_HERE}\" # Adds your API KEY to the resource.\nexport OTEL_EXPORTER_OTLP_PROTOCOL=\"grpc\" # Specifies the protocol to use for the OpenTelemetry exporter.\n```\n\nAfter setting the environment variables, build and run your application and you should see the logs, traces and metrics in the APIToolkit dashboard.\n\n## SDK Configuration\n\nThe SDK allows you to capture the request and response bodies, errors, outgoing requests and more.\n\neg:\n\n```csharp\nusing ApiToolkit.Net;\n\n// Initialize the APItoolkit client\nvar config = new Config\n{\n    Debug = false,\n    Tags = new List\u003cstring\u003e { \"environment: production\", \"region: us-east-1\" },\n    ServiceVersion: \"v2.0\",\n};\nvar client = await APIToolkit.NewClient(config);\n// END Initialize the APItoolkit client\n// Register the middleware to use the initialized client\napp.Use(async (context, next) =\u003e\n{\n    var apiToolkit = new APIToolkit(next, client);\n    await apiToolkit.InvokeAsync(context);\n});\n\n# app.UseEndpoint(..)\n# other middleware and logic\n# ...\n```\n\n\u003e [!NOTE]\n\u003e\n\u003e - Please make sure the APItoolkit middleware is added before `UseEndpoint` and other middleware are initialized.\n\u003e - The `{ENTER_YOUR_API_KEY_HERE}` demo string should be replaced with the [API key](https://apitoolkit.io/docs/dashboard/settings-pages/api-keys?utm_campaign=devrel\u0026utm_medium=github\u0026utm_source=sdks_readme) generated from the APItoolkit dashboard.\n\n\u003cbr /\u003e\n\n\u003e [!IMPORTANT]\n\u003e\n\u003e To learn more configuration options (redacting fields, error reporting, outgoing requests, etc.), please read this [SDK documentation](https://apitoolkit.io/docs/sdks/dotnet/dotnetcore?utm_campaign=devrel\u0026utm_medium=github\u0026utm_source=sdks_readme).\n\n## Contributing and Help\n\nTo contribute to the development of this SDK or request help from the community and our team, kindly do any of the following:\n\n- Read our [Contributors Guide](https://github.com/apitoolkit/.github/blob/main/CONTRIBUTING.md).\n- Join our community [Discord Server](https://apitoolkit.io/discord?utm_campaign=devrel\u0026utm_medium=github\u0026utm_source=sdks_readme).\n- Create a [new issue](https://github.com/apitoolkit/apitoolkit-dotnet/issues/new/choose) in this repository.\n\n## License\n\nThis repository is published under the [MIT](LICENSE) license.\n\n---\n\n\u003cdiv align=\"center\"\u003e\n\n\u003ca href=\"https://apitoolkit.io?utm_campaign=devrel\u0026utm_medium=github\u0026utm_source=sdks_readme\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\u003cimg src=\"https://github.com/apitoolkit/.github/blob/main/images/icon.png?raw=true\" width=\"40\" /\u003e\u003c/a\u003e\n\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonoscope-tech%2Fdotnet-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmonoscope-tech%2Fdotnet-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonoscope-tech%2Fdotnet-server/lists"}