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]
|
[ApiController]
|
||||||
[Route("api/v1/telemetry")]
|
[Route("api/v1/telemetry")]
|
||||||
|
[Authorize]
|
||||||
public class TelemetryController : ControllerBase
|
public class TelemetryController : ControllerBase
|
||||||
{
|
{
|
||||||
private static readonly ActivitySource Source = new("SpMega.ModTelemetry");
|
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("http.host", context.Request.Host.Value ?? string.Empty);
|
||||||
activity?.SetTag("client.ip", context.Connection.RemoteIpAddress?.ToString());
|
activity?.SetTag("client.ip", context.Connection.RemoteIpAddress?.ToString());
|
||||||
activity?.SetTag("http.user_agent", context.Request.Headers.UserAgent.ToString());
|
activity?.SetTag("http.user_agent", context.Request.Headers.UserAgent.ToString());
|
||||||
|
activity?.SetTag("http.headers", context.Request.Headers.ToString());
|
||||||
|
|
||||||
var stopwatch = Stopwatch.StartNew();
|
var stopwatch = Stopwatch.StartNew();
|
||||||
try
|
try
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ public class Card
|
|||||||
public string ShortId { get; set; } = "";
|
public string ShortId { get; set; } = "";
|
||||||
public bool WebhookConnected { get; set; } = false;
|
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 CreatedAt { get; set; } = DateTime.UtcNow;
|
||||||
public DateTime UpdatedAt { get; set; }
|
public DateTime UpdatedAt { get; set; }
|
||||||
|
|||||||
Reference in New Issue
Block a user