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

Application name not used to populate the Service Name in New Relic Logs #9

Open
michielvoo opened this issue Jul 21, 2021 · 1 comment

Comments

@michielvoo
Copy link

michielvoo commented Jul 21, 2021

Status

BUG REPORT

Steps

  1. Configure the New Relic sink using .WriteTo.NewRelicLogs(endpointUrl, applicationName, licenseKey)
  2. Write a log message
  3. Check the log details in New Relic Logs
  4. Service Name (in the header, above the table that lists all the log message's properties) is set to N/A

Expected behaviour

Service Name is set to the value of the applicationName variable that was used to configure the sink.

Actual behaviour

The value of the applicationName is not used.

Environment

Serilog.Sinks.NewRelic.Logs 1.1.0 on .NET Core 3.1 with New Relic One in Europe.

Background information

In this question about Service Name in New Relic Logs, the answer from New Relic Support is:

I understand that you are looking to add a Service Name within the Log detail. You can do that by simply adding a service attribute to the log payload you are sending.

@michielvoo
Copy link
Author

There is a workaround, but it would be nice if this was not necessary:

.Enrich.WithProperty("service", applicationName)

@michielvoo michielvoo changed the title Set the service property to populate the Service Name in New Relic Logs Application name not used to populate the Service Name in New Relic Logs Jul 21, 2021
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

1 participant