apache / apache/brpc

Window 支持MultiDimension

Open
#2,982 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
17.6k
Forks
4.1k
Avg merge
2d 12h
Merged PRs (30d)
69

Description

多维度window支持吗?要如何使用?类似如下场景:

bvar::MultiDimension> mbvar(
"test_count",
{"xx1", "xx2"});
bvar::Window>> counter_1min(&mbvar, 60)

网上搜的方法,貌似不行
auto label = {"v1", "v2"};
counter_1min << std::make_pair(label, 1);
![Image](https://github.com/user-attachments/assets/f8722293-1aed-4775-b4ba-11a89dc7789b)

Contributor guide

Open the contributing guide

Research direction

Start at bvar::MultiDimension and bvar::Window, using the issue's example insertion expression as the reproduction case. Determine whether multidimensional window support exists and how it is intended to be used; if not, define the required change and a reproducible test.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
backend, observability
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.