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

[META 882] Check classic and OTel agents against serverless #1640

Closed
obltmachine opened this issue Jul 30, 2024 · 2 comments
Closed

[META 882] Check classic and OTel agents against serverless #1640

obltmachine opened this issue Jul 30, 2024 · 2 comments
Labels

Comments

@obltmachine
Copy link
Contributor

See meta issue and spec for the description and details:

@dmathieu
Copy link
Member

I ran a simple app instrumented with the APM client and configured to send its data to a serverless project.

package main

import (
	"io"
	"log"
	"net/http"

	"go.elastic.co/apm/module/apmhttp/v2"
	_ "go.elastic.co/apm/v2"
)

func main() {
	handler := http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
		_, _ = io.WriteString(w, "Hello, world!\n")
	})

	http.Handle("/hello", apmhttp.Wrap(handler))
	err := http.ListenAndServe(":7777", nil)
	if err != nil {
		log.Fatal(err)
	}
}
Screenshot 2024-07-31 at 10 00 37 Screenshot 2024-07-31 at 10 00 57

@dmathieu
Copy link
Member

I ran the otel-collector example from otel-go, configured to send its data through OTLP HTTP to a serverless project.

Screenshot 2024-07-31 at 10 19 48 Screenshot 2024-07-31 at 10 20 12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants