Skip to content

Commit

Permalink
Enable Azure ActivitySources so Azure Components participate in traci…
Browse files Browse the repository at this point in the history
…ng (#26)
  • Loading branch information
eerhardt authored Oct 2, 2023
1 parent 1bf988d commit 2e5eaf6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 5 additions & 2 deletions samples/BasketService/BasketService.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
<ProjectReference Include="..\ServiceDefaults\ServiceDefaults.csproj" />
</ItemGroup>

<ProjectExtensions><VisualStudio><UserProperties /></VisualStudio></ProjectExtensions>

<!-- Enable Azure ActivitySources so Azure Components participate in tracing. -->
<ItemGroup>
<RuntimeHostConfigurationOption Include="Azure.Experimental.EnableActivitySource"
Value="true" />
</ItemGroup>
</Project>
3 changes: 2 additions & 1 deletion samples/BasketService/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"MaxRetries": 2,
"Delay": "00:00:01"
}
}
},
"Tracing": true
},
"StackExchange:Redis": {
"ConfigurationOptions": {
Expand Down

0 comments on commit 2e5eaf6

Please sign in to comment.