hello team,
I came across the issue whee i am not getting same trace id for RUM & APM transaction.
E.g. i initiate the transaction "add product to basket" and i get the transaction detail in APM (service - clothing) & RUM (service - clothing-rum) both but the transaction contains different trace id
kindly suggest what we can do to get the same trace id?
My infrastructure details as below:
Application Hosted on : ASP.Net Core (dotnet6)
APM agent setup in program.cs file
################ program.cs ####################
using Elastic.Apm.NetCoreAll;
var configuration = GetConfiguration();
app.UseAllElasticApm(configuration);
############### appsettings.json ####################
"ElasticApm": {
"ServerUrls": "https://XX.XX.XX.XX:8200",
"ServerCert": "~/lib/cert/ca.crt",
"VerifyServerCert": "false",
"SecretToken": "",
"ServiceName": "clothing",
"Environment": "DEV"
}
####################################################################################
############### RUM ########################
<script src="~/lib/apm-rum/elastic-apm-rum.umd.min.js" crossorigin></script>
<script>
elasticApm.init({
serviceName: 'clothing-rum',
serverUrl: 'https://XX.XX.XX.XX:8200',
SERVER_CERT: "~/lib/cert/ca.crt",
VerifyServerCert: "true",
environment: 'DEV'
});
</script>
####################################################################################
Regards
Pratiksha