Skip to content

Commit bdf0ad5

Browse files
ying-jeanneamberpixels
authored andcommitted
process_collector: Merge wasip1 and js into a single implementation (prometheus#1644)
Signed-off-by: Ying WANG <ying.wang@grafana.com> Signed-off-by: Eugene <eugene@amberpixels.io>
1 parent e395fcf commit bdf0ad5

File tree

2 files changed

+3
-36
lines changed

2 files changed

+3
-36
lines changed

prometheus/process_collector_js.go

Lines changed: 0 additions & 33 deletions
This file was deleted.

prometheus/process_collector_wasip1.go renamed to prometheus/process_collector_wasip1_js.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
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

1717
package prometheus
1818

@@ -24,7 +24,7 @@ func (c *processCollector) processCollect(ch chan<- Metric) {
2424
c.errorCollectFn(ch)
2525
}
2626

27-
// describe returns all descriptions of the collector for wasip1.
27+
// describe returns all descriptions of the collector for wasip1 and js.
2828
// Ensure that this list of descriptors is kept in sync with the metrics collected
2929
// in the processCollect method. Any changes to the metrics in processCollect
3030
// (such as adding or removing metrics) should be reflected in this list of descriptors.

0 commit comments

Comments
 (0)