You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ReadMe.md
+27-33Lines changed: 27 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1190,21 +1190,12 @@ public class CommandTracingFilter(ConsoleAppFilter next) : ConsoleAppFilter(next
1190
1190
For visualization, if your solution includes a web application, using .NET Aspire would be convenient during development. For production environments, there are solutions like Datadog and New Relic, as well as OSS tools from Grafana Labs. However, especially for local development, I think OpenTelemetry native all-in-one solutions are convenient. Here, let's look at tracing using the OSS [SigNoz](https://signoz.io/).
1191
1191
1192
1192
```csharp
1193
-
usingConsoleAppFramework;
1194
-
usingMicrosoft.Extensions.DependencyInjection;
1195
-
usingMicrosoft.Extensions.Hosting;
1196
-
usingMicrosoft.Extensions.Logging;
1197
-
usingOpenTelemetry.Logs;
1198
-
usingOpenTelemetry.Metrics;
1199
-
usingOpenTelemetry.Resources;
1200
-
usingOpenTelemetry.Trace;
1201
-
usingSystem.Diagnostics;
1202
-
1203
1193
// git clone https://github.com/SigNoz/signoz.git
1204
1194
// cd signoz/deploy/docker
1205
1195
// docker compose up
1206
1196
Environment.SetEnvironmentVariable("OTEL_EXPORTER_OTLP_ENDPOINT", "http://localhost:4317"); // 4317 or 4318
1207
1197
1198
+
// crate builder from Microsoft.Extensions.Hosting.Host
0 commit comments