Skip to content

Commit

Permalink
added datadog spans
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmed-nour-fdc committed Aug 23, 2024
1 parent 2b118f3 commit cc2ae5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/cd-service/pkg/service/commit_deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,11 @@ func getCommitDeploymentInfoForApp(ctx context.Context, h *db.DBHandler, commitR

span, _ := tracer.StartSpanFromContext(ctx, "getCommitDeploymentInfoForApp")
defer span.Finish()
span.SetTag("app", app)

err := h.WithTransaction(ctx, true, func(ctx context.Context, transaction *sql.Tx) error {
// Get all deployments for the application
query := h.AdaptQuery("SELECT json FROM all_deployments WHERE appname = ? ORDER BY eslversion DESC LIMIT 1;")
span.SetTag("query", query)
row := transaction.QueryRow(query, app)
err := row.Scan(&jsonAllDeploymentsMetadata)
if err != nil {
Expand Down

0 comments on commit cc2ae5c

Please sign in to comment.