Hi everyone,
I am trying to configure APM agent on top of echo webframework. Everything is working, transaction, PostgreSQL span, etc..
but when tried to create a custom span, its not working
here's how I tried to achieve it
func blocker(c echo.Context) {
span, _ := apm.StartSpan(c.Request().Context(), "work", "custom")
defer span.End()
fmt.Printf("=====================\nACTION=%s, span.Name=%s, span.Outcome=%s, span.Type=%s \n====================",
span.Action, span.Name, span.Outcome, span.Type)
time.Sleep(3000 * time.Millisecond)
}
and every value in the log is empty. What did I do wrong?