-
Notifications
You must be signed in to change notification settings - Fork 440
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
propose : support Amazon EventBridge Scheduler tracing. #2701
Comments
Thanks for the suggestions, I've raised this with the team owning this. I hope they'll get back to you shortly with an update. Sorry for the delay. |
Hello @mugioka - thanks for opening this issue. The existing A very basic example would be: package main
import (
"context"
"fmt"
"log"
awscfg "github.com/aws/aws-sdk-go-v2/config"
"github.com/aws/aws-sdk-go-v2/service/scheduler"
awstrace "gopkg.in/DataDog/dd-trace-go.v1/contrib/aws/aws-sdk-go-v2/aws"
)
func ExampleScheduler() {
awsCfg, err := awscfg.LoadDefaultConfig(context.Background())
if err != nil {
log.Fatal(err)
}
awstrace.AppendMiddleware(&awsCfg)
client := scheduler.NewFromConfig(awsCfg)
out, err := client.ListSchedules(context.Background(), &scheduler.ListSchedulesInput{})
if err != nil {
log.Fatal(err)
}
fmt.Println(out)
} Please let me know if this solves your issue. |
Thank you for your reply. |
I use the Amazon EventBridge Scheduler client(https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/service/scheduler) to create an Amazon EventBridge Schedule. It would be very nice to be able to trace those actions there.
Some logic may be needed here.
The text was updated successfully, but these errors were encountered: