Unable to set a Custom Statistic variable.

I am extracting a path from request URI using extract variable policy and on the basis of this variable I want to generate Custom Reports. In the Custom reports section this variable is not shown in Dimensions field.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ExtractVariables async="false" continueOnError="true" enabled="true" name="__extract-statistics-request__">
    <Source>request</Source>
    <URIPath>
        <Pattern ignoreCase="true">/{resource}</Pattern>
    </URIPath>
    <IgnoreUnresolvedVariables>true</IgnoreUnresolvedVariables>
</ExtractVariables>

Statistic Collector Policy:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<StatisticsCollector async="false" continueOnError="false" enabled="true" name="AnalyzeData">
    <DisplayName>AnalyzeData</DisplayName>
    <Properties/>
    <Statistics>
        <Statistic name="resourceName" ref="resource" type="string"/>
    </Statistics>
</StatisticsCollector>

Statistic Variable is not shown here:

2536-untitled.png

Variable resource is getting set in trace:

2537-transaction.png

Please let me know if I am doing wrong anywhere.

Thanks in Advance!

1 5 344
5 REPLIES 5

Not applicable

Hi @onkaar_singh,

are you using free org? Currently, this functionality is not available in free org.

Regards,

Rajesh

I am using this approach on the paid org. Could u pl. share the link which mentions its unavailability on free org, also Is this functioinality available for all types of paid accounts?

Regards,

Onkaar

adas
New Member

@onkaar_singh Your code looks fine. I don't see any issues with it. Couple of things I would like to know, so that I can dig deeper:

1. Org name, env and apiproxy name

2. Have you checked if analytics is getting captured for the new calls that you make for this proxy ?

api proxy name: FHIR-API

org: fhirsandbox

env: dev