File tree Expand file tree Collapse file tree 2 files changed +6
-39
lines changed
Expand file tree Collapse file tree 2 files changed +6
-39
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1111// See the License for the specific language governing permissions and
1212// limitations under the License.
1313
14- //go:build wasip1
15- // +build wasip1
14+ //go:build wasip1 || js
15+ // +build wasip1 js
1616
1717package prometheus
1818
1919func canCollectProcess () bool {
2020 return false
2121}
2222
23+ // describe returns all descriptions of the collector for wasip1 and js.
24+ // Ensure that this list of descriptors is kept in sync with the metrics collected
25+ // in the processCollect method. Any changes to the metrics in processCollect
26+ // (such as adding or removing metrics) should be reflected in this list of descriptors.
2327func (c * processCollector ) processCollect (ch chan <- Metric ) {
2428 c .errorCollectFn (ch )
2529}
2630
27- // describe returns all descriptions of the collector for wasip1.
28- // Ensure that this list of descriptors is kept in sync with the metrics collected
29- // in the processCollect method. Any changes to the metrics in processCollect
30- // (such as adding or removing metrics) should be reflected in this list of descriptors.
3131func (c * processCollector ) describe (ch chan <- * Desc ) {
3232 c .errorDescribeFn (ch )
3333}
You can’t perform that action at this time.
0 commit comments