-
Notifications
You must be signed in to change notification settings - Fork 420
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
contrib/go-redis/redis: With env and version #1102
Comments
Environment and version are specific to the running application. You set these when starting the tracer using |
@gbbr I am trying to use it with my lambda but have there no tracer itself import (
"context"
"encoding/json"
"errors"
ddlambda "github.com/DataDog/datadog-lambda-go"
golambda "github.com/aws/aws-lambda-go/lambda"
)
func (d *deps) lambdaHandler(ctx context.Context) error {
...
type deps struct {
ElastiCache redis.UniversalClient
}
func main() {
d := deps{
ElastiCache: redistrace.NewClient(
&redis.Options{
Addr: os.Getenv("elastiCacheUrl"),
},
redistrace.WithServiceName("ElastiCache"),
redistrace.WithAnalytics(true),
),
}
config = &ddlambda.Config{
DDTraceEnabled: true,
MergeXrayTraces: true,
ShouldUseLogForwarder: true,
}
golambda.Start(ddlambda.WrapHandler(d.lambdaHandler, config))
} Any Idea how to add env and version to redistracer? |
I see. This repository is |
Following: https://docs.datadoghq.com/getting_started/tagging/unified_service_tagging/?tab=logs
In redis tracer we can find
But there is no option to set env and version which is required in my case
The text was updated successfully, but these errors were encountered: