Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Add project/domain to context for metric labeling #130

Merged
merged 3 commits into from
May 12, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pkg/controller/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ func (p *Propeller) Handle(ctx context.Context, namespace, name string) error {
wfDeepCopy := w.DeepCopy()
t.Stop()
ctx = contextutils.WithWorkflowID(ctx, wfDeepCopy.GetID())
ctx = contextutils.WithProjectDomain(ctx, wfDeepCopy.GetExecutionID().Project, wfDeepCopy.GetExecutionID().Domain)
EngHabu marked this conversation as resolved.
Show resolved Hide resolved
ctx = contextutils.WithResourceVersion(ctx, wfDeepCopy.GetResourceVersion())

maxRetries := uint32(p.cfg.MaxWorkflowRetries)
Expand Down