You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: vercel.go
    path of file: ./repos/highlight/backend/vercel
    
    the code of the file until where you have to start completion: package vercel

import (
	"context"
	"encoding/json"
	"fmt"
	"io"
	"net/http"
	"net/url"
	"os"
	"regexp"
	"strconv"
	"strings"

	"github.com/go-chi/chi"
	"github.com/samber/lo"
	log "github.com/sirupsen/logrus"
	"go.opentelemetry.io/otel/trace"

	model2 "github.com/highlight-run/highlight/backend/model"
	hlog "github.com/highlight/highlight/sdk/highlight-go/log"
	highlightChi "github.com/highlight/highlight/sdk/highlight-go/middleware/chi"

	"github.com/pkg/errors"

	"github.com/highlight-run/highlight/backend/private-graph/graph/model"
)

const (
	SourcemapEnvKey       = "HIGHLIGHT_SOURCEMAP_UPLOAD_API_KEY"
	ProjectIdEnvVar       = "NEXT_PUBLIC_HIGHLIGHT_PROJECT_ID"
	LogDrainProjectHeader = "x-highlight-project"
)

var (
	VercelClientId     = os.Getenv("VERCEL_CLIENT_ID")
	VercelClientSecret = os.Getenv("VERCEL_CLIENT_SECRET")
	ApiBaseUrl         = "https://api.vercel.com"
)

type VercelAccessTokenResponse struct {
	AccessToken string  `json:"access_token"`
	TeamID      *string `json:"team_id"`
}

func GetAccessToken(code string) (VercelAccessTokenResponse, error) {
	client := &http.Client{}

	redirectUri := os.Getenv("REACT_APP_FRONTEND_URI") + "/callback/verce
    
func CreateLogDrain(ctx context.Context, vercelTeamID *string, vercelProjectIDs []string, projectVerboseID string, name string, accessToken string) error {
	client := &http.Client{}

	headers := fmt.Sprintf(`{"%s":"%s"}`, LogDrainProjectHeader, projectVerboseID)
	projectIds := fmt.Sprintf(`[%s]`, strings.Join(lo.Map(vercelProjectIDs, func(t string, i int) string {
		return fmt.Sprintf("\"%s\"", t)
	}), ","))
	body := fmt.Sprintf(`{"url":"https://pub.highlight.run/vercel/v1/logs", "name":"%s", "headers":%s, "projectIds":%s, "deliveryFormat":"ndjson", "secret": "%s", "sources": ["static", "lambda", "edge", "build", "external"]}`, name, headers, projectIds, projectVerboseID)
	u := fmt.Sprintf("%s/v2/integrations/log-drains", ApiBaseUrl)
	if vercelTeamID != nil {
		u = fmt.Sprintf("%s?teamId=%s", u, *vercelTeamID)
	}
	req, err := http.NewRequest("POST", u, strings.NewReader(body))
	if err != nil {
		return errors.Wrap(err, "error creating api request to Vercel")
	}
	req.Header.Set("Authorization", fmt.Sprintf("Bearer %s", accessToken))

	res, err := client.Do(req)

	if err != nil {
		return errors.Wrap(err, "error getting response from Vercel log-drain endpoint")
	}

	b, err := io.ReadAll(res.Body)

	if res.StatusCode != 200 {
		log.WithContext(ctx).WithField("Body", string(b)).
			WithField("Url", u).
			Errorf("Vercel Log Drain API responded with error")
		return errors.New("Vercel Log Drain API responded with error; status_code=" + res.Status + "; body=" + string(b))
	}

	if err != nil {
		return errors.Wrap(err, "error reading response body from Vercel log-drain endpoint")
	}

	return nil
}