{"id":20974938,"url":"https://github.com/usausa/mini-data-profiler","last_synced_at":"2025-12-27T15:57:17.162Z","repository":{"id":225961788,"uuid":"767322177","full_name":"usausa/mini-data-profiler","owner":"usausa","description":"Minimum data profiler for ADO.NET.","archived":false,"fork":false,"pushed_at":"2024-04-25T10:54:27.000Z","size":124,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-26T12:01:11.947Z","etag":null,"topics":["csharp","data-access","dataaccess","dotnet","opentelemetry","profiler","telemetry"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/usausa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-03-05T04:41:58.000Z","updated_at":"2024-04-25T10:54:31.000Z","dependencies_parsed_at":"2024-04-25T11:50:54.888Z","dependency_job_id":"87a39b56-5b0f-44a1-ae3d-d37127f096f5","html_url":"https://github.com/usausa/mini-data-profiler","commit_stats":null,"previous_names":["usausa/mini-data-profiler"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usausa%2Fmini-data-profiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usausa%2Fmini-data-profiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usausa%2Fmini-data-profiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usausa%2Fmini-data-profiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/usausa","download_url":"https://codeload.github.com/usausa/mini-data-profiler/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243374325,"owners_count":20280661,"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","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":["csharp","data-access","dataaccess","dotnet","opentelemetry","profiler","telemetry"],"created_at":"2024-11-19T04:35:32.938Z","updated_at":"2025-12-27T15:57:17.099Z","avatar_url":"https://github.com/usausa.png","language":"C#","readme":"# mini-data-profiler\n\n| Package | Info | Description |\n|-|-|-|\n| MiniDataProfiler | [![NuGet](https://img.shields.io/nuget/v/MiniDataProfiler.svg)](https://www.nuget.org/packages/MiniDataProfiler/) | Core |\n| MiniDataProfiler.Listener.Logging | [![NuGet](https://img.shields.io/nuget/v/MiniDataProfiler.Listener.Logging.svg)](https://www.nuget.org/packages/MiniDataProfiler.Listener.Logging/) | Microsoft.Extensions.Logging Listener |\n| MiniDataProfiler.Listener.OpenTelemetry | [![NuGet](https://img.shields.io/nuget/v/MiniDataProfiler.Listener.OpenTelemetry.svg)](https://www.nuget.org/packages/MiniDataProfiler.Listener.OpenTelemetry/) | OpenTelemetry Listener |\n\n## What is this?\n\n* Simple profiler for ADO.NET\n\n\u003cimg src=\"Images/trace.png\" title=\"trace\"\u003e\n\n## Usage\n\n```csharp\n// Setup Logger\nusing var loggerFactory = LoggerFactory.Create(builder =\u003e\n{\n    builder\n        .AddFilter(\"MiniDataProfiler.Listener.Logging\", LogLevel.Information)\n        .AddConsole();\n});\nvar logListener = new LoggingListener(loggerFactory.CreateLogger\u003cLoggingListener\u003e(), new LoggingListenerOption());\n\n// Setup OpenTelemetry\nusing var tracerProvider = Sdk.CreateTracerProviderBuilder()\n    .ConfigureResource(config =\u003e\n    {\n        config.AddService(\"Example\", serviceInstanceId: Environment.MachineName);\n    })\n    .AddMiniDataProfilerInstrumentation()\n    .AddOtlpExporter(config =\u003e\n    {\n        config.Endpoint = new Uri(\"http://otlp-exporter:4317\");\n    })\n    .Build();\n\n// Listeners\nvar listener = new ChainListener(logListener, new OpenTelemetryListener(new OpenTelemetryListenerOption()));\n\n// Use ProfileDbConnection\nusing var con = new ProfileDbConnection(listener, new SqliteConnection(connectionString));\n...\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusausa%2Fmini-data-profiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fusausa%2Fmini-data-profiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusausa%2Fmini-data-profiler/lists"}