diff --git a/.changeset/embedded-attribute-definition.md b/.changeset/embedded-attribute-definition.md deleted file mode 100644 index 03781070..00000000 --- a/.changeset/embedded-attribute-definition.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"purview-telemetry-sourcegenerator": minor ---- - -Use `AddEmbeddedAttributeDefinition` to inject `Microsoft.CodeAnalysis.EmbeddedAttribute` via Roslyn's official API, and apply `[global::Microsoft.CodeAnalysis.Embedded]` to all generated marker attribute types. - -This ensures generated marker types are invisible to IDE tooling and consumer code, eliminating spurious symbol conflicts. Requires Roslyn 4.14.0+ (ships with Visual Studio 2022 17.14+ and .NET 10 SDK). diff --git a/CHANGELOG.md b/CHANGELOG.md index c5fd01f3..154c6043 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,38 +1,42 @@ # Changelog +## 4.3.0 + +### Minor Changes + +- [#100](https://github.com/kjldev/purview-telemetry-sourcegenerator/pull/100) [`41e920f`](https://github.com/kjldev/purview-telemetry-sourcegenerator/commit/41e920fb6007572db54ee52b0973f7254b1aa209) Thanks [@kieronlanning](https://github.com/kieronlanning)! - Use `AddEmbeddedAttributeDefinition` to inject `Microsoft.CodeAnalysis.EmbeddedAttribute` via Roslyn's official API, and apply `[global::Microsoft.CodeAnalysis.Embedded]` to all generated marker attribute types. + + This ensures generated marker types are invisible to IDE tooling and consumer code, eliminating spurious symbol conflicts. Requires Roslyn 4.14.0+ (ships with Visual Studio 2022 17.14+ and .NET 10 SDK). + All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines. ## [4.2.0](https://github.com/purview-dev/purview-telemetry-sourcegenerator/compare/v4.1.0...v4.2.0) (2026-05-24) - ### ⚠ BREAKING CHANGES -* consumers must build with VS 2022 17.14+ or .NET 10 SDK -(10.0.200+). Runtime targets (.NET 4.8, .NET 8+) are unaffected. +- consumers must build with VS 2022 17.14+ or .NET 10 SDK + (10.0.200+). Runtime targets (.NET 4.8, .NET 8+) are unaffected. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> ### Features -* adding Benchmark.DotNet Artifacts to teh git ignore ([a330703](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/a330703e12713164a4a315ddab0af83f004d9624)) -* use AddEmbeddedAttributeDefinition and apply [Embedded] to generated marker types ([0be0054](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/0be0054c8403f77a48b401f0fc3a9ebbe34ca74d)) - +- adding Benchmark.DotNet Artifacts to teh git ignore ([a330703](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/a330703e12713164a4a315ddab0af83f004d9624)) +- use AddEmbeddedAttributeDefinition and apply [Embedded] to generated marker types ([0be0054](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/0be0054c8403f77a48b401f0fc3a9ebbe34ca74d)) ### Bug Fixes -* trigger CD for merged code changes ([4c76c82](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/4c76c828ada945c6a9e2fcea9676cb5be7ab4005)) +- trigger CD for merged code changes ([4c76c82](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/4c76c828ada945c6a9e2fcea9676cb5be7ab4005)) ## [4.1.0](https://github.com/purview-dev/purview-telemetry-sourcegenerator/compare/v4.0.0...v4.1.0) (2026-04-16) - ### Features -* embed message template and literal EventId in generated telemetry log attributes ([c1937cb](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/c1937cbe10f58c3166f5198fbbc019ef08213b1d)) - +- embed message template and literal EventId in generated telemetry log attributes ([c1937cb](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/c1937cbe10f58c3166f5198fbbc019ef08213b1d)) ### Bug Fixes -* correct Log+EventId arg ordering and use SymbolDisplay for string escaping ([1ccfdf5](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/1ccfdf50262a1cdb871bf1843bdef19bae30b5a0)) +- correct Log+EventId arg ordering and use SymbolDisplay for string escaping ([1ccfdf5](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/1ccfdf50262a1cdb871bf1843bdef19bae30b5a0)) ## [4.0.0](https://github.com/purview-dev/purview-telemetry-sourcegenerator/compare/v4.0.0-prerelease.8...v4.0.0) (2026-04-07) @@ -40,22 +44,22 @@ Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> ### Features -* emit C# 7.3-compatible code when language version < 8 ([153dd49](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/153dd4936dbf74f5fc08c5f35799d91c9d35b0de)) -* omit IMeterFactory for net48 targets; thread supportsIMeterFactory through logging pipeline ([64c2944](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/64c2944fc24ea6ee84419a3d217c7f9ff5de1eed)) +- emit C# 7.3-compatible code when language version < 8 ([153dd49](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/153dd4936dbf74f5fc08c5f35799d91c9d35b0de)) +- omit IMeterFactory for net48 targets; thread supportsIMeterFactory through logging pipeline ([64c2944](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/64c2944fc24ea6ee84419a3d217c7f9ff5de1eed)) ## [4.0.0-prerelease.7](https://github.com/purview-dev/purview-telemetry-sourcegenerator/compare/v4.0.0-prerelease.6...v4.0.0-prerelease.7) (2026-03-24) ### Features -* add ILogger-to-Purview-Telemetry code refactoring provider with tests ([24ac577](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/24ac57792242b01bbf1c762558419e15c396aee2)) -* implement multi-target telemetry methods and apply Roslyn incremental generator best practices ([f98b0f1](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/f98b0f1db399590327c9f8ec97844e55c2bf1882)) -* improve ILogger-to-Telemetry refactoring provider ([1fcbbb9](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/1fcbbb983a96b9cb5921156f11186c7e120373a1)) +- add ILogger-to-Purview-Telemetry code refactoring provider with tests ([24ac577](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/24ac57792242b01bbf1c762558419e15c396aee2)) +- implement multi-target telemetry methods and apply Roslyn incremental generator best practices ([f98b0f1](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/f98b0f1db399590327c9f8ec97844e55c2bf1882)) +- improve ILogger-to-Telemetry refactoring provider ([1fcbbb9](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/1fcbbb983a96b9cb5921156f11186c7e120373a1)) ### Bug Fixes -* add missing CurrentVersion pattern to update-version script ([7ef7c19](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/7ef7c1914d1be7eb5b90c5b6f84c181b5dac6346)) -* correct inverted NoForecastsRecieved/ForecastsRecieved condition in WeatherAPIClient ([02a6612](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/02a6612b0bbf93aa364841d34f39b93df3428bc5)) -* resolve all 22 WIP test failures for multi-target telemetry ([8cf6e93](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/8cf6e937250b17aed588388b98794ab38a929429)) +- add missing CurrentVersion pattern to update-version script ([7ef7c19](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/7ef7c1914d1be7eb5b90c5b6f84c181b5dac6346)) +- correct inverted NoForecastsRecieved/ForecastsRecieved condition in WeatherAPIClient ([02a6612](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/02a6612b0bbf93aa364841d34f39b93df3428bc5)) +- resolve all 22 WIP test failures for multi-target telemetry ([8cf6e93](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/8cf6e937250b17aed588388b98794ab38a929429)) ## [4.0.0-prerelease.6](https://github.com/purview-dev/purview-telemetry-sourcegenerator/compare/v4.0.0-prerelease.5...v4.0.0-prerelease.6) (2026-03-16) @@ -63,36 +67,36 @@ Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> ### Features -* add per-method logging v1/v2 selection via DisableMSLoggingTelemetryGeneration ([f718ea5](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/f718ea53faa8e9de56e21131aec0958641feae89)) -* **logging:** replace DisableMSLoggingTelemetryGeneration with LoggerGenerationMode enum ([a1db589](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/a1db5895ea4c6134e38f3651f839942b96faee67)) +- add per-method logging v1/v2 selection via DisableMSLoggingTelemetryGeneration ([f718ea5](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/f718ea53faa8e9de56e21131aec0958641feae89)) +- **logging:** replace DisableMSLoggingTelemetryGeneration with LoggerGenerationMode enum ([a1db589](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/a1db5895ea4c6134e38f3651f839942b96faee67)) ### Bug Fixes -* **metrics:** use correct zero-tag overload in generated instrument calls ([37e1f80](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/37e1f80aa1fa856e853377e7647506609755f6dd)) -* update-version script references .ts extension not .js ([c2dd5af](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/c2dd5afc326308cc5c20dfdd76ba34d66269c41d)) -* use git reset --hard instead of pull --ff-only in pullWiki ([240e423](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/240e4230e4ebd20dbfbf480ffe42af58d331d9e3)) +- **metrics:** use correct zero-tag overload in generated instrument calls ([37e1f80](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/37e1f80aa1fa856e853377e7647506609755f6dd)) +- update-version script references .ts extension not .js ([c2dd5af](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/c2dd5afc326308cc5c20dfdd76ba34d66269c41d)) +- use git reset --hard instead of pull --ff-only in pullWiki ([240e423](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/240e4230e4ebd20dbfbf480ffe42af58d331d9e3)) ## [4.0.0-prerelease.4](https://github.com/purview-dev/purview-telemetry-sourcegenerator/compare/v4.0.0-prerelease.3...v4.0.0-prerelease.4) (2026-03-08) ### Features -* add TSG1010 diagnostic for missing interface source attribute ([6822ef4](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/6822ef4636dc12dfd8f567ed8c41f9184157d67c)) +- add TSG1010 diagnostic for missing interface source attribute ([6822ef4](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/6822ef4636dc12dfd8f567ed8c41f9184157d67c)) ## [4.0.0-prerelease.3](https://github.com/purview-dev/purview-telemetry-sourcegenerator/compare/v4.0.0-prerelease.2...v4.0.0-prerelease.3) (2026-02-23) ### Features -* add TSG3022 diagnostic for non-nullable Activity return types and fix CS8603 ([2cdef0b](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/2cdef0b60764c94adf03437d45e8114283c4fdee)) +- add TSG3022 diagnostic for non-nullable Activity return types and fix CS8603 ([2cdef0b](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/2cdef0b60764c94adf03437d45e8114283c4fdee)) ## [4.0.0-prerelease.2](https://github.com/purview-dev/purview-telemetry-sourcegenerator/compare/v4.0.0-prerelease.1...v4.0.0-prerelease.2) (2026-02-14) ### Features -* added Telemetry Names generated clases with meter and activity names ([8681033](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/86810330314cae7bc540c99f029d4bc4bf6ad402)) +- added Telemetry Names generated clases with meter and activity names ([8681033](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/86810330314cae7bc540c99f029d4bc4bf6ad402)) ### Bug Fixes -* ensured the meter and metric generated names are standard ([c949c29](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/c949c292c68dc4b91e7e44442eb338000bb929d3)) +- ensured the meter and metric generated names are standard ([c949c29](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/c949c292c68dc4b91e7e44442eb338000bb929d3)) ## [4.0.0-prerelease.1](https://github.com/purview-dev/purview-telemetry-sourcegenerator/compare/v4.0.0-prerelease.0...v4.0.0-prerelease.1) (2026-02-08) @@ -100,8 +104,8 @@ Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> ### Features -* added OTel style generated names across MELT ([61df63f](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/61df63fa0cc0ae5259f03aa0497df7ad809ddddb)) -* Performance optimizations - string caching and single-pass attribute counting ([9be6eb8](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/9be6eb8e9d724dfdeec2c631de8b52f75982417f)) +- added OTel style generated names across MELT ([61df63f](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/61df63fa0cc0ae5259f03aa0497df7ad809ddddb)) +- Performance optimizations - string caching and single-pass attribute counting ([9be6eb8](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/9be6eb8e9d724dfdeec2c631de8b52f75982417f)) ## [4.0.0-alpha.4](https://github.com/purview-dev/purview-telemetry-sourcegenerator/compare/v4.0.0-alpha.2...v4.0.0-alpha.4) (2026-01-27) @@ -109,11 +113,11 @@ Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> ### Features -* updated the sample app to include a web app ([4e0035c](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/4e0035c11a526a0c83808ebad7ae89945fa305a7)) +- updated the sample app to include a web app ([4e0035c](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/4e0035c11a526a0c83808ebad7ae89945fa305a7)) ### Bug Fixes -* **logging:** correct isScoped detection to only IDisposable return types ([5338501](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/5338501b12864c9532a10660b446b6543f508ffd)) +- **logging:** correct isScoped detection to only IDisposable return types ([5338501](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/5338501b12864c9532a10660b446b6543f508ffd)) ## [3.2.4](https://github.com/purview-dev/purview-telemetry-sourcegenerator/compare/v3.2.4-prerelease.1...v3.2.4) (2025-07-27) @@ -123,9 +127,9 @@ Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> ### Bug Fixes -* accidently left auto-verifg on ([3163d49](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/3163d49d13eccad5115616c8c435b1e9d72d8347)) -* fixed the Vertify parameters update ([b474466](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/b47446636f4fffce4e77657fce0a31eba4968310)) -* fixing nullable ActivityContext parameter usage, [#74](https://github.com/purview-dev/purview-telemetry-sourcegenerator/issues/74) ([1df12f9](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/1df12f94664b3feb5b3d90e955c96bc0f137171e)) +- accidently left auto-verifg on ([3163d49](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/3163d49d13eccad5115616c8c435b1e9d72d8347)) +- fixed the Vertify parameters update ([b474466](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/b47446636f4fffce4e77657fce0a31eba4968310)) +- fixing nullable ActivityContext parameter usage, [#74](https://github.com/purview-dev/purview-telemetry-sourcegenerator/issues/74) ([1df12f9](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/1df12f94664b3feb5b3d90e955c96bc0f137171e)) ## [3.2.3](https://github.com/purview-dev/purview-telemetry-sourcegenerator/compare/v3.2.1...v3.2.3) (2025-07-08) @@ -135,53 +139,53 @@ Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> ### Bug Fixes -* fixed issue [#73](https://github.com/purview-dev/purview-telemetry-sourcegenerator/issues/73), also finally used CSharpier for formatting ([e0f4cc1](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/e0f4cc114786cf99a80b96233abcde256b6c96a1)) +- fixed issue [#73](https://github.com/purview-dev/purview-telemetry-sourcegenerator/issues/73), also finally used CSharpier for formatting ([e0f4cc1](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/e0f4cc114786cf99a80b96233abcde256b6c96a1)) ## [3.2.0](https://github.com/purview-dev/purview-telemetry-sourcegenerator/compare/v3.2.0-prerelease.0...v3.2.0) (2025-04-24) ### Features -* added another option for event inference ([e3c4678](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/e3c467875293879fb5514f23f328dcf3561dfbc8)) +- added another option for event inference ([e3c4678](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/e3c467875293879fb5514f23f328dcf3561dfbc8)) ## [3.1.0](https://github.com/purview-dev/purview-telemetry-sourcegenerator/compare/v3.0.0...v3.1.0) (2025-04-20) ### Features -* adding changelog/ release generation ([19765aa](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/19765aa908f3c34cdc6c6d978eac8cb54d0cb1d7)) +- adding changelog/ release generation ([19765aa](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/19765aa908f3c34cdc6c6d978eac8cb54d0cb1d7)) ### Bug Fixes -* fixing ci action - missing solution ([ea08f70](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/ea08f707e23d49a4fd8ddecc48e0db2161460bd6)) +- fixing ci action - missing solution ([ea08f70](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/ea08f707e23d49a4fd8ddecc48e0db2161460bd6)) ## [3.0.0](https://github.com/purview-dev/purview-telemetry-sourcegenerator/compare/v2.0.1...v3.0.0) (2025-02-19) ### Features -* added lots of fixes and scoped logger (v2) now output formatted message ([40b7104](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/40b7104af93907ed0996b6af23d93408f7ecf15e)) -* added support for enumerating arrays or ienumerables ([b7e627d](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/b7e627d82e0d407c06955e0d9e76837a9686e84c)) -* added test (and tests) for creating diagnotics when generic interface or methods used ([61f438e](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/61f438e0dbbea65e44eeb46e32f2655a2abcb217)) -* **messagetemplate:** [partial] regex parsing integrated ([e235a0d](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/e235a0d737d63d80719613408be8e6c0471560f3)) -* **messagetemplate:** [partial] working on log gen v2 ([60a7f1b](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/60a7f1b2f3d4abc6de592cec7e5afe2dcc5a1c38)) -* **messagetemplate:** [partial] working on log gen v2 ([f42c371](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/f42c3713db8e08966ca8b3c8ec5aa820c64c9495)) -* updated all emitters to use global:: ([44b56f6](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/44b56f61d8655929794d66e0c5aac54871d92f1f)) +- added lots of fixes and scoped logger (v2) now output formatted message ([40b7104](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/40b7104af93907ed0996b6af23d93408f7ecf15e)) +- added support for enumerating arrays or ienumerables ([b7e627d](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/b7e627d82e0d407c06955e0d9e76837a9686e84c)) +- added test (and tests) for creating diagnotics when generic interface or methods used ([61f438e](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/61f438e0dbbea65e44eeb46e32f2655a2abcb217)) +- **messagetemplate:** [partial] regex parsing integrated ([e235a0d](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/e235a0d737d63d80719613408be8e6c0471560f3)) +- **messagetemplate:** [partial] working on log gen v2 ([60a7f1b](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/60a7f1b2f3d4abc6de592cec7e5afe2dcc5a1c38)) +- **messagetemplate:** [partial] working on log gen v2 ([f42c371](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/f42c3713db8e08966ca8b3c8ec5aa820c64c9495)) +- updated all emitters to use global:: ([44b56f6](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/44b56f61d8655929794d66e0c5aac54871d92f1f)) ### Bug Fixes -* added missing {CodeGen} to template attributes ([b14d630](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/b14d630e930600e7212c376284bbe098006b666c)) -* off-by-one error when exception parameter provided ([8e0c02f](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/8e0c02f01869eabba27272bb15cbb87957739c38)) +- added missing {CodeGen} to template attributes ([b14d630](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/b14d630e930600e7212c376284bbe098006b666c)) +- off-by-one error when exception parameter provided ([8e0c02f](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/8e0c02f01869eabba27272bb15cbb87957739c38)) ## [2.0.1](https://github.com/purview-dev/purview-telemetry-sourcegenerator/compare/v2.0.0...v2.0.1) (2025-02-02) ### Features -* updated sample app to use Minimal API ([58bc4e5](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/58bc4e552cbda2c18c175fcf2156d71b5e140d0a)) +- updated sample app to use Minimal API ([58bc4e5](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/58bc4e552cbda2c18c175fcf2156d71b5e140d0a)) ## [2.0.0](https://github.com/purview-dev/purview-telemetry-sourcegenerator/compare/v1.0.12...v2.0.0) (2025-02-01) ### Features -* added abilitty to set Activity Status Code when defining an Event ([8c3c11b](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/8c3c11b16164d13cd46095ff70906e03b5b288d2)) -* added ability to disable MS Logging related classes. Dropped support for .NET 7 ([3e943e4](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/3e943e435feb5dbff7c4f8bead6c31061f70093a)) +- added abilitty to set Activity Status Code when defining an Event ([8c3c11b](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/8c3c11b16164d13cd46095ff70906e03b5b288d2)) +- added ability to disable MS Logging related classes. Dropped support for .NET 7 ([3e943e4](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/3e943e435feb5dbff7c4f8bead6c31061f70093a)) ## [1.0.12](https://github.com/purview-dev/purview-telemetry-sourcegenerator/compare/v1.0.11...v1.0.12) (2024-06-09) @@ -193,8 +197,8 @@ Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> ### Features -* added diagnostic for duplicate method names ([6989c83](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/6989c83b1e37b2d83fb786804fef419ace9e7a6a)) -* added explicit attributes for log levels ([e4b6b28](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/e4b6b28b57b34ba4f2dae874699c6d21dc5170ae)) +- added diagnostic for duplicate method names ([6989c83](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/6989c83b1e37b2d83fb786804fef419ace9e7a6a)) +- added explicit attributes for log levels ([e4b6b28](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/e4b6b28b57b34ba4f2dae874699c6d21dc5170ae)) ## [1.0.8](https://github.com/purview-dev/purview-telemetry-sourcegenerator/compare/v1.0.6...v1.0.8) (2024-05-27) @@ -202,35 +206,35 @@ Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> ### Features -* added new diagnostic (info) for when no Activity method is defined, but an Event and/ or Context is ([2cca495](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/2cca49542db3f46ce524d34376714977aaf9b601)) +- added new diagnostic (info) for when no Activity method is defined, but an Event and/ or Context is ([2cca495](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/2cca49542db3f46ce524d34376714977aaf9b601)) ## [1.0.5](https://github.com/purview-dev/purview-telemetry-sourcegenerator/compare/v1.0.4...v1.0.5) (2024-05-06) ### Bug Fixes -* fixed diagnostic id duplication ([4e02398](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/4e0239850937fa46698820724d00291ec7ce0b5b)) +- fixed diagnostic id duplication ([4e02398](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/4e0239850937fa46698820724d00291ec7ce0b5b)) ## [1.0.4](https://github.com/purview-dev/purview-telemetry-sourcegenerator/compare/v1.0.3...v1.0.4) (2024-05-01) ### Bug Fixes -* fixed invalid prefix modes for instruments ([b1867ec](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/b1867ec8a33e7baf6348c3a03269b48630cbc7e6)) +- fixed invalid prefix modes for instruments ([b1867ec](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/b1867ec8a33e7baf6348c3a03269b48630cbc7e6)) ## [1.0.3](https://github.com/purview-dev/purview-telemetry-sourcegenerator/compare/v1.0.2...v1.0.3) (2024-04-30) ### Features -* added AutoCounterAttribute which is the same as CounterAttribute(AutoIncrement = true) ([ff5a80a](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/ff5a80aa37cba97aa418d4e58b0e8a95bcc74150)) +- added AutoCounterAttribute which is the same as CounterAttribute(AutoIncrement = true) ([ff5a80a](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/ff5a80aa37cba97aa418d4e58b0e8a95bcc74150)) ### Bug Fixes -* fixed issue causing generic (List etc) parameters from correctly generating ([098532b](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/098532b43405a5e81a34ee0ab4855350ff5e1524)) +- fixed issue causing generic (List etc) parameters from correctly generating ([098532b](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/098532b43405a5e81a34ee0ab4855350ff5e1524)) ## [1.0.2](https://github.com/purview-dev/purview-telemetry-sourcegenerator/compare/v1.0.1...v1.0.2) (2024-04-25) ### Features -* used the assembly name as the default activity source name ([74e0b45](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/74e0b45c063810e280d79d9c878706662b6e5c14)) +- used the assembly name as the default activity source name ([74e0b45](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/74e0b45c063810e280d79d9c878706662b6e5c14)) ## [1.0.1](https://github.com/purview-dev/purview-telemetry-sourcegenerator/compare/v1.0.0...v1.0.1) (2024-04-25) @@ -238,26 +242,26 @@ Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> ### Features -* added basic support for otel exception format ([228562f](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/228562fd81e1a491afc718854422aa0d682872a4)) -* supporting hash-defines for mutli-framework targetting ([7b17254](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/7b172543f6bccbf19598276694b731ecf5097aea)) -* telemetry (multi-target generation) working ([6b93faf](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/6b93faf7fd3599e32fddbde390d0a2eccba16b15)) +- added basic support for otel exception format ([228562f](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/228562fd81e1a491afc718854422aa0d682872a4)) +- supporting hash-defines for mutli-framework targetting ([7b17254](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/7b172543f6bccbf19598276694b731ecf5097aea)) +- telemetry (multi-target generation) working ([6b93faf](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/6b93faf7fd3599e32fddbde390d0a2eccba16b15)) ### Bug Fixes -* fixed event exception generation null check and added agressive inlining to all generated methods ([5071dd2](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/5071dd2e87fa1c131c32773abf9464be982a9fc4)) -* made the activity/ event/ exception situation more liberal ([6075786](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/6075786353ed9ddc2fe4fbb46782f2a0d5365c84)) +- fixed event exception generation null check and added agressive inlining to all generated methods ([5071dd2](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/5071dd2e87fa1c131c32773abf9464be982a9fc4)) +- made the activity/ event/ exception situation more liberal ([6075786](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/6075786353ed9ddc2fe4fbb46782f2a0d5365c84)) ## [0.0.1](https://github.com/purview-dev/purview-telemetry-sourcegenerator/compare/6707d6d29c95fa658663d0da439fae307a1cd9a5...v0.0.1) (2024-03-18) ### Features -* added activities and events, moving on to metrics ([fd1cdf2](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/fd1cdf2a9e7a8259c12883aa1715cfb5021eae95)) -* adding activities ([653b7f0](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/653b7f05c7014cc248a8bcea923e5ef71e8584ef)) -* basis for working metrics ([203a966](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/203a9666ff10e3fa2de2aaf004b1174f3de849b0)) -* logging: basic tests working ([6707d6d](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/6707d6d29c95fa658663d0da439fae307a1cd9a5)) -* observable metrics can return bool to indicate if they're already initialized or not ([d56d8de](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/d56d8de5c198fb7eb065f60e0a4574237a57fbda)) -* tests pass for MELT emitters -> more tests required ([871c643](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/871c6433e2183a4b43a2900a50a4e8b078819298)) +- added activities and events, moving on to metrics ([fd1cdf2](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/fd1cdf2a9e7a8259c12883aa1715cfb5021eae95)) +- adding activities ([653b7f0](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/653b7f05c7014cc248a8bcea923e5ef71e8584ef)) +- basis for working metrics ([203a966](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/203a9666ff10e3fa2de2aaf004b1174f3de849b0)) +- logging: basic tests working ([6707d6d](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/6707d6d29c95fa658663d0da439fae307a1cd9a5)) +- observable metrics can return bool to indicate if they're already initialized or not ([d56d8de](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/d56d8de5c198fb7eb065f60e0a4574237a57fbda)) +- tests pass for MELT emitters -> more tests required ([871c643](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/871c6433e2183a4b43a2900a50a4e8b078819298)) ### Bug Fixes -* fixed di generation ([9ae6711](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/9ae67115967bd5e89fb8d5cd5a1451b906c6a911)) +- fixed di generation ([9ae6711](https://github.com/purview-dev/purview-telemetry-sourcegenerator/commit/9ae67115967bd5e89fb8d5cd5a1451b906c6a911)) diff --git a/README.md b/README.md index b7363174..50db7066 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ Generates [`ActivitySource`](https://learn.microsoft.com/en-us/dotnet/api/system Add to your `Directory.Build.props` or `.csproj` file: ```xml - + all analyzers diff --git a/package.json b/package.json index 2a58163a..7c2a6330 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "purview-telemetry-sourcegenerator", - "version": "4.2.0", + "version": "4.3.0", "description": "Generates [`ActivitySource`](https://learn.microsoft.com/en-us/dotnet/api/system.diagnostics.activitysource), [`ILogger`](https://learn.microsoft.com/en-us/dotnet/api/microsoft.extensions.logging.ilogger), and [`Metrics`](https://learn.microsoft.com/en-us/dotnet/api/system.diagnostics.metrics) based on interface methods.", "readme": "README.md", "scripts": {