MCPcopy Create free account
hub / github.com/baidu/EasyFaaS / SetLabel

Method SetLabel

pkg/controller/metric.go:360–368  ·  view source on GitHub ↗
(k, v string)

Source from the content-addressed store, hash-verified

358}
359
360func (i *InvokeMetrics) SetLabel(k, v string) {
361 if _, ok := i.allLabels[k]; !ok {
362 // TODO: err handler?
363 // not support label
364 return
365 }
366
367 i.allLabels[k] = v
368}
369
370func (i *InvokeMetrics) StepStart(stage metricStage) error {
371 if stage > StageInvocation {

Callers 5

buildErrorResponseFunction · 0.80
getFunctionMethod · 0.80
getRuntimeMethod · 0.80
buildResponseMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected