@@ -85,7 +85,7 @@ func (s *Metrics) Equal(other *Metrics) bool {
85
85
return true
86
86
}
87
87
88
- func getOtelMeters (tableName , clientID , invocationID string ) * OtelMeters {
88
+ func getOtelMeters (tableName , clientID string ) * OtelMeters {
89
89
resources , err := otel .Meter (OtelName ).Int64Counter ("sync.table.resources" ,
90
90
metric .WithDescription ("Number of resources synced for a table" ),
91
91
metric .WithUnit ("/{tot}" ),
@@ -136,22 +136,21 @@ func getOtelMeters(tableName, clientID, invocationID string) *OtelMeters {
136
136
attributes : []attribute.KeyValue {
137
137
attribute .Key ("sync.client.id" ).String (clientID ),
138
138
attribute .Key ("sync.table.name" ).String (tableName ),
139
- attribute .Key ("sync.invocation.id" ).String (invocationID ),
140
139
},
141
140
}
142
141
}
143
142
144
- func (s * Metrics ) InitWithClients (table * schema.Table , clients []schema.ClientMeta , invocationID string ) {
143
+ func (s * Metrics ) InitWithClients (table * schema.Table , clients []schema.ClientMeta ) {
145
144
s .TableClient [table .Name ] = make (map [string ]* TableClientMetrics , len (clients ))
146
145
for _ , client := range clients {
147
146
tableName := table .Name
148
147
clientID := client .ID ()
149
148
s.TableClient [tableName ][clientID ] = & TableClientMetrics {
150
- otelMeters : getOtelMeters (tableName , clientID , invocationID ),
149
+ otelMeters : getOtelMeters (tableName , clientID ),
151
150
}
152
151
}
153
152
for _ , relation := range table .Relations {
154
- s .InitWithClients (relation , clients , invocationID )
153
+ s .InitWithClients (relation , clients )
155
154
}
156
155
}
157
156
0 commit comments