github.com/hashicorp/vault/api

github.com/hashicorp/vault/api

Official package for interacting with a Vault server.

Wrap HTTP client

Join Point
Advice
Replace the expression using the template:
// Using the following synthetic imports:
import (
	vaulttrace "gopkg.in/DataDog/dd-trace-go.v1/contrib/hashicorp/vault"
)
{{- .AST.Type -}}{
	{{- $hasField := false -}}
	{{ range .AST.Elts }}
	{{- if eq .Key.Name "HttpClient" }}
	{{- $hasField = true -}}
	HttpClient: vaulttrace.WrapHTTPClient({{ .Value }}),
	{{- else -}}
	{{ . }},
	{{ end -}}
	{{ end }}
	{{- if not $hasField -}}
	HttpClient: vaulttrace.NewHTTPClient(),
	{{- end }}
}