Skip to content

Commit

Permalink
Fix tracing config
Browse files Browse the repository at this point in the history
  • Loading branch information
sky1045 committed Jun 27, 2024
1 parent 6db041e commit 7045256
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions NineChronicles.Headless.Executable/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ IActionLoader MakeSingleActionLoader()
services.AddSingleton<ConcurrentDictionary<string, ITransaction>>();
services.AddOpenTelemetry()
.ConfigureResource(resource => resource.AddService(
serviceName: Assembly.GetEntryAssembly()?.GetName().Name ?? "NineChronicles.Headless",
serviceName: Environment.MachineName,
serviceVersion: Assembly.GetEntryAssembly()?.GetName().Version?.ToString(),
serviceInstanceId: Environment.MachineName
).AddAttributes(new Dictionary<string, object>
Expand All @@ -501,7 +501,6 @@ IActionLoader MakeSingleActionLoader()
.AddSource("Libplanet.Blockchain.BlockChainStates")
.AddAspNetCoreInstrumentation()
.AddGrpcClientInstrumentation()
.AddConsoleExporter()
.AddProcessor(new Pyroscope.OpenTelemetry.PyroscopeSpanProcessor())
.AddOtlpExporter(opt =>
{
Expand Down

0 comments on commit 7045256

Please sign in to comment.