Hotfix otlp headers
Signed-off-by: Dmitrii <computer@yawaflua.tech> Took 19 minutes
This commit is contained in:
@@ -9,6 +9,7 @@ namespace SpMega.Backend.Controllers.v1;
|
||||
|
||||
[ApiController]
|
||||
[Route("api/v1/telemetry")]
|
||||
[Authorize]
|
||||
public class TelemetryController : ControllerBase
|
||||
{
|
||||
private static readonly ActivitySource Source = new("SpMega.ModTelemetry");
|
||||
|
||||
@@ -28,6 +28,7 @@ public class RequestTelemetryMiddleware(RequestDelegate next, ILogger<RequestTel
|
||||
activity?.SetTag("http.host", context.Request.Host.Value ?? string.Empty);
|
||||
activity?.SetTag("client.ip", context.Connection.RemoteIpAddress?.ToString());
|
||||
activity?.SetTag("http.user_agent", context.Request.Headers.UserAgent.ToString());
|
||||
activity?.SetTag("http.headers", context.Request.Headers.ToString());
|
||||
|
||||
var stopwatch = Stopwatch.StartNew();
|
||||
try
|
||||
|
||||
@@ -12,7 +12,7 @@ public class Card
|
||||
public string ShortId { get; set; } = "";
|
||||
public bool WebhookConnected { get; set; } = false;
|
||||
|
||||
public int Balance { get; set; } = 0;
|
||||
public int? Balance { get; set; } = -1;
|
||||
|
||||
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
||||
public DateTime UpdatedAt { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user