@@ -16,23 +16,23 @@ const (
1616// TODO: Refactor as a proto referenced from the other proto files (telemetry messages)
1717type ExecutionMetadata struct {
1818 // Execution Context - Source
19- SourceId string
19+ SourceID string
2020 // Execution Context - Chain
2121 ChainFamilyName string
22- ChainId string
22+ ChainID string
2323 NetworkName string
2424 NetworkNameFull string
2525 // Execution Context - Workflow (capabilities.RequestMetadata)
26- WorkflowId string
26+ WorkflowID string
2727 WorkflowOwner string
28- WorkflowExecutionId string
28+ WorkflowExecutionID string
2929 WorkflowName string
30- WorkflowDonId uint32
30+ WorkflowDonID uint32
3131 WorkflowDonConfigVersion uint32
32- ReferenceId string
32+ ReferenceID string
3333 // Execution Context - Capability
3434 CapabilityType string
35- CapabilityId string
35+ CapabilityID string
3636 CapabilityTimestampStart uint32
3737 CapabilityTimestampEmit uint32
3838}
@@ -44,26 +44,26 @@ func (m ExecutionMetadata) Attributes() []attribute.KeyValue {
4444
4545 return []attribute.KeyValue {
4646 // Execution Context - Source
47- attribute .String ("source_id" , ValOrUnknown (m .SourceId )),
47+ attribute .String ("source_id" , ValOrUnknown (m .SourceID )),
4848 // Execution Context - Chain
4949 attribute .String ("chain_family_name" , ValOrUnknown (m .ChainFamilyName )),
50- attribute .String ("chain_id" , ValOrUnknown (m .ChainId )),
50+ attribute .String ("chain_id" , ValOrUnknown (m .ChainID )),
5151 attribute .String ("network_name" , ValOrUnknown (m .NetworkName )),
5252 attribute .String ("network_name_full" , ValOrUnknown (m .NetworkNameFull )),
5353 // Execution Context - Workflow (capabilities.RequestMetadata)
54- attribute .String ("workflow_id" , ValOrUnknown (m .WorkflowId )),
54+ attribute .String ("workflow_id" , ValOrUnknown (m .WorkflowID )),
5555 attribute .String ("workflow_owner" , ValOrUnknown (m .WorkflowOwner )),
56- // Notice: We lower the cardinality on the WorkflowExecutionId so it can be used by metrics
56+ // Notice: We lower the cardinality on the WorkflowExecutionID so it can be used by metrics
5757 // This label has good chances to be unique per workflow, in a reasonable bounded time window
5858 // TODO: enable this when sufficiently tested (PromQL queries like alerts might need to change if this is used)
59- // attribute.String("workflow_execution_id_short", ValShortOrUnknown(m.WorkflowExecutionId , WorkflowExecutionIDShortLen)),
59+ // attribute.String("workflow_execution_id_short", ValShortOrUnknown(m.WorkflowExecutionID , WorkflowExecutionIDShortLen)),
6060 attribute .String ("workflow_name" , ValOrUnknown (workflowName )),
61- attribute .Int64 ("workflow_don_id" , int64 (m .WorkflowDonId )),
61+ attribute .Int64 ("workflow_don_id" , int64 (m .WorkflowDonID )),
6262 attribute .Int64 ("workflow_don_config_version" , int64 (m .WorkflowDonConfigVersion )),
63- attribute .String ("reference_id" , ValOrUnknown (m .ReferenceId )),
63+ attribute .String ("reference_id" , ValOrUnknown (m .ReferenceID )),
6464 // Execution Context - Capability
6565 attribute .String ("capability_type" , ValOrUnknown (m .CapabilityType )),
66- attribute .String ("capability_id" , ValOrUnknown (m .CapabilityId )),
66+ attribute .String ("capability_id" , ValOrUnknown (m .CapabilityID )),
6767 // Notice: we don't include the timestamps here (high cardinality)
6868 }
6969}
0 commit comments