wha
This commit is contained in:
parent
223e927055
commit
68804ec3cc
1 changed files with 10 additions and 0 deletions
|
@ -33,6 +33,11 @@ builder.Services.AddLogging(logging => logging.AddCustomConsoleFormatter()
|
|||
p.IncludeScopes = true;
|
||||
p.ParseStateValues = true;
|
||||
p.IncludeFormattedMessage = true;
|
||||
p.AddOtlpExporter(o =>
|
||||
{
|
||||
o.Protocol = OtlpExportProtocol.HttpProtobuf;
|
||||
o.Endpoint = new Uri("http://10.42.0.2:4318/");
|
||||
});
|
||||
}));
|
||||
builder.Services.AddDatabaseContext(builder.Configuration);
|
||||
builder.Services.AddSlidingWindowRateLimiter();
|
||||
|
@ -53,6 +58,11 @@ builder.Services.AddOpenTelemetry()
|
|||
p.IncludeScopes = true;
|
||||
p.ParseStateValues = true;
|
||||
p.IncludeFormattedMessage = true;
|
||||
p.AddOtlpExporter(o =>
|
||||
{
|
||||
o.Protocol = OtlpExportProtocol.HttpProtobuf;
|
||||
o.Endpoint = new Uri("http://10.42.0.2:4318/");
|
||||
});
|
||||
})
|
||||
.UseOtlpExporter(OtlpExportProtocol.HttpProtobuf, new Uri("http://10.42.0.2:4318/"));
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue