From 49ce8a9b0de17d7f92e1703bbe2d5b91966fb7b0 Mon Sep 17 00:00:00 2001 From: Sarangan Rajamanickam Date: Wed, 7 Feb 2018 23:49:17 -0800 Subject: [PATCH] Code to add version info to rollup telemetry --- .../src/resources/templates/rollup/module_template.template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generators/profilegen/src/resources/templates/rollup/module_template.template b/generators/profilegen/src/resources/templates/rollup/module_template.template index 1ccc664d7..42d033209 100644 --- a/generators/profilegen/src/resources/templates/rollup/module_template.template +++ b/generators/profilegen/src/resources/templates/rollup/module_template.template @@ -48,7 +48,7 @@ module Azure::Profiles::<%= @profile_name %> end def add_telemetry(client) - profile_information = 'Profiles/azure_sdk/<%= @profile_name %>/<%= @module_name %>' + profile_information = "Profiles/azure_sdk/#{Azure::VERSION}/<%= @profile_name %>/<%= @module_name %>" client.add_user_agent_information(profile_information) end @@ -112,7 +112,7 @@ module Azure::Profiles::<%= @profile_name %> end def add_telemetry(client) - profile_information = 'Profiles/azure_sdk/<%= @profile_name %>/<%= @module_name %>/Mgmt' + profile_information = "Profiles/azure_sdk/#{Azure::VERSION}/<%= @profile_name %>/<%= @module_name %>/Mgmt" client.add_user_agent_information(profile_information) end