Skip to content

Setting up Log Forwarding with New Relic + Gin (HTTP Server) + Zerolog Logger

Notifications You must be signed in to change notification settings

kevinmichaelchen/go-new-relic-gin-zerolog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-new-relic-gin-zerolog

Lines Of Code

This demo uses

For this demo, I signed up for a free plan of New Relic.

Getting started

Start server

Start the server using your New Relic browser license key.

env \
  ENV=local \
  SERVICE_NAME=foobar \
  NEW_RELIC_KEY=YOUR-KEY \
  go run main.go

Hit endpoint

curl localhost:8081/health

Check New Relic UI

Visit New Relic One and navigate to APM & services, and search for your Trace group. When you drill down into a trace, you should be able to see all the logs belonging to that trace. This is known as logs in context.

About

Setting up Log Forwarding with New Relic + Gin (HTTP Server) + Zerolog Logger

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages