Skip to content

Commit 9c67f61

Browse files
authored
process_collector: Merge wasip1 and js into a single implementation (#1644)
Signed-off-by: Ying WANG <[email protected]>
1 parent 284ca0f commit 9c67f61

File tree

2 files changed

+3
-36
lines changed

2 files changed

+3
-36
lines changed

prometheus/process_collector_js.go

-33
This file was deleted.

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

+3-3
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)