Add OpenTelemetry instrumentation with middleware-only approach
This commit is contained in:
@@ -16,7 +16,7 @@ func NewService() *Service {
|
||||
// Implements the Greeter interface.
|
||||
func (s *Service) Greet(ctx context.Context, name string) string {
|
||||
log.Trace().Ctx(ctx).Str("name", name).Msg("Greet function called")
|
||||
|
||||
|
||||
if name == "" {
|
||||
return "Hello world!"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user