Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for AppendTags (0.26 sec)

  1. internal/logger/reqinfo.go

    		UserAgent:    userAgent,
    		API:          api,
    		DeploymentID: deploymentID,
    		RequestID:    requestID,
    		BucketName:   bucket,
    		ObjectName:   object,
    	}
    }
    
    // AppendTags - appends key/val to ReqInfo.tags
    func (r *ReqInfo) AppendTags(key string, val interface{}) *ReqInfo {
    	if r == nil {
    		return nil
    	}
    	r.Lock()
    	defer r.Unlock()
    	r.tags = append(r.tags, KeyVal{key, val})
    	return r
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  2. internal/event/targetlist.go

    			defer wg.Done()
    
    			if err := target.Save(event); err != nil {
    				list.eventsErrorsTotal.Add(1)
    				list.incFailedEvents(id)
    				reqInfo := &logger.ReqInfo{}
    				reqInfo.AppendTags("targetID", id.String())
    				logger.LogOnceIf(logger.SetReqInfo(context.Background(), reqInfo), logSubsys, err, id.String())
    			}
    		}(id, target)
    	}
    	wg.Wait()
    	list.totalEvents.Add(1)
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 9.2K bytes
    - Viewed (0)
  3. cmd/notification.go

    			g.errs[index].Err = nil
    			if err := f(); err != nil {
    				g.errs[index].Err = err
    				// Last iteration log the error.
    				if i == g.retryCount-1 {
    					reqInfo := (&logger.ReqInfo{}).AppendTags("peerAddress", addr.String())
    					ctx := logger.SetReqInfo(ctx, reqInfo)
    					peersLogOnceIf(ctx, err, addr.String())
    				}
    				// Wait for a minimum of 100ms and dynamically increase this based on number of attempts.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 12 18:13:36 GMT 2024
    - 44.5K bytes
    - Viewed (0)
  4. cmd/update.go

    	helmInfoFile, err := Open(helmInfoFilePath)
    	if err != nil {
    		// Log errors and return "" as MinIO can be deployed
    		// without Helm charts as well.
    		if !osIsNotExist(err) {
    			reqInfo := (&logger.ReqInfo{}).AppendTags("helmInfoFilePath", helmInfoFilePath)
    			ctx := logger.SetReqInfo(GlobalContext, reqInfo)
    			internalLogIf(ctx, err)
    		}
    		return ""
    	}
    	defer helmInfoFile.Close()
    	scanner := bufio.NewScanner(helmInfoFile)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  5. cmd/endpoint.go

    				reqInfo := (&logger.ReqInfo{}).AppendTags(
    					"host",
    					endpoints[i].Hostname(),
    				)
    
    				if orchestrated && hostResolveToLocalhost(endpoints[i]) {
    					// time elapsed
    					timeElapsed := time.Since(startTime)
    					// log error only if more than a second has elapsed
    					if timeElapsed > time.Second {
    						reqInfo.AppendTags("elapsedTime",
    							humanize.RelTime(startTime,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 34.1K bytes
    - Viewed (0)
  6. cmd/erasure-server-pool.go

    // if this node is taken down by an external orchestrator.
    func (z *erasureServerPools) Health(ctx context.Context, opts HealthOptions) HealthResult {
    	reqInfo := (&logger.ReqInfo{}).AppendTags("maintenance", strconv.FormatBool(opts.Maintenance))
    
    	type setInfo struct {
    		online  int
    		healing int
    	}
    
    	var drivesHealing int
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 80.5K bytes
    - Viewed (0)
  7. cmd/admin-heal-ops.go

    	hs madmin.HealOpts, forceStart bool,
    ) *healSequence {
    	reqInfo := &logger.ReqInfo{RemoteHost: clientAddr, API: "Heal", BucketName: bucket}
    	reqInfo.AppendTags("prefix", objPrefix)
    	ctx, cancel := context.WithCancel(logger.SetReqInfo(ctx, reqInfo))
    
    	clientToken := mustGetUUID()
    
    	return &healSequence{
    		bucket:         bucket,
    		object:         objPrefix,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 25.1K bytes
    - Viewed (1)
  8. cmd/bucket-lifecycle.go

    			globalTierMetrics.Observe(tier, since)
    			globalTierMetrics.logSuccess(tier)
    		} else {
    			op.Error = err.Error()
    			globalTierMetrics.logFailure(tier)
    		}
    
    		logger.GetReqInfo(ctx).AppendTags("tierStats", op)
    	}
    }
    
    // getTransitionedObjectReader returns a reader from the transitioned tier.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 17 05:09:58 GMT 2024
    - 33.1K bytes
    - Viewed (0)
  9. cmd/encryption-v1.go

    	size, err := sio.EncryptedSize(uint64(o.Size))
    	if err != nil {
    		// This cannot happen since AWS S3 allows parts to be 5GB at most
    		// sio max. size is 256 TB
    		reqInfo := (&logger.ReqInfo{}).AppendTags("size", strconv.FormatUint(size, 10))
    		ctx := logger.SetReqInfo(GlobalContext, reqInfo)
    		logger.CriticalIf(ctx, err)
    	}
    	return int64(size)
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 36.5K bytes
    - Viewed (0)
  10. cmd/xl-storage.go

    			if !IsErr(err, []error{
    				errFileNotFound,
    				errVolumeNotFound,
    				errFileCorrupt,
    				errFileAccessDenied,
    				errFileVersionNotFound,
    			}...) {
    				logger.GetReqInfo(ctx).AppendTags("disk", s.String())
    				storageLogOnceIf(ctx, err, partPath)
    			}
    			return err
    		}
    	}
    
    	return nil
    }
    
    // ReadMultiple will read multiple files and send each back as response.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
Back to top