You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicecomb.apache.org by "yangyongzheng (JIRA)" <ji...@apache.org> on 2018/03/01 02:40:00 UTC

[jira] [Commented] (SCB-354) metrics上报的统计数据可能需要支持加上业务自己的维度,方便统计分析,比如APP版本,机型等,业务可以把参数作为invocation参数传递到框架,需要框架支持

    [ https://issues.apache.org/jira/browse/SCB-354?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16381424#comment-16381424 ] 

yangyongzheng commented on SCB-354:
-----------------------------------

User can add data into Invocation *Map<String, String> context* for transfer

Metrics event can pass this context and Metrics Id can add a new tag named *context* to save them:

servicecomb.metrics.invocation.context.enabled: true

servicecomb.invocation(operation=calculator.calculatorRestEndpoint.calculate,role=producer,stage=total,statistic=latency,_context=\{values},_status=200,unit=MILLISECONDS)

 

> metrics上报的统计数据可能需要支持加上业务自己的维度,方便统计分析,比如APP版本,机型等,业务可以把参数作为invocation参数传递到框架,需要框架支持
> ----------------------------------------------------------------------------------
>
>                 Key: SCB-354
>                 URL: https://issues.apache.org/jira/browse/SCB-354
>             Project: Apache ServiceComb
>          Issue Type: Task
>          Components: Java-Chassis
>            Reporter: renyingxin
>            Priority: Major
>             Fix For: java-chassis-1.0.0-m2
>
>
> metrics上报的统计数据可能需要支持加上业务自己的维度,方便统计分析,比如APP版本,机型等,业务可以把参数作为invocation参数传递到框架,需要框架支持



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)