Skip to content

Commit 6eb3d76

Browse files
docs: updated the README.md
1 parent b6579b1 commit 6eb3d76

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,20 @@ The latest version is available on [NuGet](https://www.nuget.org/packages/Purvie
99
* .NET 8
1010
* .NET 9
1111

12+
Reference in your .props or csproj file:
13+
14+
```xml
15+
<PackageReference Include="Purview.Telemetry.SourceGenerator" Version="2.0.0">
16+
<PrivateAssets>all</PrivateAssets>
17+
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
18+
</PackageReference>
19+
```
20+
1221
```csharp
22+
using Purview.Telemetry.Activities;
23+
using Purview.Telemetry.Logging;
24+
using Purview.Telemetry.Metrics;
25+
1326
[ActivitySource]
1427
[Logger]
1528
[Meter]
@@ -53,4 +66,6 @@ interface IEntityStoreTelemetry
5366
}
5467
```
5568

69+
Checkout the [.NET Aspire Sample](https://github.com/purview-dev/purview-telemetry-sourcegenerator/tree/main/samples/SampleApp) Project to see the Activities, Logging, and Metrics working with the dashaboard.
70+
5671
For more information see the [wiki](https://github.com/purview-dev/purview-telemetry-sourcegenerator/wiki).

0 commit comments

Comments
 (0)