@@ -66,11 +66,11 @@ type PostInitJSONBody struct {
6666 Timestamp * time.Time `json:"timestamp,omitempty"`
6767}
6868
69- func (s * Sandbox ) initEnvd (ctx context.Context , envVars map [string ]string , accessToken * string , envdInitRequestTimeout time. Duration ) error {
69+ func (s * Sandbox ) initEnvd (ctx context.Context , envVars map [string ]string , accessToken * string ) error {
7070 ctx , span := tracer .Start (ctx , "envd-init" , trace .WithAttributes (telemetry .WithEnvdVersion (s .Config .Envd .Version )))
7171 defer span .End ()
7272
73- attributes := []attribute.KeyValue {telemetry .WithEnvdVersion (s .Config .Envd .Version ), attribute .Int64 ("timeout_ms" , envdInitRequestTimeout .Milliseconds ())}
73+ attributes := []attribute.KeyValue {telemetry .WithEnvdVersion (s .Config .Envd .Version ), attribute .Int64 ("timeout_ms" , s . Config . EnvdInitRequestTimeout .Milliseconds ())}
7474 attributesFail := append (attributes , attribute .Bool ("success" , false ))
7575 attributesSuccess := append (attributes , attribute .Bool ("success" , true ))
7676
@@ -89,7 +89,7 @@ func (s *Sandbox) initEnvd(ctx context.Context, envVars map[string]string, acces
8989 return err
9090 }
9191
92- response , count , err := doRequestWithInfiniteRetries (ctx , "POST" , address , body , accessToken , envdInitRequestTimeout , s .Runtime .SandboxID , s .Config .Envd .Version )
92+ response , count , err := doRequestWithInfiniteRetries (ctx , "POST" , address , body , accessToken , s . Config . EnvdInitRequestTimeout , s .Runtime .SandboxID , s .Config .Envd .Version )
9393 if err != nil {
9494 envdInitCalls .Add (ctx , count , metric .WithAttributes (attributesFail ... ))
9595 return fmt .Errorf ("failed to init envd: %w" , err )
0 commit comments