Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RequestTracking is not logging correct timestamps #333

Closed
fgheysels opened this issue Jun 8, 2022 · 3 comments
Closed

RequestTracking is not logging correct timestamps #333

fgheysels opened this issue Jun 8, 2022 · 3 comments

Comments

@fgheysels
Copy link
Member

fgheysels commented Jun 8, 2022

I have created a new simple Web API project using the Arcus Web Api v0.8 template.

In this API, I'm using Arcus request-tracking, which has been enabled like this:

private static void ConfigureApp(IApplicationBuilder app)
{
    app.UseHttpCorrelation();
    app.UseRouting();
    app.UseRequestTracking(options => options.OmittedRoutes.Add("/"));
    app.UseExceptionHandling();
  ...
}

I've created a simple controller with an operation which logs a Sql Dependency. Something as simple as this:

[HttpPost]
public IActionResult CreateCar()

    using (var m = DurationMeasurement.Start())
    {
         _logger.LogSqlDependency("test", "database", "something", "foo", true, m);
    }
    return Ok();
}

When I look in AppInsights, the request tracking is wrong:
image

It looks like the request started later then the dependency that was logged, but that is not the case.

I'm using Arcus.Observability 2.4.0 and Arcus.WebApi 1.5.0

@fgheysels
Copy link
Member Author

I believe this is related to this: arcus-azure/arcus.observability#356

@fgheysels
Copy link
Member Author

Before we can fix this, we need to create a new release for Arcus.Observability.

@stijnmoreels
Copy link
Member

stijnmoreels commented Jun 9, 2022

Closing in favor of #310 as it's duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants