Skip to content

Prometheus metrics extension need a tag to distinguish [IN] from [OUT] #1566

@Billzaifei

Description

@Billzaifei

Issue Description
Type: feature request

Describe what happened (or what feature you want)
For the below interface, I used it to export prometheus metrics.
com.alibaba.csp.sentinel.metric.extension.MetricExtension

Take the method[addPass(String resource, int n, Object... args)] for example.
I want to distinguish [in] type from [out] type using it as the prometheus tag. #provider[in]/consumer[out]

So I think I need a feature replacing the input String parameter[resource] with the below class type:

com.alibaba.csp.sentinel.slotchain.ResourceWrapper

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/metricsIssues or PRs related to metrics and monitoringkind/enhancementCategory issues or prs related to enhancement.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions