Add `RequestLog.serviceName()`
See original GitHub issueRequestLog.name() was a great addition that provides a universal human-readable name of a request. However, it currently only reveals a method name. It would be nice if we also provide a similar API for getting the name of a service. For example:
Server.builder()
.route()
...
.defaultServiceName("MyService")
.build(myService)
.annotatedService()
...
.defaultServiceName("MyService2")
.build(myAnnotatedService)
...
If not specified, it could be auto-generated from the innermost class name, etc.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Dropwizard Configuration Reference
Request Log . The new request log uses the logback-access library for processing request logs, which allow to use an extended set of...
Read more >0.99.7 Milestone · GitHub
Add @ServiceName annotation for annotated service ... Add onResponseTrailers() to circuit breaker and retry rule builders ... Add RequestLog.serviceName() ...
Read more >Logging - JFrog Documentation
Main service log file for each microservice, containing data on the service activity. Request Log. <service-name>-request.log. For example: ...
Read more >org.eclipse.jetty.server.NCSARequestLog java code examples
This RequestLog implementation outputs logs in the pseudo-standard NCSA common log format. Configuration options allow a choice between the standard Common Log ...
Read more >How to group related request log entries GAE python 3.7 ...
Client() # This is the resource type of the log log_name ... (This answer addresses how to add logging severity to Cloud Functions...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Had chat on
methodName()and not all services has method name such as:com.foo.bar.Service/method)I prefer having dedicated fields. My suggestions are:
RequestLog.serivceName()that returns an RPC service name or innermost class name for an annotated service.RequestLog.methodName()that returns only a method name.RequestLog.name()that returns a combined service and method name. For examplecom.foo.bar.Service/method.