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 11
11
// See the License for the specific language governing permissions and
12
12
// limitations under the License.
13
13
14
- //go:build wasip1
15
- // +build wasip1
14
+ //go:build wasip1 || js
15
+ // +build wasip1 js
16
16
17
17
package prometheus
18
18
19
19
func canCollectProcess () bool {
20
20
return false
21
21
}
22
22
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.
23
27
func (c * processCollector ) processCollect (ch chan <- Metric ) {
24
28
c .errorCollectFn (ch )
25
29
}
26
30
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.
31
31
func (c * processCollector ) describe (ch chan <- * Desc ) {
32
32
c .errorDescribeFn (ch )
33
33
}
You can’t perform that action at this time.
0 commit comments