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

Provide extension on ILogger to log metrics #17

Closed
tomkerkhove opened this issue Feb 6, 2020 · 1 comment
Closed

Provide extension on ILogger to log metrics #17

tomkerkhove opened this issue Feb 6, 2020 · 1 comment
Assignees
Labels
application-insights All issues related to Azure Application Insights metrics All issues related to metrics serilog All issues related to Serilog
Projects
Milestone

Comments

@tomkerkhove
Copy link
Contributor

Provide extension on Serilog to log metrics:

Ideas are:

var context = new Dictionary<string, object>
{
    {ContextProperties.Customer, "Contoso"}
};

_logger.LogMetric("Orders Processed", 1, context);

Extension should allow you to provide contextual information by passing a dictionary, but should not be mandatory.

It should seemlessly integrate with the Azure Application Insight sink and track it as a "Metric".

A sample by Tom will be provided as a starting point.

@tomkerkhove tomkerkhove added application-insights All issues related to Azure Application Insights serilog All issues related to Serilog metrics All issues related to metrics labels Feb 6, 2020
@tomkerkhove tomkerkhove added this to To do in Roadmap via automation Feb 6, 2020
@tomkerkhove tomkerkhove added this to the v0.1 milestone Feb 19, 2020
@stijnmoreels stijnmoreels modified the milestones: v0.1, v0.2 Feb 26, 2020
@tomkerkhove tomkerkhove self-assigned this Mar 3, 2020
@tomkerkhove tomkerkhove modified the milestones: v0.2, v0.1 Mar 6, 2020
@stijnmoreels
Copy link
Member

Done?

Roadmap automation moved this from To do to Done Mar 30, 2020
@tomkerkhove tomkerkhove changed the title Provide extension on Serilog to log metrics Provide extension on ILogger to log metrics Apr 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
application-insights All issues related to Azure Application Insights metrics All issues related to metrics serilog All issues related to Serilog
Projects
Roadmap
  
Done
Development

No branches or pull requests

2 participants