{"id":26711668,"url":"https://github.com/swisslife-oss/thor-analyzer","last_synced_at":"2026-04-18T01:35:19.137Z","repository":{"id":97516610,"uuid":"96298343","full_name":"SwissLife-OSS/thor-analyzer","owner":"SwissLife-OSS","description":"An ETW EventSource analyzer build on .Net Standard 2.0","archived":false,"fork":false,"pushed_at":"2021-10-20T07:17:41.000Z","size":234,"stargazers_count":3,"open_issues_count":9,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-12T03:31:34.368Z","etag":null,"topics":["analyzer","c-sharp","diagnostics","dotnet","etw","eventsource","eventsource-analyzer","logging","tracing"],"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/SwissLife-OSS.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":"2017-07-05T08:50:39.000Z","updated_at":"2021-10-20T10:22:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"71eadf4f-36c2-458d-9812-431f064b1455","html_url":"https://github.com/SwissLife-OSS/thor-analyzer","commit_stats":null,"previous_names":["chillicream/thor-analyzer","chillicream/eventsourceanalyzer"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/SwissLife-OSS/thor-analyzer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SwissLife-OSS%2Fthor-analyzer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SwissLife-OSS%2Fthor-analyzer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SwissLife-OSS%2Fthor-analyzer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SwissLife-OSS%2Fthor-analyzer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SwissLife-OSS","download_url":"https://codeload.github.com/SwissLife-OSS/thor-analyzer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SwissLife-OSS%2Fthor-analyzer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267780010,"owners_count":24143201,"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-07-29T02:00:12.549Z","response_time":2574,"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":["analyzer","c-sharp","diagnostics","dotnet","etw","eventsource","eventsource-analyzer","logging","tracing"],"created_at":"2025-03-27T10:30:11.129Z","updated_at":"2026-04-18T01:35:19.089Z","avatar_url":"https://github.com/SwissLife-OSS.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Thor Analyzer\n[![release](https://img.shields.io/github/release/ChilliCream/thor-analyzer.svg)](https://github.com/ChilliCream/thor-analyzer/releases) [![package](https://img.shields.io/nuget/v/Thor.Analyzer.svg)](https://www.nuget.org/packages/Thor.Analyzer) [![license](https://img.shields.io/github/license/ChilliCream/thor-analyzer.svg)](https://github.com/ChilliCream/thor-analyzer/blob/master/LICENSE) [![build](https://img.shields.io/appveyor/ci/rstaib/thor-analyzer/master.svg)](https://ci.appveyor.com/project/rstaib/thor-analyzer) [![tests](https://img.shields.io/appveyor/tests/rstaib/thor-analyzer/master.svg)](https://ci.appveyor.com/project/rstaib/thor-analyzer) [![coverage](https://img.shields.io/coveralls/ChilliCream/thor-analyzer.svg)](https://coveralls.io/github/ChilliCream/thor-analyzer?branch=master)\n\nAn analyzer for *ETW* (Event Tracing for Windows) event sources which helps reveal frequent mistakes and also guides in best practices rules.\n\n## Getting Started\n\nGetting started in two steps. Install the *NuGet* package and start writing code. That´s it.\n\n### Install Package\n\nBefore we start we have to decide which package would be the right choice for our project. If we work with the `System.Diagnostics.Tracing` namespace in combination with *.Net* 4.6.1 or higher, we might be well adviced by using the `Thor.Analyzer` package. But if we use the `Microsoft.Diagnostics.Tracing` namespace in combination with *.Net* 4.5.1 or higher instead, we should choose the `Thor.Analyzer.Legacy` package.\n\nIn summary, can be stated that newer projects using the `System.Diagnostics.Tracing` namespace should install the `Thor.Analyzer` package. See the following Powershell script.\n\n```powershell\nInstall-Package Thor.Analyzer\n```\n\nTherefore, older projects using the `Microsoft.Diagnostics.Tracing` namespace should install the `Thor.Analyzer.Legacy` package. See the following Powershell script.\n\n```powershell\nInstall-Package Thor.Analyzer.Legacy\n```\n\n### Basic Example\n\nThis example shows a simple tercet.\n\n```csharp\nMyCustomEventSource eventSource = new MyCustomEventSource();\nEventSourceAnalyzer analyzer = new EventSourceAnalyzer();\nReport report = analyzer.Inspect(eventSource);\n```\n\nThe report contains all the important information we need. If we want to know whether the event schema contains any errors, we can do so by checking the `HasErrors` property.\n\n### Automated Test Example\n\nThis example shows how to automate the analysis of event sources. For this example we used *xUnit*, but any other test framework will work pretty much the same.\n\n```csharp\n[Fact(DisplayName = \"Should not contain any error\")]\npublic void Analyze()\n{\n    // Arrange\n    MyCustomEventSource eventSource = MyCustomEventSource.Log;\n    EventSourceAnalyzer analyzer = new EventSourceAnalyzer();\n\n    // Act\n    Report report = analyzer.Inspect(eventSource);\n\n    // Assert\n    Assert.False(report.HasErrors);\n}\n```\n\n## Documentation\n\nClick [here](https://github.com/ChilliCream/thor-analyzer-docs) to get to the documentation home of *Thor Analyzer*.\n\n## Checkout the Thor Generator\n\nIn most scenarios we recommend to use the *Thor Generator* to generate event sources automatically. Thus, the critical parts are generated in an efficient way by the generator. Click [here](https://github.com/ChilliCream/thor-generator) to get more information about the *Thor Generator*.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswisslife-oss%2Fthor-analyzer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswisslife-oss%2Fthor-analyzer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswisslife-oss%2Fthor-analyzer/lists"}